← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 880732] [NEW] [5.0][stock]Check Availability for waiting move lines

 

Public bug reported:

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')]

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/880732

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

Status in OpenERP Addons (modules):
  New

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')]

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/880732/+subscriptions


Follow ups

References