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 #300

Closed
wants to merge 107 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
401b67a
Update translation files
OCA-git-bot Jan 31, 2020
705381f
Extract Asterisk-independant code (the widget="phone" + phone number …
Mar 13, 2014
ce4be5d
Improve string.
Mar 24, 2014
1274b50
Add country on main company as demo data (otherwize it blocks write o…
Jul 5, 2014
4afe8b4
Add monkey-patching of format function to add phone=True and phone_fo…
Jul 13, 2014
ba6a1a3
Very large changes in the structure of the project :
Jul 27, 2014
d697341
Add semi-column at the end of line in JS code !
Aug 14, 2014
d72e64c
The "Dial" button is now inside the phone widget : this is great beca…
Aug 20, 2014
98ccff5
Update POT file and partial update of FR translation
Aug 21, 2014
6c2f090
Port to OpenERP v8.0
Aug 21, 2014
02ad3cc
Update PhoneFormat JS lib
Aug 25, 2014
9edcc2f
Feature "Open Calling Partner" replaced by "Open Caller", with a comp…
Aug 25, 2014
2bcfce5
Activate widget on form view of company.
Sep 2, 2014
362342c
Use =like instead of like in phone number search, because I add the '…
Nov 4, 2014
5433168
Fix code style
Nov 5, 2014
c543e40
Add widget="phone" in tree view, to have an easy-to-read phone number…
Dec 16, 2014
81428e6
Start the wizard "Reformat Phone Numbers" after the installation of t…
Dec 26, 2014
2631447
FIX: clear field when number not set rather than leaving previous value
Jan 2, 2015
5a4139d
Fix bug #17: don't raise by default on write/create
Jan 23, 2015
6c76f0d
One possible implementation of raise when partner create/write is man…
Jan 24, 2015
08bb22a
Adapt the reformat_phonenumber_wizard to the new behavior on raise
Jan 24, 2015
b80fa17
PEP8 fix
Feb 5, 2015
8d02353
base_phone: Add YAML test
Feb 12, 2015
ead3050
Update screenshots
Feb 21, 2015
540652e
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
bcbd57d
Add support for "Create CRM phonecall" on leads (and not only partners)
Mar 12, 2015
6780a23
Fully remove raise from write/create, to avoid a crash on module inst…
Mar 19, 2015
d977bfd
If you enter a phone number in national format, it is now interpreted…
Mar 20, 2015
a8e38d3
Continue to adapt the code to the recent changes
Mar 20, 2015
f10077e
More Yaml tests
Mar 20, 2015
f0fb08c
new: pkg: adds requirements.txt to explicit dependencies and ease scr…
vaab Mar 25, 2015
ec6ea1e
Slovenian translations added
sysadminmatmoz Apr 5, 2015
139f05c
edit arguments accordingly to func definition
Apr 9, 2015
6b867a2
Fix bug #40
Apr 14, 2015
776e8ce
PEP8 fix
Apr 14, 2015
ccb2d15
XML Code clean-up
Apr 14, 2015
99a21a8
FIX a crash when exception has no len
May 13, 2015
5bd4c31
Please welcome the new module ovh_telephony_connector !
May 20, 2015
cbfc29a
Fix bug #20 Multiple click2dial when previous click2dial failed
Jun 25, 2015
fad0f8d
[FIX] set countrycode in upper case to avoid error with the lib phone…
bguillot Sep 29, 2015
743a8bf
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
43079bf
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
d74da38
Less verbose logs
guewen Oct 28, 2015
c86dec8
Do not interpolate directly in logger
guewen Oct 29, 2015
f8615a5
Fix Nonetype error
guewen Nov 23, 2015
bd9f62e
FIX avoid phone numbers on 2 lines in tree view
alexis-via Jan 29, 2016
578d641
[FIX] flake8 errors
damdam-s Feb 8, 2016
3459e56
[FIX] move country=FR from demo data to test file
damdam-s Feb 8, 2016
01e0e4b
[IMP] Migrate base_phone in 9.0
alexis-via Mar 8, 2016
902ce1f
[IMP] Add README.rst file in base_phone module
Mar 8, 2016
3a3a68e
[IMP] To avoid conflicts, we check that widgets phone and fax do not …
Mar 8, 2016
e453655
[FIX] Fixing issues from travis in base_phone module
Mar 24, 2016
0267f94
[FIX] Fix problem in point_of_sale with customer editing
Apr 4, 2016
b70c471
Add comment to explain the hack for the POS
alexis-via May 19, 2016
86e178d
Port crm_phone to v9
alexis-via May 19, 2016
96be0db
Restore the object crm.phonecall that was dropped in v9 community
alexis-via May 23, 2016
b5cc353
Started to implement solution d) as discussed in https://github.com/O…
alexis-via Jun 24, 2016
1289205
Port YAML tests to new fields.Phone archi
alexis-via Jun 24, 2016
9802999
Convert YAML tests to unit-tests, with several improvements
alexis-via Jun 25, 2016
c241baf
Port the wizard reformat_all_phonenumbers to the new fields.Phone archi
alexis-via Jun 25, 2016
72c7584
Phone numbers are now clickable in tree view
alexis-via Jun 26, 2016
ad9953e
JS code cleanup: no spaces in href links
alexis-via Jun 27, 2016
4414c54
Restore click2dial feature
alexis-via Jun 27, 2016
043c33b
FIX write when input has no_break_space
alexis-via Jun 27, 2016
bce4517
Avoid a crash if there is a create/write with a wrong field name
alexis-via Jul 5, 2016
9238205
Fix crash in number not found wizard
alexis-via Jul 12, 2016
5fad6f2
Replace narrow_no_break_space by no_break_space to make it work on ma…
alexis-via Jul 18, 2016
f2ecc20
Fix unittest and another attempt at fixing travis
alexis-via Jul 20, 2016
c7ea96a
Fix bug #93... but it seems do_notify() is not working in v9 in this …
alexis-via Jul 20, 2016
4ddedd3
Finalise move from narrow-no-break-space to no-break-space
alexis-via Jul 21, 2016
eb9a5b9
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
6f2737b
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
14b2b95
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
1bd2bfc
[MIG] Migrated base_phone to v10.0 (#107)
Oct 17, 2016
bdb3068
[FIX] We must now inherit from the base model, instead of monkey-patc…
Nov 8, 2016
1ca308e
Port crm_phone, hr_phone, hr_recruitment_phone, event_phone to v10
alexis-via Oct 28, 2016
9e10084
[FIX] base_phone: Fixed click2dial feature
Nov 4, 2016
d9f76ba
Make click2dial work in real life
alexis-via Nov 8, 2016
fa7c2ca
Restore fix for partner creation from POS bug #113
alexis-via Nov 9, 2016
ae25ae5
Fix bug #117 CSV import is now working, with the kind help of Sylvain…
alexis-via Dec 6, 2016
7f1962d
Use config page instead of company form view
alexis-via Jun 22, 2017
8eb716c
[Odoo 10] Fix for #20
sadasant Jan 17, 2018
0c07340
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
7e42d05
Port to v12 base_phone, asterisk_click2dial, crm_phone, hr_phone, eve…
alexis-via Nov 15, 2018
ce212cf
Translated using Weblate (Spanish)
mvrodriguez Feb 7, 2019
80841a6
Forward port dial button refactor from v11 to v12
alexis-via May 28, 2019
b97b4d9
Add reformatting of phone numbers on res.partner in base_phone
alexis-via May 29, 2019
bf6c265
base_phone: Fix layout of General Settings page
alexis-via Jul 10, 2019
d2f2369
Translated using Weblate (Portuguese (Brazil))
Sep 2, 2019
88bf743
[IMP] base_phone : (refactoring) remove controller
Jun 9, 2020
bae9adb
[IMP] base_phone: black, isort, prettier
mimusica Jul 31, 2020
9801952
[MIG] base_phone: Migration to 13.0
mimusica Aug 1, 2020
d6aa3f2
[IMP] base_phone: black, isort, prettier
May 4, 2021
5af3867
[MIG] base_phone: Migration to 14.0
May 4, 2021
05ec934
Add missing access on wizards
florian-dacosta May 10, 2021
302ea5c
bsae_phone: FIX method get_record_from_phone_number()
alexis-via May 12, 2021
63d951e
base_phone: add unit tests
alexis-via May 15, 2021
e940915
base_phone: avoid a warning in the number not found wizard
alexis-via May 18, 2021
4fb40e8
[FIX] We have to stay on the same page after clicking on the link
cvinh Sep 21, 2021
c145d9d
Added translation using Weblate (Spanish (Argentina))
nimarosa Aug 5, 2022
5bd1a71
Translated using Weblate (Spanish (Argentina))
nimarosa Aug 5, 2022
fa0958e
Translated using Weblate (French)
klodr Sep 17, 2022
b80ae22
[MIG] base_phone: Migration to 15.0
Aldeigja Dec 20, 2022
e9c4571
[IMP] base_phone: black, isort, prettier
nguyenminhchien Mar 16, 2023
9fb98da
[16.0][MIG] base_phone: Migration to 16.0
nguyenminhchien Mar 16, 2023
74838bb
fixup! [16.0][MIG] base_phone: Migration to 16.0
hailangvn May 16, 2023
5babcc8
[IMP] use Form in test, fix logic when changing country
hailangvn May 17, 2023
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
96 changes: 96 additions & 0 deletions base_phone/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
==========
Base Phone
==========

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/webui/builds.html?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 smashing 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]>
* `Trobz <https://trobz.com>`_:

* Hung Huynh Ngoc <[email protected]>
* Nguyễn Minh Chiến <[email protected]>

Other credits
~~~~~~~~~~~~~

The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp

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
30 changes: 30 additions & 0 deletions base_phone/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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/js/phone_widget.js"],
"web.assets_qweb": ["/base_phone/static/src/xml/phone.xml"],
},
"installable": True,
}
Loading
Loading