Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select a tag on purchase order returns persistent client error. #2411

Open
codeagencybe opened this issue Sep 21, 2024 · 0 comments
Open

Select a tag on purchase order returns persistent client error. #2411

codeagencybe opened this issue Sep 21, 2024 · 0 comments
Labels

Comments

@codeagencybe
Copy link
Member

Module

purchase_tag

Describe the bug

When clicking on the field tag_ids in the purchase order, it loads the client error message below.
Can't save any tag on an order and have to undo. This is a blocking error when tag is required.

Seems like there is used a wrong argument "order" in the search call fuction.


RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1764, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 133, in retrying
    result = func()
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1791, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1995, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
    response = super()._dispatch(endpoint)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
    result = endpoint(**request.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 741, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 24, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 464, in call_kw
    result = _call_kw_model(method, model, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 435, in _call_kw_model
    result = method(recs, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 1735, in name_search
    ids = self._name_search(name, args, operator, limit=limit, order=self._order)
TypeError: PurchaseTag._name_search() got an unexpected keyword argument 'order'

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
    RPC_ERROR
        at makeErrorFromResponse (https://xxxxxx.be/web/assets/a2c3644/web.assets_web.min.js:2886:163)
        at XMLHttpRequest.<anonymous> (https://xxxxxxx.be/web/assets/a2c3644/web.assets_web.min.js:2890:13)

To Reproduce

Affected versions: 17.0

Steps to reproduce the behavior:

  1. install module
  2. go to a purchase order
  3. try to select a tag

Expected behavior
load the list of available tags

Additional context
Dockerized environment running the official Odoo docker image from Docker hub. No customizations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant