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

Hello,


I added a new model Sector

And on this model Sector and the model hr.employee, i added 2 Many2many fields with a model_relation table : sector_employee_rel

How can i add field in this model sector_employee_rel

I tried to inherit this table mut i've got an error : 

TypeError: Model 'sector_employee_rel' does not exist in registry.

Is there something special to do for inheriting model_relation ?

Avatar
Discard
Best Answer

may be because of redundancy in depends [ ], section of __manifest__.py

EDIT: i can't share a link here ...  please add the module which contains model_relation table  model. the same problem resolved when i did it and here i found a link of Answered post but i am not allowed to include links.

Avatar
Discard
Author Best Answer

Hi G.Ahmed,

Why a redundancy, there is only one manifest for all my models in my custom module ?

Avatar
Discard