Odoo Help


why dummy field used in product.product

Atchuthan - Technical Consultant, Sodexis Inc
on 7/25/13, 4:34 AM 5,221 views


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:

'pricelist_id': fields.many2one('product.pricelist','Pricelist',),

Thanks in advance

and also used at stock.product_product for fields 'location_id','warehouse_id'.

Atchuthan - Technical Consultant, Sodexis Inc
on 7/25/13, 4:43 AM
This question has been included in the official documentation.

Ivan Elizaryev

--Ivan Elizaryev--
| 4 3 7
Ufa, Russian Federation
--Ivan Elizaryev--

I tried odoo at the end of 2013. I fell in love in it and have been working with odoo as a freelancer for almost two years. In September 2015 I began operate as a Company and have 5 developers for now.

Ivan, March 2016.

Ivan Elizaryev
On 2/19/15, 1:51 PM

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

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)


Asked: 7/25/13, 4:34 AM
Seen: 5221 times
Last updated: 3/31/15, 5:37 PM