Hello,
Actually i'm working in a project ( i want to update a customer instead of creating it )
i did this code but it doesn't work any idea !!
if record.email:
contact = env['res.partner'].search([['email', '=', record.email]])
if contact:
for c in contact:
if c.id != record.id :
records.update({
'mobile': record.mobile,
'phone' : '22'
})