I create a wizard that it's called when I select 2 or more elements in the tree view.
The field that is in the wizard has an on_change that return a domain if the conditions are true, but when one of them is false I want to show an error message.
And I used
raise osv.except_osv(_('Error'), _('You have selected 1 or more tickets of different partners.'))The problem is when I display this error and the user click in the button of the message error to close it, I want the wizard close too.
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
|Asked: 5/18/16, 9:01 AM|
|Seen: 265 times|
|Last updated: 5/18/16, 3:26 PM|