コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
3263 ビュー
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
2583
1
6月 19
2892
0
10月 21
1279
0
8月 20
3839
1
5月 24
4053