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 hide fields? when you select one of your fields.selection??

on 7/22/14, 11:25 PM 336 views

fields.selection: A and B

   A = fields1 will show and fields2 will automatically hide.

   B = fields2 will show and fields1 will automatically hide.

how will i going to do this... any help please!!





Jagdish Panchal

--Jagdish Panchal--
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 7/22/14, 11:48 PM


Try this

<field name="Selection_Field" />

<field name="A"  attrs="{'invisible': [('Selection_Field', '=', 'B')]}"/>

<field name="B"  attrs="{'invisible': [('Selection_Field', '=', 'A')]}"/>


hi sir, thanks for this info. but another problem occur how to hide the fields A and B.. the fields showed even if the user doesn't choose from the selection..

on 7/23/14, 3:43 AM

Med Said BARA

--Med Said BARA--
| 5 5 7
--Med Said BARA--
Med Said BARA
On 7/23/14, 12:35 AM

You can do it by adding a domain to your field and using widget selection in your xml.

Maybe, this question  https://www.odoo.com/forum/help-1/question/widget-selection-with-domain-fields-issue-12690 can help you.

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: 7/22/14, 11:25 PM
Seen: 336 times
Last updated: 3/16/15, 8:10 AM