Skip to content
Snippets Groups Projects
Commit 5872c248 authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] stock: on partial picking, do no open a new window action if not needed

This is related to rev. dd4d72d7

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.
parent 73072272
No related branches found
No related tags found
No related merge requests found
......@@ -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.
done = stock_picking.do_partial(
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 {
'type': 'ir.actions.act_window',
'res_model': context.get('active_model', 'stock.picking'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment