diff options
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: |
