OCA / partner-contact

Odoo Partner and Contact related addons
GNU Affero General Public License v3.0
203 stars 832 forks source link

[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 1 month ago

Hridhya-cybro commented 1 month ago

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.

mcimam commented 1 month ago

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

image image

Hridhya-cybro commented 1 month ago

Thank you for your support. It works fine in your latest commit.

Thanks & Regards

Hridhya D

Python Developer

Project & IT Department

Cybrosys Technologies

Mail

Mobile

WhatsApp

Skype

@.***

+91 8606827707

+91 8606827707

cybroopenerp

www.cybrosys.com

On Mon, Aug 5, 2024 at 10:08 AM mcimam @.***> wrote:

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

image.png (view on web) https://github.com/user-attachments/assets/5e3968f3-90ec-449f-b927-76d8e0becb57 image.png (view on web) https://github.com/user-attachments/assets/9c4a3427-5de3-4f07-b824-fcef089f7fc7

— Reply to this email directly, view it on GitHub https://github.com/OCA/partner-contact/issues/1830#issuecomment-2268157140, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5UY3EXSRBPMJV6KS72SZ5DZP36T5AVCNFSM6AAAAABL4FBZDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRYGE2TOMJUGA . You are receiving this because you authored the thread.Message ID: @.***>