I want to pass an ID to a transient wizard model.
This is the code to launch the wizard-popup:
# -*- coding: utf-8 -*-
from openerp import models, fields, api
class StockPicking(models.Model):
_inherit = "stock.picking"
@api.multi
def view_tree_label_picking(self):
return {
'type': 'ir.actions.act_window',
'name': 'view_tree_label_picking',
'view_type': 'tree',
'view_mode': 'tree',
'res_model': 'label.picking',
'target': 'new',
}
How do I pass the current stock_picking ID to the transient model?