I am trying to change a  field to "required=True" if a certain select box value 
is chosen within the form(product.category).   I was able to do this by using 
this code:


<field name="tool_type_model" widget="selection" 
attrs="&#123;'required'&#58;&#91;&#40;'categ_id', '=', '2'&#93;&#125;"/>


Does anyone know a way to look this up based on the "name" instead of the id??  
I would rather have it be:

<field name="tool_type_model" widget="selection" 
attrs="&#123;'required'&#58;&#91;&#40;'categ_id', '=', 
ref&#40;'category_name'&#41;&#93;&#125;"/>


Thanks




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

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

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


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

Reply via email to