[FIX] website_sale: taxes when creating SO line
The taxes were not computed when the SO line was created.
This commit is contained in:
@@ -92,6 +92,7 @@ class sale_order(osv.Model):
|
||||
if not line_id:
|
||||
values = self._website_product_id_change(cr, uid, ids, so.id, product_id, qty=1, context=context)
|
||||
line_id = sol.create(cr, SUPERUSER_ID, values, context=context)
|
||||
sol._compute_tax_id(cr, SUPERUSER_ID, [line_id], context=context)
|
||||
if add_qty:
|
||||
add_qty -= 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user