Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/16/14, 6:46 AM|
|Seen: 875 times|
|Last updated: 3/16/15, 8:10 AM|