[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:
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user