[IMP] stock ownership: related field owner on quant

bzr revid: qdp-launchpad@openerp.com-20130804202121-cez33u417pq1gou4
This commit is contained in:
Quentin (OpenERP)
2013-08-04 22:21:21 +02:00
parent fa2e25236e
commit a9655a95b0
+1
View File
@@ -146,6 +146,7 @@ class stock_quant(osv.osv):
'reservation_id': fields.many2one('stock.move', 'Reserved for Move', help="Is this quant reserved for a stock.move?"),
'lot_id': fields.many2one('stock.production.lot', 'Lot'),
'cost': fields.float('Unit Cost'),
'partner_id': fields.related('lot_id', 'partner_id', type='many2one', relation="res.partner", string="Owner", store=True), # TODO implement store={}
'create_date': fields.datetime('Creation Date'),
'in_date': fields.datetime('Incoming Date'),