|
@ -75,10 +75,11 @@ class Partner(models.Model): |
|
|
return res |
|
|
return res |
|
|
|
|
|
|
|
|
@api.multi |
|
|
@api.multi |
|
|
def _new_eater(self, name, surname, email): |
|
|
|
|
|
|
|
|
def _new_eater(self, surname, name, email): |
|
|
partner_data = { |
|
|
partner_data = { |
|
|
'name' : name, |
|
|
|
|
|
'surname' : surname, |
|
|
|
|
|
|
|
|
'name' : surname + " "+ name, |
|
|
|
|
|
'last_name' : name, |
|
|
|
|
|
'first_name' : surname, |
|
|
'is_customer' : True, |
|
|
'is_customer' : True, |
|
|
'eater' : 'eater', |
|
|
'eater' : 'eater', |
|
|
'parent_eater_id' : self.id, |
|
|
'parent_eater_id' : self.id, |
|
|