diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-09 16:23:51 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-09 16:23:51 +0700 |
| commit | 8d482347f6dff03919db3f0a92ba1f3c5eb74ffe (patch) | |
| tree | 35323f6be9a29ba41a6af7e0b2f231e2cbed5f0e /fixco_custom/models/stock_picking.py | |
| parent | ef860cf6815dceb0a806a08b2118390830ccdae0 (diff) | |
shipment group
Diffstat (limited to 'fixco_custom/models/stock_picking.py')
| -rwxr-xr-x | fixco_custom/models/stock_picking.py | 14 |
1 files changed, 14 insertions, 0 deletions
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: |
