Odoo Help


How can I create a Popup Message?

Dr Obx
on 1/26/16, 8:28 AM 1,839 views

Guys, how can I do it, I would like to add a message when "if statement" is true or if certain value is reached.

At this moment I have a message but once i click on it to confirm/close popup window it stop/cancel whole operation.

Is there any way to do it and once i click "OK" it will continue/finish the operation ?

Something like 'confirm' but message depending on result of calculation for example.


if cust > full_stock:

raise Warning(('Attention!'),(My_error_msg_1))

if cust <= full_stock:

raise Warning(('Attention!'),(My_error_msg_2))

self.single(cr, uid, ids, context=context)

if cust > (2.5 * mwos):

raise Warning(('Attention!'),(My_error_msg_3))

self.single(cr, uid, ids, context=context)


Any ideas ?

By the way, "POPUP Reminder"   ................. nah, do not like it.




| 4 4 6
Hyderabad, India

On 1/27/16, 1:05 AM


According to ur code, its working fine only.

But what Odoo actually does is it stops n rollback the whole transaction till the last commit if it encounters any expection/warning raised in the system.

So what you can do is, kepping executable line before raising exception and commit till that..,

if cust <= full_stock:

self.single(cr, uid, ids, context=context)

cr.commit() #it will commit all your transactions after your last commit,

raise Warning(('Attention!'),(My_error_msg_2))

this anyway is not preferred way, until and unless you are sure of using it, as it may bring inconsistency in DB if you use it at wrong place

Hope it Helps    

no mail, yes rob, n i vl be availble today

on 1/27/16, 4:58 AM

Problem still not solved ;(

Dr Obx
on 2/12/16, 9:30 AM
Neeraja Ragesh
On 1/26/16, 8:51 AM

Download and install pop-up reminder from Odoo apps

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/26/16, 8:28 AM
Seen: 1839 times
Last updated: 1/27/16, 1:05 AM