How to Open a Form View on Button Click in Odoo 15 | Odoo 15 Development Tutorials

preview_player
Показать описание
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",
'view_type': 'form',
'view_mode': 'form',
'res_model': 'object',
'target': 'new'
}
Рекомендации по теме
Комментарии
Автор

Hi! How i can open a form view for ne object and put some date in field? For exampl i want open new lead and put in phone field same number

AndriyBoretsky
join shbcf.ru