Browse Source

[IMP] improve fields display in the form

pull/7/head
houssine 6 years ago
parent
commit
6b3f8132d6
  1. 2
      easy_my_coop/views/res_partner_view.xml

2
easy_my_coop/views/res_partner_view.xml

@ -16,6 +16,7 @@
</sheet> </sheet>
<xpath expr="/form/sheet/group" position='before'> <xpath expr="/form/sheet/group" position='before'>
<group>
<group> <group>
<field name="representative" attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/> <field name="representative" attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/>
<field name="cooperator_register_number" readonly="True" attrs="{'invisible':[('member','=',False)]}"/> <field name="cooperator_register_number" readonly="True" attrs="{'invisible':[('member','=',False)]}"/>
@ -30,6 +31,7 @@
<group> <group>
<field name="gender" attrs="{'invisible':[('is_company','=',True)]}"/> <field name="gender" attrs="{'invisible':[('is_company','=',True)]}"/>
</group> </group>
</group>
</xpath> </xpath>
<xpath expr="//page[@name='sales_purchases']" position='after'> <xpath expr="//page[@name='sales_purchases']" position='after'>

Loading…
Cancel
Save