[FIX] sale: remove extra line wrongly added by previous forward-port
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user