mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 20:12:04 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -1,13 +1,13 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import http
|
||||
from odoo.http import request, route
|
||||
|
||||
from odoo.addons.website_sale.controllers.variant import WebsiteSaleVariantController
|
||||
|
||||
|
||||
class WebsiteSaleStockVariantController(WebsiteSaleVariantController):
|
||||
@http.route()
|
||||
def get_combination_info_website(self, product_template_id, product_id, combination, add_qty, **kw):
|
||||
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)
|
||||
|
||||
@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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue