Could you explain the use case in more detail?
If you want to pop up the alert on click of a button, you could use:
<button string="my_button" confirm="Are you sure?" />
This will be in the XML file
If you want to raise it as an alert on programming logic, you could use:
raise osv.except_osv(('Permission Denied!'),('You are not allowed to perform this operation.'))
This will be in .py file
This would be in your .js file.
Please describe the scenario you want to show this error.
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: 4/7/15, 3:07 PM|
|Seen: 357 times|
|Last updated: 8/5/15, 7:30 AM|