Skip to Content
Menu
This question has been flagged
1 Reply
1739 Views

Hi there, I installed a third party app and now I get this message: 


RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

File "/aadmin/aadmin-server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch

result = request.dispatch()

File "/aadmin/aadmin-server/odoo/http.py", line 688, in dispatch

result = self._call_function(**self.params)

File "/aadmin/aadmin-server/odoo/http.py", line 360, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/aadmin/aadmin-server/odoo/service/model.py", line 94, in wrapper

return f(dbname, *args, **kwargs)

File "/aadmin/aadmin-server/odoo/http.py", line 349, in checked_call

result = self.endpoint(*a, **kw)

File "/aadmin/aadmin-server/odoo/http.py", line 917, in __call__

return self.method(*args, **kw)

File "/aadmin/aadmin-server/odoo/http.py", line 536, in response_wrap

response = f(*args, **kw)

File "/aadmin/aadmin-server/addons/web/controllers/main.py", line 1348, in call_kw

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

File "/aadmin/aadmin-server/addons/web/controllers/main.py", line 1340, in _call_kw

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

File "/aadmin/aadmin-server/odoo/api.py", line 464, in call_kw

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

File "/aadmin/aadmin-server/odoo/api.py", line 451, in _call_kw_multi

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

File "/aadmin/aadmin-server/odoo/models.py", line 3216, in read

raise ValueError("Invalid field %r on model %r" % (name, self._name))

Exception



The above exception was the direct cause of the following exception:



Traceback (most recent call last):

File "/aadmin/aadmin-server/odoo/http.py", line 644, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/aadmin/aadmin-server/odoo/http.py", line 302, in _handle_exception

raise exception.with_traceback(None) from new_cause

ValueError: Invalid field 'old_revision_ids' on model 'sale.order'

It doesn't matter what I do, I can't use the sales module anymore because of this error. I uninstalled and reistalled the sales module, and the third part app. I still get the error. 

There was an error installing the app, but I didn't grab it. I have this issue with any app I install from the app.odoo.com site. What am I doing wrong. 

Odoo Community, V15, Ubuntu Digital Ocean Server. 

Avatar
Discard
Best Answer

Hi,
Did you solved it ? can you activate the developer mode and navigate to settings -> technical -> user interface -> views, and search old_revision_ids in the view architecture and see whether there is any view containing this field.

If yes delete the field from the view and see.

Thanks

Avatar
Discard
Author

No, there there isn't anything there.

Here is what the error looks like when the app is installed:

Error while importing module 'sale_revision_history'.

while parsing /tmp/tmpjakvuiwr/sale_revision_history/views/sale_order_views.xml:3
Error while validating view near:

<form string="Sales Order" class="o_sale_order" js_class="sale_discount_form" __validate__="1">
<header>
<field name="authorized_transaction_ids" invisible="1"/>
<button name="payment_action_capture" type="object" data-hotkey="shift+g" string="Capture Transaction" class="oe_highlight" attrs="{'invisible': [('authorized_transaction_ids', '=', [])]}"/>
<button name="payment_action_void" type="object" string="Void Transaction" data-hotkey="shift+v" confirm="Are you sure you want to void the authorized transaction? This action can't be undone." attrs="{'invisible': [('authorized_transaction_ids', '=', [])]}"/>

action_revision is not a valid action on sale.order

View error context:
{'file': '/tmp/tmpjakvuiwr/sale_revision_history/views/sale_order_views.xml',
'line': 3,
'name': 'sale.order.form',
'view': ir.ui.view(2873,),
'view.model': 'sale.order',
'view.parent': ir.ui.view(787,),
'xmlid': 'sale_order_view_form'}

Make sure those modules are installed and try again.

did you restarted the odoo service after adding the sale_revision_history module ?

Author

Yes, That didn't help either. Is it because it's the community version and not the enterprise? Do I have to have the enterprise version to add apps?

i repeat are you sure you restart the odoo service ? the error is thrown when there is no python function defined in the model, but upon checking the module i can see the function is there.
so make sure odoo service is restarted properly

Author

Again, yes. Using the command listed in the configuration setting in my odoo file (Which I made after the script was installed)
[sudo service aadmin-server restart]
I have restarted the server, I have power cycled the droplet. Is there another way to restart the odoo service?

Author

Now, I have never been successful in installing ANY third-party apps. I couldn't use my first install after installing some apps and had to reinstall the service to use it again. I had hoped I wouldn't have to do that again this time.

sudo service aadmin-server stop, can you execute this and tell me whether the odoo is getting not accessible or not ? just to make sure service is getting stopped

Author

Yes, that stopped the service.

Author

Do you think there is a solution, or do I have to reinstall Odoo?

definitely there is solution, if you have some tech people in around you in odoo, connect them and see, they can sort it out for you.
else connect me in niyasraphyk@gmail.com