Odoo Help


This community 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.


how to use if case in xml?

willie ho
on 4/22/15, 2:18 AM 433 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


Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 4/22/15, 2:18 AM
Seen: 433 times
Last updated: 4/22/15, 3:10 AM