Hi, when I insert a One2Many in TransientModel and their inverse field many"One in ModelModel Odoo tell it's not possible becouse the relation betwen ModelModel and TransientModel can't be.
¿Why is the soluction for insert a One"many Field in TransientModel?
The one2many field is essentially the inverse relation corresponding to a many2one field.
As the error message says, you cannot have a many2one from a Model to a TransientModel, but you can have a many2one from a TransientModel to a TransientModel. So you can have a one2many in a TransientModel, as long as the comodel of that field is also a TransientModel.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/5/16, 2:15 AM|
|Seen: 365 times|
|Last updated: 7/5/16, 7:59 AM|