Browse Source
Merge pull request #5 from coopiteasy/9.0-fix-new_coop_form
[FIX] emc: Error casting str to int
pull/8/head
Houssine BAKKALI
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
easy_my_coop/controllers/main.py
|
|
@ -277,7 +277,7 @@ class WebsiteSubscription(http.Controller): |
|
|
|
max_amount = max_amount - partner.total_value |
|
|
|
if company.unmix_share_type: |
|
|
|
share = self.get_selected_share(kwargs) |
|
|
|
if int(partner.cooperator_type) != share.id: |
|
|
|
if partner.cooperator_type != share.short_name: |
|
|
|
values = self.fill_values(values, is_company, logged) |
|
|
|
values["error_msg"] = (_("You can't subscribe two " |
|
|
|
"different types of share")) |
|
|
|