Quantcast
Viewing all articles
Browse latest Browse all 39

Explain fields.property()

Hello, I can't find documentation on fields.property() type of fields. How do they work? As an example: In OpenERP 7, /addons/stock/product.py, starting from line 484 there are property() fields declared: class product_template(osv.osv): _name = 'product.template' _inherit = 'product.template' _columns = { 'property_stock_procurement': fields.property( 'stock.location', type='many2one', relation='stock.location', string="Procurement Location", view_load=True, domain=[('usage','like','procurement')], help="This stock location will be used, instead of the default one, as the source location for stock moves generated by procurements."), 'property_stock_production': fields.property( 'stock.location', type='many2one', relation='stock.location', string="Production Location", view_load=True, domain=[('usage','like','production')], help="This stock location will be used, instead of the default one, as the source location for stock moves generated by manufacturing orders."), In particular, the above declared field 'property_stock_production' does not appear to be in database tables even after 'stock' module installation (checked with Pgadmin). Please explain the purpose and nature of fields.property()

Viewing all articles
Browse latest Browse all 39

Trending Articles