Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pass parameters to a odoo wizard

 def create_field(self):
    form_view = self.env.ref("your_wizard_form_view_external_id")
    
    return{
       'name': 'Wizard Name',
       'views': [
            (form_view.id, 'form'),
            ],
       'res_model': 'dieu.chinh',
       'target': 'new',
       'type': 'ir.actions.act_window',
       'context': {
             'default_wizard_field_name': self.name.id,  # for passing Many2One field context value in Wizard form view
            },
       }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #parameters #odoo #wizard
ADD COMMENT
Topic
Name
2+3 =