mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 08:12:08 +02:00
13 lines
486 B
Python
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)
|