summaryrefslogtreecommitdiff
path: root/fixco_custom/models/stock_picking.py
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/models/stock_picking.py')
-rwxr-xr-xfixco_custom/models/stock_picking.py12
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