How to return a readonly (or any other) field attribute from a on_change 
function?

In XML:

<field name="field_a"/>
<field name="field_b" on_change="on_change_function&#40;field_a&#41;"/>
<field name="field_c"/>


In Object:

def on_change_function&#40;self, cr, uid, ids, field_a, 
context=&#123;&#125;&#41;&#58;
&nbsp; &nbsp;...
&nbsp; &nbsp;return &#123;'value'&#58; &#123; 'field_c'&#58; <some_value> 
&#125;&#125; # to return a value.

&nbsp; &nbsp;return &#123;???&#125; # how to return a readonly attribute?


Tnks!
Gabriel C. Stabel




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

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

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


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

Reply via email to