changeset c25ac770614e in modules/party:default
details: https://hg.tryton.org/modules/party?cmd=changeset;node=c25ac770614e
description:
        Add call url for mobile contact mechanisms

        issue8544
        review267751002
diffstat:

 CHANGELOG            |  1 +
 contact_mechanism.py |  2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 2144c71d868d -r c25ac770614e CHANGELOG
--- a/CHANGELOG Tue Jul 30 23:30:33 2019 +0200
+++ b/CHANGELOG Sat Aug 03 11:13:48 2019 +0200
@@ -1,3 +1,4 @@
+* Add call url for mobile contact mechanisms
 * Replace country and language in address format by codes
 * Add sequence field to contact mechanism form view
 
diff -r 2144c71d868d -r c25ac770614e contact_mechanism.py
--- a/contact_mechanism.py      Tue Jul 30 23:30:33 2019 +0200
+++ b/contact_mechanism.py      Sat Aug 03 11:13:48 2019 +0200
@@ -118,7 +118,7 @@
             return 'callto:%s' % value
         elif self.type == 'sip':
             return 'sip:%s' % value
-        elif self.type == 'phone':
+        elif self.type in {'phone', 'mobile'}:
             return 'tel:%s' % value
         elif self.type == 'fax':
             return 'fax:%s' % value

Reply via email to