Browse Source

[IMP] display field for group system

pull/89/head
houssine 5 years ago
parent
commit
9a223b6ba8
  1. 2
      easy_my_coop/models/partner.py
  2. 1
      easy_my_coop/view/res_partner_view.xml

2
easy_my_coop/models/partner.py

@ -102,7 +102,7 @@ class ResPartner(models.Model):
partner.number_of_share = number_of_share
partner.total_value = total_value
cooperator = fields.Boolean(string='Cooperator',
cooperator = fields.Boolean(string='Easy My Coop',
help="Check this box if this contact is a"
" cooperator(effective or not).")
member = fields.Boolean(string='Effective cooperator',

1
easy_my_coop/view/res_partner_view.xml

@ -18,6 +18,7 @@
<xpath expr="/form/sheet/group" position='before'>
<group>
<field name="representative" attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/>
<field name="cooperator" groups="base.group_system"/>
<field name="cooperator_register_number" readonly="True" attrs="{'invisible':[('member','=',False)]}"/>
<field name="legal_form" attrs="{'invisible':[('is_company','=',False)]}"/>
<field name="company_register_number" readonly="True" attrs="{'invisible':[('is_company','=',False)]}"/>

Loading…
Cancel
Save