Skip to Content
Menu
This question has been flagged
1 Odpoveď
1530 Zobrazenia

Hello Comunity,

After odoo migration I got this issue enter settings. Does anyone have a clue how to fix this?


RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo/http.py", line 1783, in _serve_db

return service_model.retrying(self._serve_ir_http, self.env)

File "/home/odoo/src/odoo/odoo/service/model.py", line 133, in retrying

result = func()

File "/home/odoo/src/odoo/odoo/http.py", line 1810, in _serve_ir_http

response = self.dispatcher.dispatch(rule.endpoint, args)

File "/home/odoo/src/odoo/odoo/http.py", line 2014, in dispatch

result = self.request.registry['ir.http']._dispatch(endpoint)

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch

result = endpoint(**request.params)

File "/home/odoo/src/odoo/odoo/http.py", line 759, in route_wrapper

result = endpoint(self, *args, **params_ok)

File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 24, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw

return call_kw(request.env[model], method, args, kwargs)

File "/home/odoo/src/odoo/odoo/api.py", line 468, in call_kw

result = _call_kw_multi(method, model, args, kwargs)

File "/home/odoo/src/odoo/odoo/api.py", line 453, in _call_kw_multi

result = method(recs, *args, **kwargs)

File "/home/odoo/src/odoo/addons/web/models/models.py", line 1034, in onchange

record._update_cache(changed_values)

File "/home/odoo/src/odoo/odoo/models.py", line 6021, in _update_cache

value = field.convert_to_cache(value, self, validate)

File "/home/odoo/src/odoo/odoo/fields.py", line 2838, in convert_to_cache

raise ValueError("Wrong value for %s: %r" % (self, value))

ValueError: Wrong value for res.config.settings.chart_template: 's'


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 (https://XXX-15255165.dev.odoo.com/web/assets/d413a17/web.assets_web.min.js:916:101)

at App.handleError (https://XXX15255165.dev.odoo.com/web/assets/d413a17/web.assets_web.min.js:1545:29)

at ComponentNode.initiateRender (https://XXX-15255165.dev.odoo.com/web/assets/d413a17/web.assets_web.min.js:1006:19)

Caused by: RPC_ERROR: Odoo Server Error

RPC_ERROR

at makeErrorFromResponse (https://XXX-15255165.dev.odoo.com/web/assets/d413a17/web.assets_web.min.js:2888:163)

at XMLHttpRequest. (https://xxx-15255165.dev.odoo.com/web/assets/d413a17/web.assets_web.min.js:2892:13)

Avatar
Zrušiť

Dear Bruno Rocha,

Did you able to solve the above issue ? We are also facing the same issue now.

And could you please provide an update on the Open Upgrade v17 script?. Is it ready or not yet ready ?

Autor

Hello Aslam Up,
We inicialy asked for help in Odoo support, and you can do it also.
My feedback they where fast fixing the issue, but I think they only fixed this one project, and not the migration script.
If you are confortable you can also fix the field by yourself directly in the SQL, that was what we did on the other migrations.

Thank you for your response Bruno Rocha. Since we are migrating a Community Edition database, we are unable to seek support from Odoo. Instead, we are using the Open Upgrade tool (by OCA).

We are encountering the same error, as the field in V16 is a Many2one field, while in V17, it has been changed to a Selection field.

Autor

Hello Aslam UP,

I´m not familiar with the OCA migration tool, but if possible I would test after the migration script if can be fixed or open a Issue in OCA

Best Answer

Hi Bruno: This is a bit tricky. It looks like the value of the fiscal localization associated with the company has got messed up. You can check the value by exporting the Company Name and Chart Template fields from the Companies list view, if you are able to access it.

If you are migrating an Enterprise Edition database, the best thing might be to log a support ticket with the Odoo upgrade team and have them fix it.

Avatar
Zrušiť
Autor

Hello Paresh,
Nice advice.
Yes, I have check and the fiscal localization got scambled on migration.
In V16 is a many2one field and on v17 is a selection, somewhere during migration script it got scambled, because 's' is not one of the available options.

Related Posts Replies Zobrazenia Aktivita
3
mar 25
1209
4
jan 25
11620
0
nov 24
487
2
aug 24
755
1
máj 24
1588