Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
3261 Представления
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'}
}
Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
июн. 24
2577
1
июн. 19
2889
0
окт. 21
1278
0
авг. 20
3833
1
мая 24
4050