diff options
| author | Damien Bouvy <dbo@odoo.com> | 2015-06-30 11:43:02 +0200 |
|---|---|---|
| committer | Damien Bouvy <dbo@odoo.com> | 2015-06-30 12:54:53 +0200 |
| commit | 2562ad523e025a382b754631e8707ac7317d4e5f (patch) | |
| tree | 5d81be11b8b98b0ceb3d33b125872b51f42d7e02 /addons | |
| parent | 6316bce8fea83aab822d04f20b0d5f8b41608014 (diff) | |
[FIX] website_quote: when changing templates, lines were copied from the quote template but the prices were not updated with their correct uom (unit of measure)
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/website_quote/models/order.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/website_quote/models/order.py b/addons/website_quote/models/order.py index 433fbdecd22..998266be285 100644 --- a/addons/website_quote/models/order.py +++ b/addons/website_quote/models/order.py @@ -204,7 +204,9 @@ class sale_order(osv.osv): False, fiscal_position, True, context) data = res.get('value', {}) if pricelist_id: - price = pricelist_obj.price_get(cr, uid, [pricelist_id], line.product_id.id, 1, context=context)[pricelist_id] + uom_context = context.copy() + uom_context['uom'] = line.product_uom_id.id + price = pricelist_obj.price_get(cr, uid, [pricelist_id], line.product_id.id, 1, context=uom_context)[pricelist_id] else: price = line.price_unit |
