|
@ -234,7 +234,7 @@ class subscription_request(models.Model): |
|
|
partner_vals = {'name':self.company_name, 'is_company': self.is_company, |
|
|
partner_vals = {'name':self.company_name, 'is_company': self.is_company, |
|
|
'company_register_number':self.company_register_number, 'customer':False, |
|
|
'company_register_number':self.company_register_number, 'customer':False, |
|
|
'cooperator':True, 'street':self.address, 'zip':self.zip_code, |
|
|
'cooperator':True, 'street':self.address, 'zip':self.zip_code, |
|
|
'city': self.city,'email':self.email, 'out_inv_comm_type':'bba', |
|
|
|
|
|
|
|
|
'city': self.city,'email':self.email, 'out_inv_comm_type':'bba','customer': share_product_id.customer, |
|
|
'out_inv_comm_algorithm':'random', 'country_id': self.country_id.id, 'lang':self.lang} |
|
|
'out_inv_comm_algorithm':'random', 'country_id': self.country_id.id, 'lang':self.lang} |
|
|
return partner_vals |
|
|
return partner_vals |
|
|
|
|
|
|
|
@ -244,7 +244,7 @@ class subscription_request(models.Model): |
|
|
'city': self.city, 'phone': self.phone, 'email':self.email, |
|
|
'city': self.city, 'phone': self.phone, 'email':self.email, |
|
|
'national_register_number':self.no_registre, 'out_inv_comm_type':'bba', |
|
|
'national_register_number':self.no_registre, 'out_inv_comm_type':'bba', |
|
|
'out_inv_comm_algorithm':'random', 'country_id': self.country_id.id, |
|
|
'out_inv_comm_algorithm':'random', 'country_id': self.country_id.id, |
|
|
'lang':self.lang, 'birthdate':self.birthdate} |
|
|
|
|
|
|
|
|
'lang':self.lang, 'birthdate':self.birthdate, 'customer': share_product_id.customer} |
|
|
return partner_vals |
|
|
return partner_vals |
|
|
|
|
|
|
|
|
def create_coop_partner(self): |
|
|
def create_coop_partner(self): |
|
|