← Back to team overview

openerp-india team mailing list archive

[Bug 1235447] Re: "Put in current pack" is displayed for delivery order for state == done

 

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1235447

Title:
  "Put in current pack" is displayed for delivery order for state ==
  done

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  When the state of a delivery order (stock.picking.out) is set to
  "done" by delivering it, items that are not in packs still show the
  button "Put in current pack" which is probably not intended.

  In the stock/stock_view.xml both "attrs" and "states" are used to set invisibility in the record with id "view_move_picking_tree":
  <button name="setlast_tracking" string="Put in current pack" type="object"
                          attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
                          icon="terp-accessories-archiver"
                          groups="stock.group_tracking_lot"
                          states="draft,assigned,confirmed"/>

  As described in https://bugs.launchpad.net/openobject-client/+bug/941901 this does not work as one wants. The fix for this case would be to set "attrs" to
  "{'invisible': ['|', ('tracking_id','!=',False), ('state', 'not in', ['draft','assigned','confirmed'])]}"
  and remove the "states". At least, this works for me.

  This also applies in a similar way to the records with ids
  view_move_tree
  view_move_tree_reception_picking

  
  Both 7.0 and trunk are affected.

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


References