How to Open a Form View on Button Click in Odoo 15 | Odoo 15 Development Tutorials
Channel:
Subscribers:
28,000
Published on ● Video Link: https://www.youtube.com/watch?v=lwhAHQMV0DU
This video is about how to open a form view while clicking a button. On the button action we can return the view we need to open like this.
#odootechnicalvideos #odoovidoes #odoo15developmentvideos
Here we can pass our model to 'res_model' and the particular view to 'view_id'
def my_button(self):
return {
'name': "Your String",
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'res_model': 'object',
'view_id': self.env.ref('module.view_id').id,
'target': 'new'
}
Other Videos By Cybrosys Technologies
Tags:
odoo
odoo erp
cybrosys odoo
odoo apps