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

[17.0] partner_firstname : Getting error when clicking on the create and edit of the partner field from other modules #1830

Open
Hridhya-cybro opened this issue Aug 2, 2024 · 2 comments
Labels

Comments

@Hridhya-cybro
Copy link

module - partner_firstname

Issue - When clicking on create and edit of the partner fields from the sales module we get the following error:

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/cybrosys/odoo-17.0/odoo/http.py", line 1764, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/cybrosys/odoo-17.0/odoo/service/model.py", line 133, in retrying
result = func()
File "/home/cybrosys/odoo-17.0/odoo/http.py", line 1791, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/home/cybrosys/odoo-17.0/odoo/http.py", line 1995, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/home/cybrosys/odoo-17.0/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/home/cybrosys/odoo-17.0/odoo/http.py", line 741, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/home/cybrosys/odoo-17.0/addons/web/controllers/dataset.py", line 24, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/cybrosys/odoo-17.0/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/cybrosys/odoo-17.0/odoo/api.py", line 468, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/cybrosys/odoo-17.0/odoo/api.py", line 453, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/cybrosys/odoo-17.0/addons/web/models/models.py", line 998, in onchange
changed_values = {fname: initial_values.pop(fname) for fname in field_names}
File "/home/cybrosys/odoo-17.0/addons/web/models/models.py", line 998, in
changed_values = {fname: initial_values.pop(fname) for fname in field_names}
KeyError: 'name'

The above server error caused the following client error:
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
Error: An error occured in the owl lifecycle (see this Error's "cause" property)
at handleError (http://localhost:8017/web/assets/3526e68/web.assets_web.min.js:916:101)
at App.handleError (http://localhost:8017/web/assets/3526e68/web.assets_web.min.js:1543:29)
at ComponentNode.initiateRender (http://localhost:8017/web/assets/3526e68/web.assets_web.min.js:1006:19)

Caused by: RPC_ERROR: Odoo Server Error
at makeErrorFromResponse (http://localhost:8017/web/assets/3526e68/web.assets_web.min.js:2884:163)
at XMLHttpRequest. (http://localhost:8017/web/assets/3526e68/web.assets_web.min.js:2888:13)

How to reproduce?
Open sales or any other module, try creating a new partner from the customer field and click on the Create and Edit option.

Expected Behaviour
Creating and editing partners from any module should be possible as odoo's default functionality.

@Hridhya-cybro Hridhya-cybro changed the title [17.0] partner_firstname : Getting error when creating contact from other modules [17.0] partner_firstname : Getting error when clicking on the create and edit of the partner field from other modules Aug 2, 2024
@mcimam
Copy link

mcimam commented Aug 5, 2024

I can't replicate this issue. Please provide more detail.

image
image

@Hridhya-cybro
Copy link
Author

Hridhya-cybro commented Aug 6, 2024 via email

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

2 participants