Stock inventory 2 stock move pieces_qty omitted
Bug #1180832 reported by
Juan Márquez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openerp-tecvemar |
Fix Released
|
Critical
|
Juan Márquez |
Bug Description
When validate a stock_inventory the pieces_qty filed ins't transfered to stock move
Related branches
Changed in openerp-tecvemar: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
assignee: | nobody → Juan Márquez (jmarquez) |
status: | Confirmed → Triaged |
status: | Triaged → In Progress |
To post a comment you must log in.
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