[ADD]: Added Upstream Patch for account_analytic_default.
This commit is contained in:
parent
5e965cc037
commit
c6591970cd
@ -68,7 +68,7 @@ class AccountInvoiceLine(models.Model):
|
|||||||
if not self.account_analytic_id:
|
if not self.account_analytic_id:
|
||||||
rec = self.env['account.analytic.default'].account_get(
|
rec = self.env['account.analytic.default'].account_get(
|
||||||
self.product_id.id, self.invoice_id.commercial_partner_id.id, self.env.uid,
|
self.product_id.id, self.invoice_id.commercial_partner_id.id, self.env.uid,
|
||||||
fields.Date.today(), company_id=self.company_id.id)
|
fields.Date.today(), company_id=invoice.company_id.id)
|
||||||
if rec:
|
if rec:
|
||||||
self.account_analytic_id = rec.analytic_id.id
|
self.account_analytic_id = rec.analytic_id.id
|
||||||
super(AccountInvoiceLine, self)._set_additional_fields(invoice)
|
super(AccountInvoiceLine, self)._set_additional_fields(invoice)
|
||||||
|
Loading…
Reference in New Issue
Block a user