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
Odoo Training Center
|Asked: 11/16/14, 6:46 AM|
|Seen: 990 times|
|Last updated: 3/16/15, 8:10 AM|