[FIX] website_sale: taxes when creating SO line

The taxes were not computed when the SO line was created.
This commit is contained in:
Nicolas Martinelli
2015-10-27 09:59:23 +01:00
parent 7b41e39fa7
commit 3371e65b08
+1
View File
@@ -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