From 39368e38fedba5ab455c0b2484e41314558f4ca3 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Fri, 11 May 2018 17:10:43 +0200 Subject: [PATCH] [IMP]Radicale Odoo Storage : handle phone, mobile and fax --- radicale_odoo_storage/__init__.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/radicale_odoo_storage/__init__.py b/radicale_odoo_storage/__init__.py index 544fe7d..c253c54 100644 --- a/radicale_odoo_storage/__init__.py +++ b/radicale_odoo_storage/__init__.py @@ -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: