Skip to Content
Menu
This question has been flagged
3 Replies
2464 Views
return {
        "type": "set_scrollTop",
    }

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

Avatar
Discard

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'}

}

Best Answer

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',
        }

Avatar
Discard
Best Answer
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'}
}
Avatar
Discard
Related Posts Replies Views Activity
1
Jun 24
690
1
Jun 19
2137
0
Oct 21
373
0
Aug 20
2730
1
May 24
2898