Hello,

Its not working.
I will explain clearly:

'sourcesel' column query is 

'sourcesel': 
fields.selection([('river','River'),('stream','Stream'),('canal','Canal'),('rains','Rains'),('pond','Lake/Farm
 

Pond'),('openwell','Open Well'),('borewell','Bore Well')],'Water Source'),


'openwell' column query is

'openwell': fields.selection([('lined','Lined'),('unlined','Unlined')],'Type'),

If i select 'Open Well' in 'Water Source' dropdownlist, only open well is 
enabled,upto this its fine, then i selected 

'Unlined' in openwell dropdown list, here it is not working
If i select 'Unlined', the other fields in the Open well should disabled.

i tried the syntax as u mentioned as follows:

Syntax 1:

<group colspan="4" col="6">
                    <group colspan="4" col="2">
                        <separator string="Open Well" colspan="4"/>
                                <field name="openwell" select="0" 

attrs="{'readonly':[('sourcesel','in',['river','stream','canal','rains','pond','borewell'])]}"/>
                                <field name="dept" select="0" 

attrs="{'readonly':[('sourcesel','in',['river','stream','canal','rains','pond','borewell']),('openwell','in',['unlined'])]}"/

>
                                <field name="mu" select="0" 

attrs="{'readonly':[('sourcesel','in',['river','stream','canal','rains','pond','borewell']),('openwell','in',['unlined'])]}"/

>
        </group>
        </group>

Syntax 2:

<group colspan="4" col="6">
                    <group colspan="4" col="2">
                        <separator string="Open Well" colspan="4"/>
                                <field name="openwell" select="0" 

attrs="{'readonly':[('sourcesel','in',['river','stream','canal','rains','pond','borewell'])]}"/>
                                <field name="dept" select="0" 

attrs="{'readonly':[('sourcesel','in',['river','stream','canal','rains','pond','borewell']),('openwell','=','unlined')]}"/>
                                <field name="mu" select="0" 

attrs="{'readonly':[('sourcesel','in',['river','stream','canal','rains','pond','borewell']),('openwell','=','unlined')]}"/>
        </group>
        </group>

Please check where i am doing mistake.

Thank you




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=40850#40850

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to