[FIX] website_quote: onchange_template_id

If a quotation template was used to create a SO, the default customer
taxes set on the product's line were not set on the SO lines.

opw:657015
This commit is contained in:
Goffin Simon
2015-11-25 10:14:34 +01:00
parent 0b52e8a887
commit 15ff26c9f7
+3
View File
@@ -203,6 +203,9 @@ class sale_order(osv.osv):
if 'tax_id' in data:
data['tax_id'] = [(6, 0, data['tax_id'])]
else:
taxes = line.product_id.product_tmpl_id.taxes_id.ids
data['tax_id'] = [(6, 0, taxes)]
data.update({
'name': line.name,
'price_unit': price,