summaryrefslogtreecommitdiff
path: root/fixco_custom/models
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/models')
-rw-r--r--fixco_custom/models/stock_picking_shipment_group.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/fixco_custom/models/stock_picking_shipment_group.py b/fixco_custom/models/stock_picking_shipment_group.py
index 89b26bd..1b1b1df 100644
--- a/fixco_custom/models/stock_picking_shipment_group.py
+++ b/fixco_custom/models/stock_picking_shipment_group.py
@@ -31,6 +31,13 @@ class StockPickingShipmentGroup(models.TransientModel):
'invoice_marketplace': picking.invoice_mp,
})
- return {'type': 'ir.actions.act_window_close'}
+ # Return action to open the newly created shipment group
+ return {
+ 'type': 'ir.actions.act_window',
+ 'res_model': 'shipment.group',
+ 'view_mode': 'form',
+ 'res_id': shipment_group.id,
+ 'target': 'current',
+ }