[FIX] sale: remove extra line wrongly added by previous forward-port

This commit is contained in:
Christophe Simonis
2018-02-21 20:43:09 +01:00
parent ae6a65753e
commit e750bb6e11
-1
View File
@@ -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'):