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="{'required':[('categ_id', '=', '2']}"/> 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="{'required':[('categ_id', '=', ref('category_name')]}"/> Thanks -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=37604#37604 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
