I use Odoo 14 Enterprise. From a wizard form, I want to return a form view with record list into domain.
If i use tree view, this action is great. But, i want directly show to result into form view.
Can you help me?
My code:
return {
'type': 'ir.actions.act_window',
'views': [(False, 'tree'), (False, 'form')],
'res_model': 'annual.control.base',
'domain': [('id', 'in', [174, 175])],
'target': 'current',
# 'context': ctx,
}
Thanks !
Change views position
return {
'type': 'ir.actions.act_window',
'views': [(False, 'form'),(False, 'tree')],
'res_model': 'annual.control.base',
'domain': [('id', 'in', [174, 175])],
'target': 'current',
# 'context': ctx,
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.