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 wanna make a message that says something. I tryed it with raise osv.except_osv
but this is a Error Message.
I want to print a message and that the input is not saved.
here is how you can print a warning message.
First, you should import:
from openerp.osv.orm import except_orm
And then in your python:
My_error_Msg = 'hello!!'
raise osv.except_osv(_("Error!"), _(My_error_Msg))
So that, there are two possibilities:
- if you want to block the access and the record (return True)
-Only print the warning message, press ok and save the record (return False)
Some useful links:
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: 11/11/15, 4:33 AM|
|Seen: 5245 times|
|Last updated: 11/16/15, 4:39 AM|