Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4688 Visualizzazioni

Hello

I'm extending support module, and added new field - "Resolution Summary" which should be filled up by HelpDesk representative.

then i'm intercepting ticket close event and checking weather field is not empty, and if it is empty, im rising error, something like:

@api.multi
def write(self, vals):
if 'stage' in vals:
if vals['stage'] == 4:
if not self.resolution_summary:
raise osv.except_osv("Resolution Summary is Missing",
"Please Enter Resolution Summary Before Closing Ticket") # *** Rest functionality is Skipped *** #


However instead of throwing exception with "Warning" pop-up, I would like to display proper pop-up with window name
and single filed "Resolution Summary" as text area


I'm fine with front end XML part, but very confused with - how to call pop-up from within a "write" method? 


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
feb 22
6636
0
apr 24
2318
0
mag 24
4195
1
mar 15
6705
0
set 22
3385