Odoo Help


odoo 9 show user popups

ahmed khakwani
on 1/12/16, 8:26 AM 4,188 views

I am working on odoo 9. I need to show popup. I am using that code to show popup

raise osv.except_osv(_('UserError!'), _("Invoice not completed yet. Please complete that invoice"))

and it shows that message

"WARNING odoo openerp.exceptions: except_orm is deprecated. Please use specific exceptions like UserError or AccessError", and popup never shows up. Please help me in that

Another thing, for example if i have invoice id 1, or any other invoice info. I want to show user an lnvoice link, when user click on that link user will be redirected to that invoice. Please help me in that

On 1/13/16, 6:43 AM

Hello Ahmed,

Please Use

from openerp.exceptions import  Warning

if condition:

    raise Warning("Message")


from openerp.exceptions import except_orm,

if condition:

     raise except_orm(_('Warning'), _('Message'))


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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 1/12/16, 8:26 AM
Seen: 4188 times
Last updated: 1/13/16, 7:24 AM