Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] easy_my_coop: use firstname and lastname #15

Open
wants to merge 1 commit into
base: 9.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions easy_my_coop/models/coop.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def get_partner_company_vals(self):
return partner_vals

def get_partner_vals(self):
partner_vals = {'name':self.name, 'first_name':self.firstname, 'last_name': self.lastname,
partner_vals = {'name':self.name, 'firstname':self.firstname, 'lastname': self.lastname,
'gender':self.gender,'cooperator':True, 'street':self.address,'zip':self.zip_code,
'city': self.city, 'phone': self.phone, 'email':self.email,
'national_register_number':self.no_registre, 'out_inv_comm_type':'bba',
Expand Down Expand Up @@ -323,7 +323,7 @@ def validate_subscription_request(self):
if contact:
contact.type = 'representative'
if not contact:
contact_vals = {'name':self.name, 'first_name':self.firstname, 'last_name': self.lastname,
contact_vals = {'name':self.name, 'firstname':self.firstname, 'lastname': self.lastname,
'customer':False, 'is_company':False, 'cooperator':True,
'street':self.address,'zip':self.zip_code,'gender':self.gender,
'city': self.city, 'phone': self.phone, 'email':self.email,
Expand Down