diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-13 14:35:38 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-13 14:35:38 +0700 |
| commit | 55936047e729cadcd462a57c7838f77f7c57ee1a (patch) | |
| tree | 9fabbef497dc1e555e88083581cf18be41c6db95 /fixco_custom/models/stock_picking.py | |
| parent | f4ff9e2abad82f07e039c388af5e82034ae30694 (diff) | |
print picking list
Diffstat (limited to 'fixco_custom/models/stock_picking.py')
| -rwxr-xr-x | fixco_custom/models/stock_picking.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fixco_custom/models/stock_picking.py b/fixco_custom/models/stock_picking.py index 15dcd27..78d4c16 100755 --- a/fixco_custom/models/stock_picking.py +++ b/fixco_custom/models/stock_picking.py @@ -51,6 +51,18 @@ class StockPicking(models.Model): } } + def open_form_print_picking_list(self): + return { + 'name': _('Create Print Picking List'), + 'type': 'ir.actions.act_window', + 'res_model': 'stock.picking.print_picking_list', + 'view_mode': 'form', + 'target': 'new', + 'context': { + 'picking_ids': self.ids, + } + } + def label_ginee(self): try: order_id = self.order_reference |
