[IMP]Radicale Odoo Storage : handle phone, mobile and fax

This commit is contained in:
Fabien BOURGEOIS 2018-05-11 17:10:43 +02:00
parent cab13778ab
commit 39368e38fe
1 changed files with 11 additions and 1 deletions

View File

@ -201,7 +201,17 @@ class Collection(BaseCollection):
if partner.image:
vobject_item.add('photo;encoding=b;type=jpeg').value = partner.image.replace('\n', '')
if partner.phone:
vobject_item.add('tel').value = partner.phone
tel = vobject_item.add('tel')
tel.type_param = 'Tel'
tel.value = partner.phone
if partner.mobile:
tel = vobject_item.add('tel')
tel.type_param = 'Mobile'
tel.value = partner.mobile
if partner.fax:
tel = vobject_item.add('tel')
tel.type_param = 'Fax'
tel.value = partner.fax
if partner.email:
vobject_item.add('email').value = partner.email
if partner.website: