Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
3259 Visualizzazioni
return {
        "type": "set_scrollTop",
    }

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

Avatar
Abbandona

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

}

Risposta migliore

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
Abbandona
Risposta migliore
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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 24
2570
1
giu 19
2888
0
ott 21
1275
0
ago 20
3823
1
mag 24
4048