Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
2933 Представления
    def show_confirmation_message(self):

return {
'name': 'Wizard de ejemplo',
'type': 'ir.actions.act_window',
'res_model': 'my_module.crm.wizard_confirm',
'view_mode': 'form',
'target': 'new',
}

Аватар
Отменить
Лучший ответ

i tried this but the form view won't showed up, is there another way to make a confirmation wizard or popup when stage is changed?

Аватар
Отменить
Лучший ответ

Hi, you can follow following link for this:

https://youtu.be/oMnHpHH54QU

Hope it helps,

Thanks

Аватар
Отменить
Лучший ответ

Hi,
Write an onchange function. If the stage changes, this wizard will appear on your screen.

@api.onchange('stage_field')
def onchange_stage_field(self):
self.stage_change_wizard = self.env[
'crm.wizard_confirm'].create({})

 return
'name': 'Stage Change Wizard',
'type': 'ir.actions.act_window',
'res_model': 'my_module.crm.wizard_confirm',
'view_mode': 'form',
'view_id': self.env.ref('module_name.view_id').id,
'target': 'new',

'res_id': self.stage_change_wizard.id,

 }

Hope it helps


Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
июл. 24
1699
0
янв. 24
1722
1
янв. 24
1751
0
мар. 15
3619
7
авг. 25
27711