psycopg2.errors.UndefinedColumn: column res_company.branch_id does not exist LINE 1: ...ry_color", "res_company"."email_secondary_color", "res_compa..
I want to add a new field, after adding it an error appears as above. why and how to overcome it?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
psycopg2.errors.UndefinedColumn: column res_company.branch_id does not exist LINE 1: ...ry_color", "res_company"."email_secondary_color", "res_compa..
I want to add a new field, after adding it an error appears as above. why and how to overcome it?
A Simple Solution for it:
Whenever you add a custom field and get an error like this, do "-u all" in your localhost or service file. It will update all the modules.
Hope you like it:
Hi,
If you encounter this error after adding a new field, first upgrade the custom module where the new field was defined.
If the issue still persists even after upgrading, you can manually add the missing column by connecting to your database and running the following SQL command:
ALTER TABLE res_company ADD COLUMN branch_id integer;
Hope it helps
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
0
feb 25
|
2295 | |||
|
0
ene 25
|
1997 | |||
|
Field service upgrade
Resuelto
|
1
dic 24
|
2557 | ||
|
creation of company
Resuelto
|
1
oct 24
|
13323 | ||
|
0
oct 22
|
3060 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.