Odoo Help

Welcome!

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.

0

How to change view property of the values in selection field list ?

By
arsalan
on 7/18/14, 10:04 AM 553 views

Hello , I have been trying to make changes in the property of the selection field values. Like I have 2 fields , 1st is many 2one and other is selection field having 3 values. Now my requirement is that when I set a value in the many2one field, the 2 values in the selection field disappers and only 1 field remain in the selection field.

-> I tried to use invisible="1" when defining the field. But it didnot work. I need to do this.

-> Or I was thinking to use function like onchange function but the main issue is to set the property of selection field as invisible.

Please guide me to achieve this or any alternative for doing such thing. Thanks n regards

0

deep

--deep--
1617
| 5 4 7
Bengaluru, India
--deep--

Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

deep
On 7/18/14, 10:40 AM

hi..

are you trying to say, the values in the selection list has to be filtered?

If so, write onchange_event for 1st field, and pass domain through onchange_event to your selection field...

I already have used an onchange_function with the 1st field, how cani I use onchnege_event with it. Will that be possible?

arsalan
on 7/18/14, 11:33 AM

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)

Stats

Asked: 7/18/14, 10:04 AM
Seen: 553 times
Last updated: 3/16/15, 8:10 AM