Stock inventory 2 stock move pieces_qty omitted

Bug #1180832 reported by Juan Márquez
6
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

Juan Márquez (jmarquez)
Changed in openerp-tecvemar:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Juan Márquez (jmarquez)
status: Confirmed → Triaged
status: Triaged → In Progress
Revision history for this message
Juan Márquez (jmarquez) wrote :

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

Changed in openerp-tecvemar:
status: In Progress → Fix Committed
Revision history for this message
Juan Márquez (jmarquez) wrote :
Changed in openerp-tecvemar:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.