More fixes to migrate script.
This commit is contained in:
parent
5c4cd29ceb
commit
26603aeea9
1 changed files with 3 additions and 3 deletions
|
|
@ -6,6 +6,6 @@ def migrate(cr, version):
|
|||
patients = env['sports.patient'].search([('partner_id', '=', False)])
|
||||
for patient in patients:
|
||||
partner = env['res.partner'].create({
|
||||
'name': patient._get_name_from_first_and_last(patient.first_name, patient.last_name)
|
||||
})
|
||||
patient.partner_id = partner
|
||||
'name': patient._get_name_from_first_and_last(patient.first_name, patient.last_name),
|
||||
'patient_ids': [(4, patient.id)]
|
||||
})
|
||||
Loading…
Reference in a new issue