Browse Source
Merge pull request #44 from coopiteasy/12.0-fix-coop-validation
[FIX] add missing self in super call
pull/47/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
3 additions and
3 deletions
-
easy_my_coop_be/models/coop.py
|
|
@ -10,18 +10,18 @@ class SubscriptionRequest(models.Model): |
|
|
|
('sa', 'SA')]) |
|
|
|
|
|
|
|
def get_partner_company_vals(self): |
|
|
|
vals = super(SubscriptionRequest).get_partner_company_vals() |
|
|
|
vals = super(SubscriptionRequest, self).get_partner_company_vals() |
|
|
|
vals['out_inv_comm_algorithm'] = 'random' |
|
|
|
return vals |
|
|
|
|
|
|
|
def get_partner_vals(self): |
|
|
|
vals = super(SubscriptionRequest).get_partner_vals() |
|
|
|
vals = super(SubscriptionRequest, self).get_partner_vals() |
|
|
|
vals['out_inv_comm_type'] = 'bba' |
|
|
|
vals['out_inv_comm_algorithm'] = 'random' |
|
|
|
return vals |
|
|
|
|
|
|
|
def get_representative_valst(self): |
|
|
|
vals = super(SubscriptionRequest).get_representative_vals() |
|
|
|
vals = super(SubscriptionRequest, self).get_representative_vals() |
|
|
|
vals['out_inv_comm_type'] = 'bba' |
|
|
|
vals['out_inv_comm_algorithm'] = 'random' |
|
|
|
return vals |