Skip to Content
Menu
This question has been flagged
2 Replies
2477 Views

I changed this
res_partner_employee_in_order_ids ("res.partner", "sale_order_line_ids") 
to this
res_partner_ids ("res.partner", "sale_order_line_ids") 


and now i suddenly get the psycopg2.errors.UndefinedColumn: with every relation with res partner

anybody knows how to fix it?

Avatar
Discard
Best Answer

Hello

1. it this field o2m or m2m

2. Did you upgrade module sir ?

Avatar
Discard
Best Answer

Hi,

To fix this, make sure the new field is added to the res.partner model. Then, upgrade the module to update the database schema.

You can upgrade the module from the terminal with this command:

odoo-bin -c /path/to/your/odoo.conf -d db_name -u module_name

Replace '/path/to/your/odoo.conf' with the path to your Odoo configuration file, 'db_name' with the name of your database, and 'module_name' with the name of the module you are upgrading.


Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
3454
2
Oct 24
1130
2
Oct 23
4469
3
Sep 23
1539
0
May 23
1821