From e750bb6e1149cb05e13424d66d4ff12198b4cffe Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 21 Feb 2018 20:43:09 +0100 Subject: [PATCH] [FIX] sale: remove extra line wrongly added by previous forward-port --- addons/sale/models/analytic.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/sale/models/analytic.py b/addons/sale/models/analytic.py index 6d8d381c6f6..b0e78ca7fcb 100644 --- a/addons/sale/models/analytic.py +++ b/addons/sale/models/analytic.py @@ -43,7 +43,6 @@ class AccountAnalyticLine(models.Model): if 'so_line' not in values: # allow to force a False value for so_line # only take the AAL from expense or vendor bill, meaning having a negative amount self.sudo().filtered(lambda aal: not aal.so_line and aal.product_id and aal.product_id.expense_policy != 'no' and aal.amount <= 0).with_context(sale_analytic_norecompute=True)._sale_determine_order_line() - self.filtered(lambda aal: aal.amount <= 0).with_context(sale_analytic_norecompute=True)._sale_determine_order_line() if any(field_name in values for field_name in self._sale_get_fields_delivered_qty()): if not self._context.get('sale_analytic_norecompute'):