Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
2965 Lượt xem
    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',
}

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi, you can follow following link for this:

https://youtu.be/oMnHpHH54QU

Hope it helps,

Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 24
1726
0
thg 1 24
1754
1
thg 1 24
1771
0
thg 3 15
3650
7
thg 8 25
27777