Odoo Help


how to use if case in xml?

willie ho
on 4/22/15, 2:18 AM 725 views

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?

Marvin Haß
On 4/22/15, 3:10 AM

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


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: 4/22/15, 2:18 AM
Seen: 725 times
Last updated: 4/22/15, 3:10 AM