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

Bug #1235447 reported by Ulrich Mierendorff
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 2

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.

Related branches

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Jitendra Prajapati(OpenERP) (jitendra.prajapati-openerp) wrote :

Hello,

   It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1235447-jpr

  revision-id: <email address hidden>

  revno: 9029

It will be available in trunk soon.

Thanks

Changed in openobject-addons:
status: In Progress → Fix Committed
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.