跳至内容
菜单
此问题已终结
3 回复
3258 查看
return {
        "type": "set_scrollTop",
    }

this is not working on odoov12.
how to resolve this problem ?

形象
丢弃

Try this:

return {

'name': _("wizard name"),

'view_mode': 'form',

'view_type': 'form',

'res_model': 'model', # your current model

'type': 'ir.actions.act_window',

'nodestroy': True,

'target': 'new',

'context': {'default_fieldname': 'your value'}

}

最佳答案

Try it

return {
            'type': 'ir.actions.act_window',
            'view_type': 'form',
            'view_mode': 'form',
            'res_model': 'change.quantity.wizard',
            'views':[[self.env.ref('create_product_ept.quantity_update_wizard_form').id,'form']],
            'context':context,
            'target': 'new',
        }

形象
丢弃
最佳答案
Try this:
return {
'name': _("wizard name"),
'view_mode': 'form',
'view_type': 'form',
'res_model': 'model', # your current model
'type': 'ir.actions.act_window',
'nodestroy': True,
'target': 'new',
'context': {'default_fieldname': 'your value'}
}
形象
丢弃
相关帖文 回复 查看 活动
1
6月 24
2569
1
6月 19
2886
0
10月 21
1274
0
8月 20
3821
1
5月 24
4048