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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
3 deletions
-
easy_my_coop/controllers/main.py
-
easy_my_coop/view/subscription_template.xml
|
|
@ -246,7 +246,8 @@ class WebsiteSubscription(http.Controller): |
|
|
|
required_fields = sub_req_obj.sudo().get_required_field() |
|
|
|
if logged: |
|
|
|
# these fields are read only when logged |
|
|
|
# we want to ease the process if user was a subscriber |
|
|
|
# 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') |
|
|
|
|
|
|
|
|
|
@ -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" |
|
|
|