Ir al contenido
Menú
Se marcó esta pregunta
2729 Vistas

Hello,


Could you please help me to migrate from Odoo 13.0alpha1 to Odoo 13.0 Stable? I used the following git command to install odoo when it was in alpha.

git clone https://www.github.com/odoo/odoo --depth 1 --branch master /opt/odoo/odoo13

What I did was, stopped odoo and renamed the existing directory /opt/odoo/odoo13 to /opt/odoo/odoo13-bak. Then I cloned the stable branch using

git clone https://www.github.com/odoo/odoo --depth 1 --branch 13.0 /opt/odoo/odoo13

After that, I issued the following command,

/opt/odoo/odoo13/venv/bin/python3 /opt/odoo/odoo13/odoo-bin --update all --database odoo

Then I received 500 error when I try to browse the dashboard. In the log, I can see the following.

2019-11-23 03:58:53,875 5881 ERROR odoo odoo.sql_db: bad query: ALTER TABLE "res_lang" ALTER COLUMN "url_code" SET NOT NULL
ERROR: column "url_code" contains null values

2019-11-23 03:58:53,875 5881 WARNING odoo odoo.schema: Table 'res_lang': unable to set NOT NULL on column 'url_code'!
If you want to have it, you should update the records and execute manually:
ALTER TABLE "res_lang" ALTER COLUMN "url_code" SET NOT NULL

I tried to ALTER the database table but wasn't able to do so. 

Your help highly appreciated. Thank you!


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jul 25
2521
0
may 23
2290
3
mar 25
23864
1
nov 22
2196
1
may 22
5697