Browse Source

[FIX] unreacheable variable

pull/1/head
houssine 7 years ago
parent
commit
a073edfce9
  1. 4
      easy_my_coop/models/coop.py

4
easy_my_coop/models/coop.py

@ -35,8 +35,8 @@ class subscription_request(models.Model):
vals['type'] = 'subscription' vals['type'] = 'subscription'
vals['partner_id'] = cooperator.id vals['partner_id'] = cooperator.id
if not cooperator.cooperator:
cooperator.cooperator = True
if not cooperator.cooperator:
cooperator.cooperator = True
subscr_request = super(subscription_request, self).create(vals) subscr_request = super(subscription_request, self).create(vals)
mail_template_obj = self.env['mail.template'] mail_template_obj = self.env['mail.template']

Loading…
Cancel
Save