details:   https://code.tryton.org/tryton/commit/d0446eb9dc8c
branch:    default
user:      Cédric Krier <[email protected]>
date:      Tue May 26 09:49:36 2026 +0200
description:
        Add phone types as guessing when phonenumbers is not installed

        Closes #14861
diffstat:

 modules/party/contact_mechanism.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r a20b069dd169 -r d0446eb9dc8c modules/party/contact_mechanism.py
--- a/modules/party/contact_mechanism.py        Tue May 19 17:33:44 2026 +0200
+++ b/modules/party/contact_mechanism.py        Tue May 26 09:49:36 2026 +0200
@@ -238,6 +238,8 @@
                     types.append('mobile')
                 else:
                     types.extend(_PHONE_TYPES)
+        else:
+            types.extend(_PHONE_TYPES)
         try:
             validate_email(value, check_deliverability=False)
         except EmailNotValidError:

Reply via email to