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

[MIG] Migrated base_phone to v10.0 #107

Merged
merged 4 commits into from Oct 17, 2016

Conversation

Garamotte
Copy link

Some notes about the migration :

  • The phone and fax widgets are now extending the email widget in Javascript, to beneft from the prefix attribute.
  • In XML, the widgets' templates extend FieldEmail using t-call instead of t-extend because the later doesn't seem to work (maybe a standard Odoo bug).
  • Click2dial part still untested.

@Garamotte Garamotte mentioned this pull request Oct 8, 2016
9 tasks
@alexis-via
Copy link
Contributor

Great work. We still have to fix one think: in the URL "tel:+33141984242", the spaces/non-breaking-spaces are still there ; they should be removed. Once it is fixed, it can be merged: 👍

@Garamotte Garamotte force-pushed the 10.0-migrate-base_phone branch 3 times, most recently from a5f4a3b to ce1ca23 Compare October 15, 2016 08:05
@Garamotte
Copy link
Author

Number format in the link fixed.
Shouldn't it be the "raw" format ? And adding spaces/dashes/other would be done only for display.

I also added a new commit, to define Phone and Fax as real field types.
This avoids the need of redefining the "phone" or "fax" widget in each view.
I kept this commit separated because I'm not sure it won't create side effects.

@alexis-via
Copy link
Contributor

@sylvain-garancher It's great that you found a solution to avoid inheriting the views to add widget="phone" or widget="fax"... something I wanted to do for a long time (or at least since v9).

I tried your latest code, but when I try to access the form view of a partner, I get a JS error
"TypeError: phone_num.replace is not a function"

@Garamotte
Copy link
Author

Oops, sorry, I forgot to test with empty values :)

I added another change : The phone field now inherits from fax, as it has the same behaviour, plus the clcik2dial feature. This avoids duplicated code between the two field types and widgets.

@alexis-via
Copy link
Contributor

Works very well now ! 👍

- if [ -d /home/travis/${ODOO_REPO##*/}-${VERSION}/addons ]; then ln -s ${HOME}/web_action_request/web_action_request /home/travis/${ODOO_REPO##*/}-${VERSION}/addons; fi
- hg clone http://bitbucket.org/anybox/bus_enhanced -b ${VERSION} ${HOME}/bus_enhanced
- if [ -d /home/travis/${ODOO_REPO##*/}-${VERSION}/addons ]; then ln -s ${HOME}/bus_enhanced/bus_enhanced /home/travis/${ODOO_REPO##*/}-${VERSION}/addons; fi
# - hg clone http://bitbucket.org/anybox/web_action_request -b ${VERSION} ${HOME}/web_action_request
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should directly remove these lines.

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in runbot. Little thing for merging

@Garamotte
Copy link
Author

Commented lines removed in TavisCI configuration.

@pedrobaeza pedrobaeza merged commit e81c7b4 into OCA:10.0 Oct 17, 2016
mamcode pushed a commit to druidoo-dev/connector-telephony that referenced this pull request Apr 16, 2020
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
mimusica pushed a commit to mimusica/connector-telephony that referenced this pull request Aug 2, 2020
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
mimusica pushed a commit to mimusica/connector-telephony that referenced this pull request Aug 5, 2020
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
PierrickBrun pushed a commit to akretion/connector-telephony that referenced this pull request Dec 7, 2020
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
cvinh pushed a commit to invitu/connector-telephony that referenced this pull request Mar 27, 2021
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
PierrickBrun pushed a commit to akretion/connector-telephony that referenced this pull request May 3, 2021
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
PierrickBrun pushed a commit to akretion/connector-telephony that referenced this pull request May 4, 2021
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
Aldeigja pushed a commit to cetmix/oca-connector-telephony that referenced this pull request Dec 21, 2022
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
mmequignon pushed a commit to mmequignon/connector-telephony that referenced this pull request Jan 17, 2023
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
hunghn pushed a commit to hunghn/connector-telephony that referenced this pull request Feb 22, 2023
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
nguyenminhchien pushed a commit to nguyenminhchien/connector-telephony that referenced this pull request Mar 16, 2023
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
aiendry-aktivsoftware pushed a commit to aiendry-aktivsoftware/connector-telephony that referenced this pull request May 1, 2023
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
Aldeigja pushed a commit to cetmix/oca-connector-telephony that referenced this pull request May 18, 2023
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
Nikul-OSI pushed a commit to ursais/connector-telephony that referenced this pull request Feb 12, 2024
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
OCA-git-bot pushed a commit to hailangvn2023/connector-telephony that referenced this pull request Feb 13, 2024
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
luisDIXMIT pushed a commit to dixmit/connector-telephony that referenced this pull request Apr 3, 2024
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
luisDIXMIT pushed a commit to dixmit/connector-telephony that referenced this pull request Apr 4, 2024
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
luisDIXMIT pushed a commit to dixmit/connector-telephony that referenced this pull request Apr 11, 2024
[MIG] Migrated base_phone to v10.0

* Define Phone and Fax as real field types, to avoid the need of defining the widget on each view

* [IMP] Add missing ImportError checks for the phonenumbers module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants