oca-ocb-sale/odoo-bringout-oca-ocb-website_sale_stock/website_sale_stock/controllers/variant.py
Ernad Husremovic 73afc09215 19.0 vanilla
2026-03-09 09:32:12 +01:00

13 lines
486 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.http import request, route
from odoo.addons.website_sale.controllers.variant import WebsiteSaleVariantController
class WebsiteSaleStockVariantController(WebsiteSaleVariantController):
@route()
def get_combination_info_website(self, *args, **kwargs):
request.update_context(website_sale_stock_get_quantity=True)
return super().get_combination_info_website(*args, **kwargs)