[FIX] stock: on partial picking, do no open a new window action if not needed
This is related to rev. dd4d72d
Not opening a new window action allows to keep the current list of stock picking being threated, and to use the next an previous arrow of the forom view of the web client.
This commit is contained in:
parent
73072272de
commit
5872c2485d
|
@ -218,6 +218,8 @@ class stock_partial_picking(osv.osv_memory):
|
||||||
# We don't need to find which view is required, stock.picking does it.
|
# We don't need to find which view is required, stock.picking does it.
|
||||||
done = stock_picking.do_partial(
|
done = stock_picking.do_partial(
|
||||||
cr, uid, [partial.picking_id.id], partial_data, context=context)
|
cr, uid, [partial.picking_id.id], partial_data, context=context)
|
||||||
|
if done[partial.picking_id.id]['delivered_picking'] == partial.picking_id.id:
|
||||||
|
return {'type': 'ir.actions.act_window_close'}
|
||||||
return {
|
return {
|
||||||
'type': 'ir.actions.act_window',
|
'type': 'ir.actions.act_window',
|
||||||
'res_model': context.get('active_model', 'stock.picking'),
|
'res_model': context.get('active_model', 'stock.picking'),
|
||||||
|
|
Loading…
Reference in New Issue