Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] [MIG] base_phone: Migration to 16.0 #318

Merged
merged 114 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
67f84d9
Update translation files
OCA-git-bot Jan 31, 2020
4699316
Extract Asterisk-independant code (the widget="phone" + phone number …
Mar 13, 2014
a809bf4
Improve string.
Mar 24, 2014
e85ba62
Add country on main company as demo data (otherwize it blocks write o…
Jul 5, 2014
b72f70d
Add monkey-patching of format function to add phone=True and phone_fo…
Jul 13, 2014
336cf56
Very large changes in the structure of the project :
Jul 27, 2014
f10aa03
Add semi-column at the end of line in JS code !
Aug 14, 2014
b83e66a
The "Dial" button is now inside the phone widget : this is great beca…
Aug 20, 2014
6bbbc6b
Update POT file and partial update of FR translation
Aug 21, 2014
af00a3e
Port to OpenERP v8.0
Aug 21, 2014
ce0c442
Update PhoneFormat JS lib
Aug 25, 2014
905d7ee
Feature "Open Calling Partner" replaced by "Open Caller", with a comp…
Aug 25, 2014
3e2dcd9
Activate widget on form view of company.
Sep 2, 2014
1529041
Use =like instead of like in phone number search, because I add the '…
Nov 4, 2014
93572d6
Fix code style
Nov 5, 2014
d22352c
Add widget="phone" in tree view, to have an easy-to-read phone number…
Dec 16, 2014
6cf949b
Start the wizard "Reformat Phone Numbers" after the installation of t…
Dec 26, 2014
028805d
FIX: clear field when number not set rather than leaving previous value
Jan 2, 2015
a065a75
Fix bug #17: don't raise by default on write/create
Jan 23, 2015
0ce0092
One possible implementation of raise when partner create/write is man…
Jan 24, 2015
c867f46
Adapt the reformat_phonenumber_wizard to the new behavior on raise
Jan 24, 2015
ab8937b
PEP8 fix
Feb 5, 2015
d5c0a1e
base_phone: Add YAML test
Feb 12, 2015
995cab2
Update screenshots
Feb 21, 2015
4b0e118
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
4df577d
Add support for "Create CRM phonecall" on leads (and not only partners)
Mar 12, 2015
96801f3
Fully remove raise from write/create, to avoid a crash on module inst…
Mar 19, 2015
565206d
If you enter a phone number in national format, it is now interpreted…
Mar 20, 2015
9989661
Continue to adapt the code to the recent changes
Mar 20, 2015
e45b0d1
More Yaml tests
Mar 20, 2015
dae4cce
new: pkg: adds requirements.txt to explicit dependencies and ease scr…
vaab Mar 25, 2015
58f09ed
Slovenian translations added
sysadminmatmoz Apr 5, 2015
109e2e5
edit arguments accordingly to func definition
Apr 9, 2015
4e9e4c4
Fix bug #40
Apr 14, 2015
b1bf833
PEP8 fix
Apr 14, 2015
47fd79f
XML Code clean-up
Apr 14, 2015
e0da334
FIX a crash when exception has no len
May 13, 2015
f591227
Please welcome the new module ovh_telephony_connector !
May 20, 2015
5d7c87a
Fix bug #20 Multiple click2dial when previous click2dial failed
Jun 25, 2015
2484fa1
[FIX] set countrycode in upper case to avoid error with the lib phone…
bguillot Sep 29, 2015
0c54bd5
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
aa33624
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
f4abe02
Less verbose logs
guewen Oct 28, 2015
bd4cb23
Do not interpolate directly in logger
guewen Oct 29, 2015
2e040e7
Fix Nonetype error
guewen Nov 23, 2015
0ba5be7
FIX avoid phone numbers on 2 lines in tree view
alexis-via Jan 29, 2016
e9f452a
[FIX] flake8 errors
damdam-s Feb 8, 2016
78abc33
[FIX] move country=FR from demo data to test file
damdam-s Feb 8, 2016
8672cc0
[IMP] Migrate base_phone in 9.0
alexis-via Mar 8, 2016
35948e1
[IMP] Add README.rst file in base_phone module
Mar 8, 2016
ecb40da
[IMP] To avoid conflicts, we check that widgets phone and fax do not …
Mar 8, 2016
aba8d88
[FIX] Fixing issues from travis in base_phone module
Mar 24, 2016
f5ec8a4
[FIX] Fix problem in point_of_sale with customer editing
Apr 4, 2016
d95b058
Add comment to explain the hack for the POS
alexis-via May 19, 2016
f4f9501
Port crm_phone to v9
alexis-via May 19, 2016
b585aca
Restore the object crm.phonecall that was dropped in v9 community
alexis-via May 23, 2016
f16adb4
Started to implement solution d) as discussed in https://github.com/O…
alexis-via Jun 24, 2016
0fb5f91
Port YAML tests to new fields.Phone archi
alexis-via Jun 24, 2016
6116ee0
Convert YAML tests to unit-tests, with several improvements
alexis-via Jun 25, 2016
8e37ba8
Port the wizard reformat_all_phonenumbers to the new fields.Phone archi
alexis-via Jun 25, 2016
f398bb9
Phone numbers are now clickable in tree view
alexis-via Jun 26, 2016
86fc3d1
JS code cleanup: no spaces in href links
alexis-via Jun 27, 2016
c5b2de1
Restore click2dial feature
alexis-via Jun 27, 2016
47442bd
FIX write when input has no_break_space
alexis-via Jun 27, 2016
2010afa
Avoid a crash if there is a create/write with a wrong field name
alexis-via Jul 5, 2016
84092e5
Fix crash in number not found wizard
alexis-via Jul 12, 2016
9a0d4ed
Replace narrow_no_break_space by no_break_space to make it work on ma…
alexis-via Jul 18, 2016
49bdfa9
Fix unittest and another attempt at fixing travis
alexis-via Jul 20, 2016
1605e7c
Fix bug #93... but it seems do_notify() is not working in v9 in this …
alexis-via Jul 20, 2016
5c09f52
Finalise move from narrow-no-break-space to no-break-space
alexis-via Jul 21, 2016
378a425
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
d8e7091
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
c81f764
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
563c732
[MIG] Migrated base_phone to v10.0 (#107)
Oct 17, 2016
04da734
[FIX] We must now inherit from the base model, instead of monkey-patc…
Nov 8, 2016
4a54826
Port crm_phone, hr_phone, hr_recruitment_phone, event_phone to v10
alexis-via Oct 28, 2016
5493219
[FIX] base_phone: Fixed click2dial feature
Nov 4, 2016
4b1f8d5
Make click2dial work in real life
alexis-via Nov 8, 2016
05bfe1b
Restore fix for partner creation from POS bug #113
alexis-via Nov 9, 2016
306563d
Fix bug #117 CSV import is now working, with the kind help of Sylvain…
alexis-via Dec 6, 2016
460593a
Use config page instead of company form view
alexis-via Jun 22, 2017
ebe9c73
[Odoo 10] Fix for #20
sadasant Jan 17, 2018
ef0ae42
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
345dc06
Port to v12 base_phone, asterisk_click2dial, crm_phone, hr_phone, eve…
alexis-via Nov 15, 2018
3ca1d95
[ADD] icon.png
OCA-git-bot Apr 3, 2019
43af6e5
Translated using Weblate (Spanish)
mvrodriguez Feb 7, 2019
db0d647
Forward port dial button refactor from v11 to v12
alexis-via May 28, 2019
f08c344
Add reformatting of phone numbers on res.partner in base_phone
alexis-via May 29, 2019
530dbc0
base_phone: Fix layout of General Settings page
alexis-via Jul 10, 2019
f35b7b2
Translated using Weblate (Portuguese (Brazil))
Sep 2, 2019
63c4a86
Translated using Weblate (Portuguese (Brazil))
Sep 2, 2019
e79933d
[IMP] base_phone : (refactoring) remove controller
Jun 9, 2020
c9d82c2
[IMP] base_phone: black, isort, prettier
mimusica Jul 31, 2020
6d7e1dd
[MIG] base_phone: Migration to 13.0
mimusica Aug 1, 2020
3da5083
[UPD] Update base_phone.pot
oca-travis Dec 2, 2020
f8b73e3
[IMP] base_phone: black, isort, prettier
May 4, 2021
b19d3f2
[MIG] base_phone: Migration to 14.0
May 4, 2021
d2d3bcc
Add missing access on wizards
florian-dacosta May 10, 2021
f6493f1
bsae_phone: FIX method get_record_from_phone_number()
alexis-via May 12, 2021
a461e79
base_phone: add unit tests
alexis-via May 15, 2021
3fbca2a
base_phone: avoid a warning in the number not found wizard
alexis-via May 18, 2021
dca7d68
[UPD] Update base_phone.pot
oca-travis May 18, 2021
adc2e8b
[UPD] README.rst
OCA-git-bot May 18, 2021
e093d78
[FIX] We have to stay on the same page after clicking on the link
cvinh Sep 21, 2021
e837bc1
Added translation using Weblate (Spanish (Argentina))
nimarosa Aug 5, 2022
dbba950
Translated using Weblate (Spanish (Argentina))
nimarosa Aug 5, 2022
c972b66
Translated using Weblate (French)
klodr Sep 17, 2022
6a299ac
Translated using Weblate (Italian)
mymage Mar 30, 2023
78638c3
Translated using Weblate (Slovenian)
sysadminmatmoz Mar 31, 2023
e519e96
[UPD] README.rst
OCA-git-bot Sep 3, 2023
96ffbde
Update translation files
weblate Oct 10, 2023
486f84a
Translated using Weblate (Spanish)
Ivorra78 Dec 20, 2023
e409ea5
[IMP] base_phone: pre-commit auto fixes
luisDIXMIT Apr 11, 2024
0976cb5
[MIG] base_phone: Migration to 16.0
luisDIXMIT Apr 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions base_phone/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
==========
Base Phone
==========

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:533af46e83351fb5db0d79968dfa3dccf6fcd50d97a2623d66a73942c458ca48
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fconnector--telephony-lightgray.png?logo=github
:target: https://github.com/OCA/connector-telephony/tree/16.0/base_phone
:alt: OCA/connector-telephony
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/connector-telephony-16-0/connector-telephony-16-0-base_phone
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/connector-telephony&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module provides common methods and wizards which can be useful to develop a connector between Odoo and a telephony system. It depends on the official module *phone_validation* which handle the reformatting of phone numbers using the `phonenumbers <https://github.com/daviddrysdale/python-phonenumbers>`_ Python library, which is a port of the library used in Android smartphones. For example, if
your user is linked to a French company and you update the form view of a
partner with a badly written French phone number such as '01-55-42-12-42',
Odoo will automatically update the phone number to `E.164 <https://en.wikipedia.org/wiki/E.164>`_ format '+33155421242'. This module extends this reformatting to create() and write() methods.

This module is used by the Odoo-Asterisk connector of the OCA.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/connector-telephony/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/connector-telephony/issues/new?body=module:%20base_phone%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Akretion

Contributors
~~~~~~~~~~~~

* Alexis de Lattre <[email protected]>
* Sébastien Beau <[email protected]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
:target: https://github.com/alexis-via
:alt: alexis-via

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-alexis-via|

This module is part of the `OCA/connector-telephony <https://github.com/OCA/connector-telephony/tree/16.0/base_phone>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions base_phone/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
31 changes: 31 additions & 0 deletions base_phone/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2014-2021 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# @migration from 12.0 to 13.0: Christophe Langenberg <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Base Phone",
"version": "16.0.1.0.0",
"category": "Phone",
"license": "AGPL-3",
"summary": "Validate phone numbers",
"author": "Akretion,Odoo Community Association (OCA)",
"maintainers": ["alexis-via"],
"website": "https://github.com/OCA/connector-telephony",
"depends": ["phone_validation", "base_setup"],
"external_dependencies": {"python": ["phonenumbers"]},
"data": [
"security/phone_security.xml",
"security/ir.model.access.csv",
"wizard/res_config_settings.xml",
"views/res_users_view.xml",
"wizard/reformat_all_phonenumbers_view.xml",
"wizard/number_not_found_view.xml",
],
"assets": {
"web.assets_backend": [
"base_phone/static/src/components/**/*",
],
},
"installable": True,
}
Loading
Loading