No, you would write in your .xml (or even the customized view arch) sth like:
<field name="mailaddress_id" string="Mailing address" domain="[('function', '=', ir_ref('my_module','mailaddr_fn'))]" mode="form" /> In fact, that code could even work for the context field (apart from the domain one, that I've tried) -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=37617#37617 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
