コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4481 ビュー

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

アバター
破棄
最善の回答

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

アバター
破棄
著作者

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