diff --git a/addons/product/controllers/catalog.py b/addons/product/controllers/catalog.py index f0bb0e0d4ff..6531cffc439 100644 --- a/addons/product/controllers/catalog.py +++ b/addons/product/controllers/catalog.py @@ -25,7 +25,9 @@ class ProductCatalogController(Controller): } """ order = request.env[res_model].browse(order_id) - return order._get_product_catalog_order_line_info(product_ids, **kwargs) + return order.with_company(order.company_id)._get_product_catalog_order_line_info( + product_ids, **kwargs, + ) @route('/product/catalog/update_order_line_info', auth='user', type='json') def product_catalog_update_order_line_info(self, res_model, order_id, product_id, quantity=0, **kwargs): @@ -39,4 +41,6 @@ class ProductCatalogController(Controller): :rtype: float """ order = request.env[res_model].browse(order_id) - return order._update_order_line_info(product_id, quantity, **kwargs) + return order.with_company(order.company_id)._update_order_line_info( + product_id, quantity, **kwargs, + ) diff --git a/addons/product/models/product_catalog_mixin.py b/addons/product/models/product_catalog_mixin.py index 16d0e4b0ce4..95a372364d7 100644 --- a/addons/product/models/product_catalog_mixin.py +++ b/addons/product/models/product_catalog_mixin.py @@ -1,5 +1,6 @@ -from odoo import _, models +# Part of Odoo. See LICENSE file for full copyright and licensing details. +from odoo import _, models class ProductCatalogMixin(models.AbstractModel):