xxxx
parent
219fb09612
commit
d22408c748
|
@ -146,15 +146,6 @@ class Patient(Model):
|
|||
data['partner_id']=partner_id
|
||||
return data
|
||||
|
||||
def _create(self,vals,**kw):
|
||||
obj_id=super(Patient,self).create(vals,**kw)
|
||||
obj=self.browse(obj_id)
|
||||
partner_id=self.get_partner_id(patient_type=obj.type,data={'name': obj.name})
|
||||
obj.write({
|
||||
'partner_id': partner_id,
|
||||
})
|
||||
return obj_id
|
||||
|
||||
def create(self,vals,**kw):
|
||||
obj_id=super(Patient,self).create(vals,**kw)
|
||||
obj=self.browse(obj_id)
|
||||
|
@ -199,4 +190,5 @@ class Patient(Model):
|
|||
vals['partner_id']=partner_id
|
||||
super().write(ids,vals,**kw)
|
||||
|
||||
|
||||
Patient.register()
|
||||
|
|
Loading…
Reference in New Issue