diff options
| author | Goffin Simon <sig@odoo.com> | 2015-11-24 16:52:27 +0100 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2015-11-25 10:14:34 +0100 |
| commit | 15ff26c9f71fba5c33a111baf3ea6b2e5873d18a (patch) | |
| tree | b21c0344148fb5ee12ddff7f560d91aeeb9ae5f9 /addons | |
| parent | 0b52e8a887f41f162fe6593fac264f44042cfbbd (diff) | |
[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
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/website_quote/models/order.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website_quote/models/order.py b/addons/website_quote/models/order.py index 016e7eeb410..a683d132328 100644 --- a/addons/website_quote/models/order.py +++ b/addons/website_quote/models/order.py @@ -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, |
