Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
1003 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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: 

Awatar
Odrzuć
Najlepsza odpowiedź

Restart with "-u all" :)

Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lut 25
1032
0
sty 25
870
1
gru 24
1160
1
paź 24
12153
0
paź 22
1932