Browse Source

[FIX] emc: Error casting str to int

I get this error when taking shares from the website form by a logged
user.
pull/5/head
Rémy Taymans 5 years ago
parent
commit
0ef913acae
  1. 2
      easy_my_coop/controllers/main.py

2
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"))

Loading…
Cancel
Save