[IMP]Radicale Odoo Storage : handle phone, mobile and fax
This commit is contained in:
parent
cab13778ab
commit
39368e38fe
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user