Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
3027 มุมมอง
    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
1785
0
ม.ค. 24
1814
1
ม.ค. 24
1809
0
มี.ค. 15
3666
7
ส.ค. 25
27901