im making a page with product lines, I want to put an caution message if all product lines do not have a description
what should I do?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
im making a page with product lines, I want to put an caution message if all product lines do not have a description
what should I do?
you can use an label for it:
<field name="my_value"/>
<label string="the value is abc" attrs="{'invisible' : [('my_value','!=','abc')]}"
In your case "my_value" sould be an function field (boolean),
An other way is to return return {'warning' : {'title' : 'Title', 'message' : 'message'}} at the create/write method
regards
Create an account today to enjoy exclusive features and engage with our awesome community!
Tilmeld dig
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.