Skip to Content
Menu
This question has been flagged
1 Reply
3974 Views

Hi,
I am facing issue while installing one module, below is the issue
File "/home/abhi/Desktop/odoo-10/odoo/odoo-server/odoo/fields.py", line 544, in _setup_related_full
field = target._fields[name]
KeyError: 'company_id'​

Please help if anyone faced this kind of issue.
Thanks

Avatar
Discard
Best Answer

Hi,

Hope you are getting the error message from a custom module, if so, check for a  related field inside the module having company_id is given in it. Suppose if i have added a field named test as related field of partner_id and there is no partner_id field in my model, you will get the keyerror as partner_id .

Thanks

Avatar
Discard
Author

Thanks Niyas,

Worked for me.

When I added "dependency" in the manifest in odoo I got this error
I wanted to do a one2many relationship