I describe the field in _columns like this
but this field isn't created in my model, though, for many2one - it's ok. Why does it happen? Thanks
I think what you mean is that that the one2many field defined in the .py file does not show up in the database table that is created (or extended).
That is correct and is expected. The one2many just uses the "id" field for the one-to-many relation, no additional field is required or needed in the database table for the one2many field of the model to work.
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: 11/16/14, 6:46 AM|
|Seen: 717 times|
|Last updated: 3/16/15, 8:10 AM|