Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/18/16, 9:01 AM|
|Seen: 491 times|
|Last updated: 5/18/16, 3:26 PM|