Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
840 Переглядів

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: 

Аватар
Відмінити
Найкраща відповідь

Restart with "-u all" :)

Аватар
Відмінити
Найкраща відповідь

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


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
лют. 25
730
0
січ. 25
610
Field service upgrade Вирішено
1
груд. 24
889
creation of company Вирішено
1
жовт. 24
11975
0
жовт. 22
1775