Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
3312 Lượt xem
return {
        "type": "set_scrollTop",
    }

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

Ảnh đại diện
Huỷ bỏ

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

}

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
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'}
}
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 24
2631
1
thg 6 19
2926
0
thg 10 21
1291
0
thg 8 20
3891
1
thg 5 24
4091