From 8d482347f6dff03919db3f0a92ba1f3c5eb74ffe Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 9 Jun 2025 16:23:51 +0700 Subject: shipment group --- fixco_custom/models/stock_picking.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'fixco_custom/models/stock_picking.py') diff --git a/fixco_custom/models/stock_picking.py b/fixco_custom/models/stock_picking.py index 55b6d7e..15dcd27 100755 --- a/fixco_custom/models/stock_picking.py +++ b/fixco_custom/models/stock_picking.py @@ -36,6 +36,20 @@ class StockPicking(models.Model): invoice_mp = fields.Char(string='Invoice Marketplace') address = fields.Char('Address') note_by_buyer = fields.Char('Note By Buyer') + carrier = fields.Char(string='Shipping Method') + shipment_group_id = fields.Many2one('shipment.group', string='Shipment Group', copy=False) + + def open_form_shipment_group(self): + return { + 'name': _('Create Shipment Group'), + 'type': 'ir.actions.act_window', + 'res_model': 'stock.picking.shipment_group', + 'view_mode': 'form', + 'target': 'new', + 'context': { + 'picking_ids': self.ids, + } + } def label_ginee(self): try: -- cgit v1.2.3