Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How To: Pop-up triggered by back-end logic

on 6/23/16, 7:06 AM 263 views


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:

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? 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 6/23/16, 7:06 AM
Seen: 263 times
Last updated: 6/25/16, 12:10 PM