From c6591970cdaaa94a87a5eaf307ee5eee8550a078 Mon Sep 17 00:00:00 2001 From: Kunjal Date: Fri, 6 Jul 2018 14:39:25 +0530 Subject: [PATCH] [ADD]: Added Upstream Patch for account_analytic_default. --- .../account_analytic_default/models/account_analytic_default.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_analytic_default/models/account_analytic_default.py b/addons/account_analytic_default/models/account_analytic_default.py index 0699cdbb..0db77065 100644 --- a/addons/account_analytic_default/models/account_analytic_default.py +++ b/addons/account_analytic_default/models/account_analytic_default.py @@ -68,7 +68,7 @@ class AccountInvoiceLine(models.Model): if not self.account_analytic_id: rec = self.env['account.analytic.default'].account_get( 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: self.account_analytic_id = rec.analytic_id.id super(AccountInvoiceLine, self)._set_additional_fields(invoice)