product-variant
product-variant copied to clipboard
[17.0] product_variant_sale_price: opening product form in ecommerce gives error
Here is the error:
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo-test/odoo/odoo/http.py", line 1764, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/opt/odoo-test/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/opt/odoo-test/odoo/odoo/http.py", line 1791, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/opt/odoo-test/odoo/odoo/http.py", line 1995, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/opt/odoo-test/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
response = super()._dispatch(endpoint)
File "/opt/odoo-test/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/opt/odoo-test/odoo/odoo/http.py", line 741, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/odoo-test/odoo/addons/website_sale_stock_wishlist/controllers/variant.py", line 13, in get_combination_info_website
return super().get_combination_info_website(*args, **kwargs)
File "/opt/odoo-test/odoo/odoo/http.py", line 741, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/odoo-test/odoo/addons/website_sale_stock/controllers/variant.py", line 13, in get_combination_info_website
return super().get_combination_info_website(*args, **kwargs)
File "/opt/odoo-test/odoo/odoo/http.py", line 741, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/odoo-test/odoo/addons/website_sale/controllers/variant.py", line 18, in get_combination_info_website
combination_info = product_template._get_combination_info(
File "/opt/odoo-test/addons/bundles/customer_addons/product_variant_sale_price/models/product_product.py", line 39, in _get_combination_info
res = super()._get_combination_info(
TypeError: ProductTemplate._get_combination_info() takes from 1 to 6 positional arguments but 7 were given
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (https://customer-test.sprintit.fi/web/assets/1/1db85ee/web.assets_frontend_lazy.min.js:4693:163)
at XMLHttpRequest.<anonymous> (https://customer-test.sprintit.fi/web/assets/1/1db85ee/web.assets_frontend_lazy.min.js:4697:13)
Module
product_variant_sale_price
Describe the bug
opening product form in ecommerce gives error
To Reproduce
Affected versions: at least 17.0, did not test others
Steps to reproduce the behavior:
- Install module
- Go to webshop product form
- See error
Expected behavior No error
Additional context The root cause is that the module calls super with positional arguments.