Browse Source

[IMP] make register number non required

pull/39/head
houssine 5 years ago
parent
commit
75e8ffa285
  1. 1
      easy_my_coop/wizard/create_subscription_from_partner.py
  2. 2
      easy_my_coop/wizard/create_subscription_from_partner.xml

1
easy_my_coop/wizard/create_subscription_from_partner.py

@ -98,7 +98,6 @@ class PartnerCreateSubscription(models.TransientModel):
string="Cooperator",
default=_get_partner)
register_number = fields.Char(string="Register Company Number",
required=True,
default=_get_register_number)
email = fields.Char(string="Email",
required=True,

2
easy_my_coop/wizard/create_subscription_from_partner.xml

@ -15,7 +15,7 @@
<field name="representative_name" attrs="{'invisible':[('is_company','=',False)],'required':[('is_company','=',True)]}"/>
<field name="representative_email" attrs="{'invisible':[('is_company','=',False)],'required':[('is_company','=',True)]}"/>
<field name="email"/>
<field name="register_number"/>
<field name="register_number" attrs="{'invisible':[('is_company','=',False)],'required':[('is_company','=',True)]}"/>
<field name="bank_account"/>
<field name="share_product" widget="selection"/>
<field name="share_qty"/>

Loading…
Cancel
Save