[FIX] account: changing the account on invoices doesn't reset the unit price anymore if it was set (and modified previously by the salesman)
This commit is contained in:
@@ -1162,7 +1162,7 @@ class AccountInvoiceLine(models.Model):
|
||||
if not self.product_id:
|
||||
fpos = self.invoice_id.fiscal_position_id
|
||||
self.invoice_line_tax_ids = fpos.map_tax(self.account_id.tax_ids).ids
|
||||
else:
|
||||
elif not self.price_unit:
|
||||
self._set_taxes()
|
||||
|
||||
@api.onchange('uom_id')
|
||||
|
||||
Reference in New Issue
Block a user