diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-10 09:40:37 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-10 09:40:37 +0700 |
| commit | f859c0f4385689be8205cbfde1f0241f8a7b2a22 (patch) | |
| tree | ce7578dba80ff7557afc29db8e91f100d114b80f /fixco_custom/models/stock_picking_shipment_group.py | |
| parent | 510a4e57f4c3a33a8651e439861209ccd30b40ea (diff) | |
push
Diffstat (limited to 'fixco_custom/models/stock_picking_shipment_group.py')
| -rw-r--r-- | fixco_custom/models/stock_picking_shipment_group.py | 9 |
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', + } |
