Odoo Help


2 Answers
Shashank Verma
11/06/19 06:19

@ Sudhir : Thanx for your feedback.

I have more than 25 fields on form view and i have lots of rules/use cases based on which i have to hide multiple fields.

Example: If condition A is True show field1,2,3,7 and rest of fields hide

If condition B  is True show field1,,7 and rest of fields hide

Would be very difficult for me to add 25 boolean fields to show/hide based on different scenarios

1 Comment
Sudhir Arya (ERP Harbor Consulting Services)
11/06/19 06:33

I agree with you but you would need to use field(s) to do that. You can use the context but it will give you the value of the context set in action.


Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 8 9 10
Ahmedabad, Índia
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




ERP Harbor Consulting Services

Website: http://www.erpharbor.com
Sudhir Arya (ERP Harbor Consulting Services)
11/06/19 06:02

Hi Shashank,

Context will not work in your case. 

You would need to create a new boolean field and set it's value from the onchange and use that boolean field to show / hide your other field.

Ask a Question
Keep Informed
1 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now