[FIX] sale_product_configurator: controller arguments
This commit is contained in:
@@ -7,9 +7,9 @@ from odoo.http import request
|
||||
|
||||
class ProductConfiguratorController(http.Controller):
|
||||
@http.route(['/sale_product_configurator/configure'], type='json', auth="user", methods=['POST'])
|
||||
def configure(self, product_id, pricelist_id, **kw):
|
||||
def configure(self, product_template_id, pricelist_id, **kw):
|
||||
add_qty = int(kw.get('add_qty', 1))
|
||||
product_template = request.env['product.template'].browse(int(product_id))
|
||||
product_template = request.env['product.template'].browse(int(product_template_id))
|
||||
pricelist = self._get_pricelist(pricelist_id)
|
||||
|
||||
product_combination = False
|
||||
|
||||
@@ -116,7 +116,7 @@ var ProductConfiguratorFormController = FormController.extend({
|
||||
return this._rpc({
|
||||
route: '/sale_product_configurator/configure',
|
||||
params: {
|
||||
product_id: productTemplateId,
|
||||
product_template_id: productTemplateId,
|
||||
pricelist_id: this.renderer.pricelistId,
|
||||
add_qty: data.quantity,
|
||||
product_template_attribute_value_ids: this._getAttributeValueIds(
|
||||
|
||||
Reference in New Issue
Block a user