Browse Source

Correction pour le nom + prénom de l'enfant créer via le wizard

pull/13/head
EliseDup 9 years ago
parent
commit
e4675584bf
  1. 7
      beesdoo_base/models/partner.py

7
beesdoo_base/models/partner.py

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

Loading…
Cancel
Save