[IMP] stock: usability of product form view + change the behavior of get_picking_for_packing_ui in order to return a list of ids (to ease navigation to next/previous)

bzr revid: qdp-launchpad@openerp.com-20130927131652-ccg5ik2smczwtenm
This commit is contained in:
Quentin (OpenERP)
2013-09-27 15:16:52 +02:00
parent 033d442a81
commit efba18fc64
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -1007,8 +1007,7 @@ class stock_picking(osv.osv):
# Methods for the barcode UI
def get_picking_for_packing_ui(self, cr, uid, context=None):
res = self.search(cr, uid, [('state', 'in', ('confirmed', 'assigned'))], limit=1, context=context)
return res and res[0] or False # TODO: what to do if nothing is left to do?
return self.search(cr, uid, [('state', 'in', ('confirmed', 'assigned'))], context=context)
def action_done_from_packing_ui(self, cr, uid, picking_id, only_split_lines=False, context=None):
self.do_partial(cr, uid, picking_id, only_split_lines, context=context)
+2 -2
View File
@@ -1649,8 +1649,8 @@
<field name="arch" type="xml">
<xpath expr="//group[@name='general']" position="after" >
<newline/>
<group>
<field name="route_ids" widget="many2many_tags"/>
<group string="Supply Chain Information">
<field name="route_ids" widget="many2many_checkboxes"/>
</group>
<newline/>
</xpath>