conv_bal
watcha.h 2014-10-20 13:22:31 +07:00
parent 219fb09612
commit d22408c748
1 changed files with 1 additions and 9 deletions

View File

@ -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()