147
147
'report_id': fields.many2one('expiry.quantity.report', string='Report', required=True),
148
148
'product_id': fields.many2one('product.product', string='Product', required=True),
149
'product_code': fields.related('product_id', 'default_code', string='Reference', type='char'),
149
'product_code': fields.related('product_id', 'default_code', string='Ref.', type='char'),
150
150
'product_name': fields.related('product_id', 'name', string='Name', type='char'),
151
151
'uom_id': fields.related('product_id', 'uom_id', string='UoM', type='many2one', relation='product.uom'),
152
'real_stock': fields.float(digits=(16, 2), string='Total product real stock in location'),
153
'expired_qty': fields.float(digits=(16, 2), string='Batch expired quantity in location'),
154
'batch_number': fields.many2one('production.lot', string='Batch number'),
155
'expiry_date': fields.date(string='Expiry date'),
156
'location_id': fields.many2one('stock.location', string='Location'),
152
'real_stock': fields.float(digits=(16, 2), string='Real stock'),
153
'expired_qty': fields.float(digits=(16, 2), string='Batch exp.'),
154
'batch_number': fields.many2one('production.lot', string='Batch'),
155
'expiry_date': fields.date(string='Exp. date'),
156
'location_id': fields.many2one('stock.location', string='Loc.'),
159
159
expiry_quantity_report_line()