Answers for "pass parameters to a odoo wizard"

0

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
            },
       }
Posted by: Guest on July-28-2021

Code answers related to "pass parameters to a odoo wizard"

Python Answers by Framework

Browse Popular Code Answers by Language