summaryrefslogtreecommitdiff
path: root/addons/phone_validation
AgeCommit message (Collapse)Author
2021-05-23[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-05-16[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-05-11[FIX] phone_validation: add country trigger on sanitize phone computationThibault Delavallée
If country is updated on a record inheriting from mail.thread.phone its sanitized number should be computed again. Indeed without this trigger it is not computed and may lead to inconsistencies between phone numbers and sanitized number. Task ID-2528169 closes odoo/odoo#70684 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-05-02[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-25[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-11[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-04[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-28[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-21[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-14[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-07[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-21[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-14[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-07[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-31[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-24[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-17[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-10[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-22[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-15[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-08[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-27[I18N] *: Update translation terms from TransifexMartin Trigaux
Except Spanish, waiting for cleanup closes odoo/odoo#60848 Related: odoo/enterprise#14421 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-21[REV] *: revert fb7407c for spanish translationsOlivier Dony
There was a problem in the Transifex translations for Spanish and all translations were overwritten by mistake with english defaults. This commit reverts all modified es.po files to their previous version while we work to restore the translations on Transifex.
2020-10-18[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-13[FIX] phone_validation: assign mobile_blacklisted and phone_blacklistedDenis Ledoux
Make sure to assign a value to the computed fields `mobile_blacklisted` and `phone_blacklisted` in their compute method for all record included in `self` Otherwise, not assigning a value for one record included in `self` can result in a cache missing error. ``` Traceback (most recent call last): File "/tmp/tmp3l14ain7/migrations/base/tests/test_mock_crawl.py", line 143, in crawl_menu self.mock_action(action_vals) File "/tmp/tmp3l14ain7/migrations/base/tests/test_mock_crawl.py", line 212, in mock_action mock_method(model, view, fields_list, domain, group_by) File "/tmp/tmp3l14ain7/migrations/base/tests/test_mock_crawl.py", line 238, in mock_view_form [data] = record.read(fields_list) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 3001, in read return self._read_format(fnames=fields, load=load) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 3021, in _read_format vals[name] = convert(record[name], record, use_name_get) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 5620, in __getitem__ return self._fields[key].__get__(self, type(self)) File "/home/odoo/src/odoo/14.0/odoo/fields.py", line 980, in __get__ raise ValueError("Compute method failed to assign %s.%s" % (record, self.name)) ValueError: Compute method failed to assign crm.lead(974,).phone_blacklisted ``` closes odoo/odoo#59827 Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2020-10-11[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-05[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-09-27[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-09-25[FIX] crm: remove unnecessary warning in phone formatThibault Delavallée
In this commit we remove the warning logger when not being able to format a phone number. Indeed this does not indicate there was a real issue. It simply indicates that either the phone number is not parsable or not matching given country format. It happens in a lot of situation that phone numbers are not valid: bad encoding, country mismatch due to {lead, task, ticket} / partner not always being the same, ... This should not raise a server warning. When using frontend SMS composer for phone number, a warning is displayed to the user telling the number is probably incorrect. This is considered as sufficient from UX point of view as it warns users. We do not think we should warn admins that some data is incoherent in database. This commit also * Revert "[FIX] crm: avoid linking demo leads with an unrelated partner" This reverts commit 2c94c4c81ffa171158586cd64828d27c537cd1d6 -> having "invalid" data should be a valid use case of real life * Revert "[FIX] crm: get correct country for phone validation" This reverts commit a58f9fc154c038d72031b281e2bec2c0fc2915ba -> country of a lead comes from its partner if set but can be different. Same for phone numbers. Values on a lead after a compute are considered as complete. Sales persons could effectively have incoherent data on their form view but that is the result of what has been encoded. Task ID-2325228
2020-09-01[I18N] export saas-13.5 source termsMartin Trigaux
Without demo data closes odoo/odoo#56839 Related: odoo/enterprise#12821 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-07-02[IMP] *: do not translate logsVictor Feyens
The logs should all be in the same language, s.t. one does not need to understand multiple languages when browsing/reading the server logs. closes odoo/odoo#53984 Related: odoo/enterprise#11615 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-06-30[FIX] *: correct all or improve code translation lookupMartin Trigaux
This commit fixes all issues detected by the new pylint gettext-variable test. It converts some calls to the new syntax _("Foo %s", bar) to progressively migrate the code to the new syntax. A few calls were not technically incorrect but still detected by the linter. _("Foo" + "Bar") has been converted to _("Foo" "Bar") as it has the same effect and make sure the argument is of type asteroid.Const instead of BinOp). closes odoo/odoo#53683 Related: odoo/enterprise#11467 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-06-18[IMP] *: use named placeholders in translated messageMartin Trigaux
When more than one parameter is present in a message, it helps the translation to use named placeholder. This way, the order can be changed. It also helps the comprehension of the message.
2020-06-18[IMP] *: replace to new _() syntaxMartin Trigaux
Using a few regex like \((_\(.*%s.*)(\) % )([\w\[\]][\w .\[\]\(\)'"]*)\) ($1, $3)) Old syntax is still compatible but starts the migration to the new syntax that catches error.
2020-06-15[REF] mail, *: refactor messaging with OWLSébastien Theys
This commit is a significant rewriting of client-side discuss, chatter, chat window, and messaging menu using OWL. The behavior should be broadly the same, with some slight functional changes here and there. From a technical standpoint, the code of messaging is mainly organized in 2 main groups of modules: - models, which are logical entities that depict the client-side state of messaging as a whole. - components, which are in charge of displaying information from models. This refactoring also introduces new JS guidelines regarding folder structure (/static) and naming rules for JS modules. Community PR: https://github.com/odoo/odoo/pull/39023 Enterprise PR: https://github.com/odoo/enterprise/pull/6249 Task-1914207 This PR is a collaborative work by Alexandre, Julien, Sébastien and Xavier, with the precious help of Lucas to speed it up towards the end. closes odoo/odoo#39023 Related: odoo/enterprise#6249 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Alexandre Kühn <aku@odoo.com> Co-authored-by: Julien Giannone <jgi@odoo.com> Co-authored-by: Lucas Perais <lpe@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com> Co-authored-by: Xavier Dubuc <xdu@odoo.com>
2020-04-23[I18N] *: export saas-13.3 translationsMartin Trigaux
closes odoo/odoo#50031 X-original-commit: 15a7a9f9d71a0b9c46d7caf2f4fbf09a5a4c63fe Related: odoo/enterprise#10140 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-04-03[IMP] mail, mass_mailing, phone, survey: call toggle_active / ↵Thibault Delavallée
action_(un)archive when possible Purpose of this commit is to call toggle_active or archive / unarchive methods instead of manually writing on active field. Indeed this allows to trigger business code related to archive / unarchive which is normally located in toggle_archive (called by action_archive and action_unarchive). Task ID 2170708 Community PR odoo/odoo#46563
2020-03-26[IMP] mass_mailing_(sms): Add unblacklisting buttonTiffany Chang (tic)
Previously a blacklisted phone number or email address could only be removed from their respective blacklist by going to the corresponding blacklist view [in mass_mailing_(sms)] and manually archiving/deactiviting the entry. All users could see that an email was blacklisted via an fa-ban icon added next to their corresponding field in the modules: crm, mass_mailing, mass_mailing_sms, and contacts (via extension). This commit adds additional fa-ban icons next to blacklisted phone numbers and makes all instances of these icons clickable to remove them from their corresponding blacklist using a wizard. There are several limitations to this implementation including: 1. If both a mobile and phone number field appear within a crm lead instance, then only the mobile field will indicate if it is blacklisted (due to current implementation of PhoneMixin which only checks 1 phone value against the blacklist and "sms" which returns mobile numbers first). I.e. if a phone field value is blacklisted, but a value is typed into the mobile field, then the phone field will never indicate that it is blacklisted. 2. If someone clicks on a unblacklisting icon after changing the corresponding field value without clicking off the field input, then the latest typed in value will be the one submitted for unblacklisting, which may not actually be blacklisted (due to "is_blacklisted" flag being a computed field and it not having a chance to re-compute to hide the button). 3. If someone changes values in the blacklist, then someone who already has a form open will not see icon disappear until something triggers a re-compute of the "phone_sanitized_blacklisted" flag (this was already the case with the icon, but now a user may try to unblacklist a value that is already unblacklisted.) 4. Since the icon needs to be visible by everyone to indicate whether or not a phone/email is blacklisted, users without corresponding unblacklist permissions will be able to click on the icon. When they click on it, they will be informed they do not have permission to unblacklist. A wizard was determined to be the best way to implement this unblacklisting for the following reasons: - A "Unblacklisting Reason" is needed and will not be stored as a field. - A field widget is unable to do this due to security settings + inability to refresh view after unblacklisting with a "Unblacklisting Reason" without wiping unsaved changes. Additionally, to better align with GDPR, the corresponding form view for the phone/email blacklist has been updated to use the same wizard to track "Reason for unblacklisting". Unfortunately there is no straightforward way to prevent direct "Archive" action, so users are still able to bypass unblacklisting without being asked for a "reason for unblacklisting". Supports task: 2117635 Upgrade PR: odoo/upgrade#939 COM PR: odoo/odoo#45315
2020-03-25[IMP] mass_mailing_(sms): Update UXTiffany Chang (tic)
Minor UX tweaks for more consistent and correct wording, visualization, and editing ability for mass_mailing and mass_mailing_sms. Specifically: - Fix all "This email is blacklisted for mass mailing" => ".. mass mailings" typos - Make phone blacklist not editable (to align w/ email blacklist) - Add "Archived" ribbon to phone and email blacklist - Update menu items and actions - "Phone Blacklist" => "Blacklisted Phone Numbers" - "Blacklist" => "BLacklisted Email Addresses" Supports task: 2117635
2020-03-02[IMP] various: set boolean_toggle on 'active' fields in form viewNisha patel
Currently, to activate/deactivate records with the 'active' checkbox user has to switch to edit mode of the form. So the purpose of the task is to allow the user to activate/deactivate records from the readonly mode of the form view. In this commit, we set widget='boolean_toggle' on the 'active' field in form view. closes odoo/odoo#46567 Taskid: 2206794 Related: https://github.com/odoo/enterprise/pull/8918 Related: odoo/enterprise#8918 Closes: #46567 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-22[FIX] phone_validation: Switch `phonenumbers` from logger.warning to logger.infoMoisés López
It was discussed previously from: - https://github.com/odoo/odoo/commit/b79d05fff0cacb4d99ebc1b60f44d8dab757b806 I quote Olivier Dony commit message: """ Having it in INFO should be sufficient for its purpose, and will avoid impacting all CI builds done on a system that does not have the lib installed. For the record, this is not a hard requirement because the lib was not available in Debian stable packages at the time of release. It is only enabled on demand for those who want the feature and can install it manually. Fixes #22426 Closes #22459 """ closes odoo/odoo#40788 X-original-commit: 0394f5e95702087b38357070aad43f2b477c374e Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2019-11-07[IMP] mail: add a new entry in technical menu for discussThibault Delavallée
Purpose is to lessen size of technical "Email" menu and move some discuss menu entries in their own menu. It will be the new first menu entry in technical, before Emails that is more technical. Some menu items are moved in this new menu, notably followers, messages or mail blacklist. Emails menu is also reordered, to have notably all channels related entries together, ... Task 2118599 PR #39460
2019-10-07[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-10-02[IMP] phone_validation: allow editing blacklisted phone numberYenthe Van Ginneken
closes odoo/odoo#37775 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-10-01[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-09-29[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-09-22[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-09-15[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-09-13[I18N] *: export saas-12.5 source termsMartin Trigaux
closes odoo/odoo#36853 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-12[IMP] (sms_)mass_mailing: improve interfaceryv-odoo
- Change the name of "Mass SMS" by "SMS Marketing" - Improve the Mass Mailing views (kanban, form) - Improve the Mass SMS views (kanban, search, form) - Hide the sanitized numbers from views (sometime replace by mobile) - Fix demo data of sms - Explain the language field of sms template - Improve the render of the sms composer wizard TASK_ID : 2053631