[associate_members] avoid associating to self julm
authorJulien Moutinho <julm+burette@autogeree.net>
Thu, 20 Dec 2012 14:10:04 +0000 (15:10 +0100)
committerJulien Moutinho <julm+burette@autogeree.net>
Thu, 20 Dec 2012 14:10:04 +0000 (15:10 +0100)
view/bikecoop.xml

index 50e4d19..33df7bd 100644 (file)
@@ -33,7 +33,7 @@
                     </group>
                     <group>
                         <label string="Associate members" for="associate_members"/>
-                        <field name="associate_members" widget="many2many_tags" placeholder="Associate members" nolabel="1"/>
+                        <field name="associate_members" widget="many2many_tags" placeholder="Associate members" nolabel="1" domain="['!',('id','=',id)]" />
                     </group>
                 </xpath>
                 <xpath expr="//notebook" position="after">