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

Eroare calcul display name cont contabil #1133

Open
feketemihai opened this issue Nov 15, 2024 · 0 comments
Open

Eroare calcul display name cont contabil #1133

feketemihai opened this issue Nov 15, 2024 · 0 comments
Labels

Comments

@feketemihai
Copy link
Member

La creearea unui nou cont contabil, apare eroarea urmatoare, campul code e False.

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/parts/odoo/odoo/odoo/http.py", line 1782, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/opt/odoo/parts/odoo/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/opt/odoo/parts/odoo/odoo/odoo/http.py", line 1809, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/opt/odoo/parts/odoo/odoo/odoo/http.py", line 2013, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/opt/odoo/parts/odoo/odoo/odoo/addons/base/models/ir_http.py", line 221, in _dispatch
result = endpoint(**request.params)
File "/opt/odoo/parts/odoo/odoo/odoo/http.py", line 757, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/odoo/parts/odoo/odoo/addons/web/controllers/dataset.py", line 24, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/parts/odoo/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/parts/odoo/odoo/odoo/api.py", line 468, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/parts/odoo/odoo/odoo/api.py", line 453, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/parts/odoo/odoo/addons/web/models/models.py", line 1081, in onchange
snapshot1 = RecordSnapshot(record, fields_spec)
File "/opt/odoo/parts/odoo/odoo/addons/web/models/models.py", line 1168, in init
self.fetch(name)
File "/opt/odoo/parts/odoo/odoo/addons/web/models/models.py", line 1183, in fetch
self[field_name] = self.record[field_name]
File "/opt/odoo/parts/odoo/odoo/odoo/models.py", line 6650, in getitem
return self._fields[key].get(self, self.env.registry[self._name])
File "/opt/odoo/parts/odoo/odoo/odoo/fields.py", line 1207, in get
self.compute_value(recs)
File "/opt/odoo/parts/odoo/odoo/odoo/fields.py", line 1389, in compute_value
records._compute_field_value(self)
File "/opt/odoo/parts/odoo/odoo/addons/mail/models/mail_thread.py", line 424, in _compute_field_value
return super()._compute_field_value(field)
File "/opt/odoo/parts/odoo/odoo/odoo/models.py", line 4894, in _compute_field_value
fields.determine(field.compute, self)
File "/opt/odoo/parts/odoo/odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/opt/odoo/parts/oca/l10n-romania/l10n_ro_account/models/account_account.py", line 50, in _compute_display_name
name = code + " " + account.name
TypeError: unsupported operand type(s) for +: 'bool' and 'str'

The above server error caused the following client error:
OwlError: The following error occurred in onWillStart: "Odoo Server Error"
Error
at wrapError (https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:1045:139)
at onWillStart (https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:1050:117)
at useModel (https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:5885:104)
at FormController.setup (https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:8689:99)
at FormController.setup (https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:12986:446)
at ComponentNode (https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:1003:202)
at https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:1549:6
at View.slot1 (eval at compile (https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:1503:374), :15:36)
at callSlot (https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:1109:25)
at WithSearch.template (eval at compile (https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:1503:374), :8:12)

Caused by: RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:2900:163)
at XMLHttpRequest. (https://demo17-sitrademo.dyncloud.io/web/assets/74eb152/web.assets_web.min.js:2904:13)

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