跳至內容
選單
此問題已被標幟
1 回覆
4523 瀏覽次數

Hi ALL!

I'm on odoo 13.

Can someone encounter this error?

This error show when I restored a backup db. 

Thanks in advance.
 

頭像
捨棄

Did you try to update the custom modules after the database is restored?

作者

Hi I didn't update the custom modules because I cannot login anymore showing the error "Internal Server Error".

I just tried to restore a db 4 months ago because I encounter this error but when I use a new backup db the error gone now the case is I gave my latest db but error still there. The error show again after my co-worker pull it and became like the screenshot above.

You can update the module from command line:

-u module_name

最佳答案

It happens many times when you're trying to execute multiple sql queries in a function. When at least one query fails the entire block of transaction is aborted. 

You can easily solve it using the env.cr.savepoint() function.

Code example:

github.com/odoo/odoo/blob/14.0/addons/account/models/partner.py#L498

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 25
1656
2
4月 24
10812
4
4月 25
4088
0
2月 25
1870
2
1月 25
8529