product-attribute
product-attribute copied to clipboard
Bug of product assortment - Got error when creat new product assortment
Module
Product assortment
Describe the bug
got error when creat new product assortment
To Reproduce
Affected versions: odoo14 enterprise.
Steps to reproduce the behavior:
- install product assortment module
- open the module
- Creat a new Assortment module
- Save
- when get the error
6.Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/sources/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/opt/odoo/sources/odoo/odoo/http.py", line 685, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/sources/odoo/odoo/http.py", line 361, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/sources/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/sources/odoo/odoo/http.py", line 349, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/sources/odoo/odoo/http.py", line 914, in call
return self.method(*args, **kw)
File "/opt/odoo/sources/odoo/odoo/http.py", line 533, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/sources/odoo/odoo/addons/web/controllers/main.py", line 1394, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/sources/odoo/odoo/addons/web/controllers/main.py", line 1386, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/sources/odoo/odoo/api.py", line 397, in call_kw
result = _call_kw_model_create(method, model, args, kwargs)
File "/opt/odoo/sources/odoo/odoo/api.py", line 377, in _call_kw_model_create
result = method(recs, *args, **kwargs)
File "
", line 2, in create File "/opt/odoo/sources/odoo/odoo/api.py", line 347, in _model_create_multi return create(self, [arg]) File "/opt/odoo/additional_addons/product_assortment/models/ir_filters.py", line 36, in create return super().create(vals_list=vals_list) Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/odoo/sources/odoo/odoo/http.py", line 641, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/sources/odoo/odoo/http.py", line 317, in _handle_exception raise exception.with_traceback(None) from new_cause TypeError: create() got an unexpected keyword argument 'vals_list'
Expected behavior A clear and concise description of what you expected to happen.
Additional context Add any other context about the problem here. (e.g. OS, Python version, ...)