diff options
| author | LiLEE <lilee115@users.noreply.github.com> | 2019-12-17 11:03:22 +0000 |
|---|---|---|
| committer | LiLEE <lilee115@users.noreply.github.com> | 2019-12-17 11:03:22 +0000 |
| commit | 44bac1b270bf31255d477e1d8eb2cfbfa600c692 (patch) | |
| tree | 88cfe3ead380c09e74cebdf8afe8b7d4bdd0ec6a /addons | |
| parent | feb4f90ac78e17900f0131888ee97a8be2bd29ab (diff) | |
[FIX] website_sale_stock: allow override of context
closes odoo/odoo#42062
X-original-commit: 885f24f4ffe400abea7efc8012a4a81d222b5607
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/website_sale_stock/controllers/variant.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website_sale_stock/controllers/variant.py b/addons/website_sale_stock/controllers/variant.py index d1e318c21ca..f16c3892799 100644 --- a/addons/website_sale_stock/controllers/variant.py +++ b/addons/website_sale_stock/controllers/variant.py @@ -8,5 +8,6 @@ from odoo.addons.website_sale.controllers.variant import WebsiteSaleVariantContr class WebsiteSaleStockVariantController(WebsiteSaleVariantController): @http.route() def get_combination_info_website(self, product_template_id, product_id, combination, add_qty, **kw): - kw['context'] = {'website_sale_stock_get_quantity': True} + kw['context'] = kw.get('context', {}) + kw['context'].update(website_sale_stock_get_quantity=True) return super(WebsiteSaleStockVariantController, self).get_combination_info_website(product_template_id, product_id, combination, add_qty, **kw) |
