[FIX] sale: Set tax_id on a sale order line if taxes_id is set on product
And why the hell are these many2many fields called tax_id and taxes_id
This commit is contained in:
+1
-1
@@ -444,7 +444,7 @@ class SaleOrderLine(models.Model):
|
||||
taxes = fpos.map_tax(line.product_id.taxes_id)
|
||||
line.tax_id = taxes
|
||||
else:
|
||||
line.tax_id = False
|
||||
line.tax_id = line.product_id.taxes_id if line.product_id.taxes_id else False
|
||||
|
||||
@api.multi
|
||||
def _prepare_order_line_procurement(self, group_id=False):
|
||||
|
||||
Reference in New Issue
Block a user