[5.0][stock]Check Availability for waiting move lines

Bug #880732 reported by Angel Moya - Domatix
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Using 5.0

In Stock picking when I push ''Check Availability" button the system only search in 'confirmed' move lines. I think it must search 'confirmed' and 'waiting' move lines.

This is the function code:

    def action_assign(self, cr, uid, ids, *args):
        for pick in self.browse(cr, uid, ids):
            move_ids = [x.id for x in pick.move_lines if x.state == 'confirmed']
            self.pool.get('stock.move').action_assign(cr, uid, move_ids)
        return True

I think line:

            move_ids = [x.id for x in pick.move_lines if x.state == 'confirmed']

must be:

            move_ids = [x.id for x in pick.move_lines if x.state in ('confirmed', 'waiting')]

Revision history for this message
Angel Moya - Domatix (angelmoya) wrote :
Revision history for this message
Angel Moya - Domatix (angelmoya) wrote :

this is not a bug... waiting only must change if other picking do it... I couldn't can change with this button.

Changed in openobject-addons:
status: New → Invalid
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.