From 52e20a3dd38e90ab51f71ef362e889d992c70dbf Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Tue, 5 Sep 2023 11:24:54 +0200 Subject: [PATCH] [REF] web, *: change name noReload to reload This commit change the name of the option noReload to reload, this is to avoid having negative variables names for boolean. This is a general known best practice, and in this case it's important to have a better readability of the code (specially when a negation of a negative variable occurs). closes odoo/odoo#134317 Related: odoo/enterprise#46913 Signed-off-by: Aaron Bohy (aab) --- .../res_config_settings_buttons.js | 2 +- .../verification_code_widget.js | 2 +- .../wizard/auth_totp_wizard_views.xml | 2 +- .../relational_model/dynamic_group_list.js | 2 +- .../src/model/relational_model/dynamic_list.js | 8 ++++---- .../static/src/model/relational_model/group.js | 4 ++-- .../src/model/relational_model/record.js | 18 +++++++++--------- .../model/relational_model/relational_model.js | 10 +++++----- .../src/model/relational_model/static_list.js | 16 ++++++++-------- .../src/views/fields/image/image_field.js | 7 ++++--- .../many2many_tags_avatar_field.js | 2 +- .../static/src/views/form/form_controller.js | 4 ++-- .../views/kanban/kanban_record_quick_create.js | 2 +- .../src/views/view_dialogs/form_view_dialog.js | 2 +- .../tests/views/fields/image_field_tests.js | 4 ++-- 15 files changed, 43 insertions(+), 42 deletions(-) diff --git a/addons/account_peppol/static/src/components/res_config_settings_buttons/res_config_settings_buttons.js b/addons/account_peppol/static/src/components/res_config_settings_buttons/res_config_settings_buttons.js index 6d1ced1f67a..12c304d5359 100644 --- a/addons/account_peppol/static/src/components/res_config_settings_buttons/res_config_settings_buttons.js +++ b/addons/account_peppol/static/src/components/res_config_settings_buttons/res_config_settings_buttons.js @@ -47,7 +47,7 @@ class PeppolSettingsButtons extends Component { } async _save () { - this.env.model.root.save({ noReload: true }); + this.env.model.root.save({ reload: false }); } showConfirmation(warning, methodName) { diff --git a/addons/account_peppol/static/src/components/verification_code_widget/verification_code_widget.js b/addons/account_peppol/static/src/components/verification_code_widget/verification_code_widget.js index e7b338191d2..76303cb07d8 100644 --- a/addons/account_peppol/static/src/components/verification_code_widget/verification_code_widget.js +++ b/addons/account_peppol/static/src/components/verification_code_widget/verification_code_widget.js @@ -62,7 +62,7 @@ class VerificationCodeWidget extends Component { _save() { let verificationCode = [...this.inputs.map((i) => i.el.value)].join(''); this.props.record.update({ account_peppol_verification_code: verificationCode }); - this.env.model.root.save({ noReload: true }); + this.env.model.root.save({ reload: false }); } } diff --git a/addons/auth_totp/wizard/auth_totp_wizard_views.xml b/addons/auth_totp/wizard/auth_totp_wizard_views.xml index 2c11bb26bdc..5f94bc133ff 100644 --- a/addons/auth_totp/wizard/auth_totp_wizard_views.xml +++ b/addons/auth_totp/wizard/auth_totp_wizard_views.xml @@ -40,7 +40,7 @@
- +