Browse Source

Merge pull request #112 from coopiteasy/9.0-fix-company-subscription

9.0 fix company subscription
pull/136/head
Houssine BAKKALI 4 years ago
committed by GitHub
parent
commit
5fd4a2eb44
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      easy_my_coop/controllers/main.py
  2. 2
      easy_my_coop/view/subscription_template.xml

5
easy_my_coop/controllers/main.py

@ -245,8 +245,9 @@ class WebsiteSubscription(http.Controller):
# Check that required field from model subscription_request exists
required_fields = sub_req_obj.sudo().get_required_field()
if logged:
# these fields are readonly when logged
# we want to ease the process if user was a subscriber
# these fields are read only when logged
# we want to ease the process if user was already registered in the
# database from another module
self.remove_field_from_list(required_fields, 'iban')
self.remove_field_from_list(required_fields, 'birthdate')

2
easy_my_coop/view/subscription_template.xml

@ -406,7 +406,7 @@
</div>
</div>
<div t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
<div t-if="not logged" name="confirm_email_container" t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
<label class="col-md-3 col-sm-4 control-label" for="confirm_email">Confirm Email</label>
<div class="col-md-7 col-sm-8 bottom-line" style="padding-bottom:20px">
<input type="confirm_email" class="form-control mandatory-field" name="confirm_email"

Loading…
Cancel
Save