odoo technical video
Video Tutorial

Open Form View on a Button Click in Odoo 15

APR 8,2022
Description:
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. 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'
    }

odoo videos odoo development odoo tutorial odoo 15

whatsapp
location

Calicut

Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635

location

Kochi

Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.

location

Bangalore

Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message