added:
class stock_inventory(osv.osv):
_inherit = 'stock.inventory'
def _inventory_line_hook(self, cr, uid, inventory_line, move_vals): """ Added to transfer pieces_qty to stock_move """ if inventory_line.pieces_qty: move_vals.update({'pieces_qty':inventory_line.pieces_qty}) return super(stock_inventory, self)._inventory_line_hook(cr, uid, inventory_line, move_vals)
stock_inventory()
to tcv_stock driver
added:
class stock_inventory (osv.osv) :
_inherit = 'stock.inventory'
def _inventory_ line_hook( self, cr, uid, inventory_line, move_vals): line.pieces_ qty:
move_ vals.update( {'pieces_ qty':inventory_ line.pieces_ qty}) inventory, self)._ inventory_ line_hook( cr, uid, inventory_line, move_vals)
"""
Added to transfer pieces_qty to stock_move
"""
if inventory_
return super(stock_
stock_inventory()
to tcv_stock driver