Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4449 Näkymät

Hi ALL!

I'm on odoo 13.

Can someone encounter this error?

This error show when I restored a backup db. 

Thanks in advance.
 

Avatar
Hylkää

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

Tekijä

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

Paras vastaus

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

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
heinäk. 25
1544
2
huhtik. 24
10730
4
huhtik. 25
3998
0
helmik. 25
1680
2
tammik. 25
8370