CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
How and when is dummy field used and can you explain in detail about dummy field.
The dummy field is defined in product.product object as:
'pricelist_id': fields.dummy(string='Pricelist', relation='product.pricelist', type='many2one'),
also why use dummy when you can use many2one field like:
Thanks in advance
fields.dummy is like fields.function, but always return null value, when you read or when you search.
Dummy fields can be used for backward compatibility. E.g. you don't need pricelist_id field anymore, but some other modules have a reference to this field. So, instead of deleting field, you can replace one to dummy field.
About This Community
Odoo Training Center
|Asked: 7/25/13, 4:34 AM|
|Seen: 4866 times|
|Last updated: 3/31/15, 5:37 PM|