Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4474 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 25
1563
2
เม.ย. 24
10749
odoo 17 setup encoding error แก้ไขแล้ว
4
เม.ย. 25
4024
0
ก.พ. 25
1768
2
ม.ค. 25
8440