From 9afe7c74c9c59b2a0fa4b1669dcc85da0d2225ee Mon Sep 17 00:00:00 2001 From: "Louis Wicket (wil)" Date: Fri, 3 Mar 2023 16:08:00 +0000 Subject: [PATCH] =?UTF-8?q?[IMP]=20*:=20remove=20"French=20spacing"=20?= =?UTF-8?q?=F0=9F=91=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit According to Wiktionary, French spacing is "the archaic practice (though still current in French) of inserting a space around colons, semicolons, question marks, and exclamation marks". This is not standard practice in English and most languages of the world. The purpose of this commit is to start purging the code from this typo, as it may reflect poorly on the software for some people. closes odoo/odoo#114533 Related: odoo/enterprise#37853 Signed-off-by: Sébastien Theys (seb) --- addons/account/models/account_account.py | 2 +- .../models/account_journal_dashboard.py | 2 +- addons/account/models/account_move_line.py | 2 +- addons/account/models/account_tax.py | 2 +- addons/account_edi/models/account_move.py | 2 +- .../data/cii_22_templates.xml | 4 +- .../models/account_edi_xml_cii_facturx.py | 2 +- .../models/account_edi_xml_ubl_20.py | 2 +- .../static/src/js/totp_frontend.js | 2 +- addons/barcodes/models/barcode_rule.py | 2 +- .../static/src/components/barcode_scanner.js | 2 +- .../base_module_install_request_views.xml | 2 +- addons/calendar/models/calendar_event_type.py | 2 +- .../attendee_calendar_model.js | 2 +- .../test_calendar_recurrent_event_case2.py | 4 +- addons/contacts/data/mail_demo.xml | 2 +- addons/crm/data/crm_lead_demo.xml | 4 +- addons/crm/static/src/js/tours/crm.js | 2 +- addons/crm/tests/common.py | 2 +- addons/crm/tests/test_crm_activity.py | 2 +- addons/crm/tests/test_crm_lead.py | 2 +- addons/crm/wizard/crm_lead_lost_views.xml | 2 +- .../static/src/js/tours/crm_iap_lead.js | 4 +- .../crm_iap_lead_mining_request_views.xml | 2 +- addons/digest/models/digest.py | 2 +- addons/event/data/event_demo.xml | 8 +-- addons/event_sms/data/sms_data.xml | 2 +- addons/fleet/models/fleet_vehicle_tag.py | 2 +- .../data/gamification_karma_rank_data.xml | 2 +- .../data/gamification_karma_rank_demo.xml | 8 +-- .../gamification/data/mail_template_data.xml | 6 +- .../views/gamification_karma_rank_views.xml | 2 +- .../google_account/models/google_service.py | 4 +- addons/google_calendar/models/res_users.py | 2 +- addons/hr/data/hr_demo.xml | 2 +- addons/hr/models/hr_employee_category.py | 2 +- addons/hr/security/hr_security.xml | 2 +- addons/hr/views/hr_job_views.xml | 2 +- .../security/hr_attendance_security.xml | 4 +- .../my_attendances/my_attendances.xml | 2 +- .../src/widgets/tooltip_warning_widget.js | 2 +- addons/hr_expense/data/mail_templates.xml | 2 +- addons/hr_holidays/models/hr_leave.py | 8 +-- .../hr_holidays/models/hr_leave_allocation.py | 2 +- .../security/hr_holidays_security.xml | 4 +- .../src/views/calendar/calendar_controller.js | 2 +- .../models/hr_applicant_category.py | 2 +- .../security/hr_recruitment_security.xml | 2 +- .../static/src/js/tours/hr_recruitment.js | 2 +- .../data/survey_demo.xml | 8 +-- addons/hr_recruitment_survey/models/hr_job.py | 2 +- .../tests/test_recruitment_survey.py | 2 +- addons/hr_timesheet/tests/test_timesheet.py | 4 +- addons/hr_work_entry_holidays/tests/common.py | 2 +- .../tests/test_leave.py | 2 +- .../data/im_livechat_chatbot_data.xml | 2 +- .../src/legacy/widgets/feedback/feedback.xml | 2 +- addons/mail/models/fetchmail.py | 2 +- addons/mail_group/data/mail_group_demo.xml | 2 +- .../views/mailing_mailing_views.xml | 2 +- .../data/mass_mailing_demo.xml | 2 +- .../data/mass_mailing_demo.xml | 2 +- addons/mass_mailing_sms/data/mailing_demo.xml | 4 +- .../views/mailing_mailing_views.xml | 4 +- addons/membership/models/product.py | 2 +- .../models/microsoft_service.py | 2 +- addons/microsoft_calendar/models/res_users.py | 2 +- addons/mrp/models/mrp_bom.py | 2 +- addons/mrp/views/mrp_production_views.xml | 2 +- .../wizard/confirm_expiry.py | 4 +- addons/note/data/note_demo.xml | 6 +- addons/note/models/note.py | 2 +- addons/point_of_sale/models/pos_category.py | 2 +- addons/point_of_sale/models/pos_session.py | 2 +- .../static/src/app/debug/debug_widget.js | 4 +- .../static/src/js/Popups/ConfirmPopup.js | 2 +- .../static/src/js/Popups/NumberPopup.js | 2 +- .../js/Screens/TicketScreen/TicketScreen.js | 2 +- .../static/src/js/SelectCashierMixin.js | 2 +- .../src/app/floor_screen/floor_screen.js | 6 +- .../ControlButtons/TableGuestsButton.js | 2 +- .../wizard/privacy_lookup_wizard_views.xml | 2 +- addons/product/models/product_tag.py | 2 +- .../product_expiry/wizard/confirm_expiry.py | 4 +- .../views/resource_calendar_views.xml | 4 +- addons/resource/views/resource_views.xml | 4 +- .../static/src/js/product_discount_field.js | 2 +- addons/sales_team/models/crm_tag.py | 2 +- .../static/src/o_spreadsheet/o_spreadsheet.js | 2 +- addons/stock/models/stock_location.py | 2 +- addons/stock/models/stock_package_type.py | 2 +- addons/stock/views/stock_picking_views.xml | 2 +- .../stock_package_destination_views.xml | 2 +- addons/survey/data/mail_template_data.xml | 2 +- .../survey/data/survey_demo_certification.xml | 2 +- .../survey/data/survey_demo_conditional.xml | 24 +++---- addons/survey/data/survey_demo_feedback.xml | 14 ++-- .../survey_demo_feedback_user_input_line.xml | 2 +- addons/survey/data/survey_demo_quiz.xml | 32 ++++----- .../data/survey_demo_quiz_user_input_line.xml | 4 +- .../survey/models/survey_survey_template.py | 2 +- .../static/src/js/survey_session_manage.js | 2 +- .../static/tests/tours/survey_prefill.js | 30 ++++----- .../survey/tests/test_certification_badge.py | 4 +- addons/survey/tests/test_survey.py | 8 +-- .../survey/tests/test_survey_ui_feedback.py | 14 ++-- .../views/survey_templates_management.xml | 2 +- .../src/js/tours/wevent_register_tour.js | 2 +- addons/test_event_full/tests/common.py | 2 +- .../test_mass_mailing/data/mail_test_data.py | 4 +- addons/utm/models/utm_tag.py | 2 +- addons/web/static/lib/qweb/qweb-benchmark.xml | 2 +- .../src/views/calendar/calendar_controller.js | 2 +- .../views/fields/many2one/many2one_field.js | 2 +- .../tests/views/form/form_view_tests.js | 1 - .../components/media_dialog/file_selector.js | 2 +- .../static/src/js/editor/snippets.editor.js | 2 +- addons/website/models/website_visitor.py | 2 +- .../src/components/dialog/page_properties.xml | 4 +- .../static/src/js/editor/snippets.options.js | 2 +- addons/website/static/src/js/utils.js | 2 +- .../static/src/xml/website_form_editor.xml | 4 +- .../snippets/s_mega_menu_menus_logos.xml | 2 +- addons/website_blog/models/website_blog.py | 4 +- .../models/crm_lead.py | 2 +- addons/website_event/data/event_demo.xml | 12 ++-- .../website_event/data/res_partner_demo.xml | 20 +++--- .../controllers/website_event_main.py | 2 +- .../data/event_sponsor_demo.xml | 4 +- .../src/xml/event_exhibitor_connect.xml | 2 +- .../views/event_exhibitor_templates_list.xml | 2 +- .../views/event_exhibitor_templates_page.xml | 4 +- .../controllers/website_event_main.py | 2 +- .../data/website_event_meet_demo.xml | 2 +- .../src/js/website_event_meeting_room.js | 4 +- .../views/event_meet_templates_list.xml | 2 +- .../views/event_meet_templates_page.xml | 4 +- .../data/event_question_demo.xml | 2 +- .../data/event_track_demo.xml | 4 +- .../models/event_track_tag.py | 2 +- .../views/event_track_views.xml | 2 +- .../data/quiz_demo.xml | 14 ++-- .../static/src/js/event_quiz.js | 2 +- addons/website_forum/models/forum.py | 4 +- .../static/src/xml/public_templates.xml | 2 +- addons/website_forum/views/website_forum.xml | 2 +- .../views/snippets_templates.xml | 2 +- .../data/website_partner_demo.xml | 2 +- .../models/product_public_category.py | 2 +- .../static/src/js/website_sale.editor.js | 2 +- addons/website_slides/data/mail_templates.xml | 2 +- .../data/slide_channel_demo.xml | 4 +- .../website_slides/data/slide_slide_demo.xml | 66 +++++++++---------- .../website_slides/data/slide_user_demo.xml | 12 ++-- .../src/js/slides_course_enroll_email.js | 2 +- .../src/js/slides_course_fullscreen_player.js | 2 +- .../static/src/js/slides_course_quiz.js | 2 +- .../static/src/js/slides_share.js | 4 +- .../static/src/xml/slide_course_join.xml | 2 +- .../static/src/xml/slide_management.xml | 4 +- .../static/src/xml/slide_quiz.xml | 8 +-- .../static/src/xml/slide_quiz_create.xml | 2 +- .../static/src/xml/website_slides_upload.xml | 2 +- .../tests/tours/slides_course_member.js | 2 +- .../views/slide_question_views.xml | 2 +- .../data/slide_channel_demo.xml | 6 +- odoo/addons/base/models/ir_mail_server.py | 2 +- odoo/addons/base/models/ir_model.py | 2 +- odoo/addons/base/models/ir_module.py | 4 +- odoo/addons/base/models/ir_rule.py | 2 +- odoo/addons/base/models/ir_ui_view.py | 2 +- odoo/addons/base/models/report_paperformat.py | 2 +- odoo/addons/base/models/res_company.py | 2 +- odoo/addons/base/models/res_country.py | 6 +- odoo/addons/base/models/res_currency.py | 2 +- odoo/addons/base/models/res_lang.py | 6 +- odoo/addons/base/models/res_users.py | 2 +- odoo/addons/base/tests/test_mail_examples.py | 12 ++-- .../base/wizard/base_module_upgrade_views.xml | 2 +- .../base/wizard/base_partner_merge_views.xml | 4 +- .../test_new_api/models/test_new_api.py | 2 +- .../static/tests/tours/constraint.js | 2 +- odoo/api.py | 2 +- odoo/service/model.py | 2 +- odoo/tools/convert.py | 4 +- 185 files changed, 361 insertions(+), 362 deletions(-) diff --git a/addons/account/models/account_account.py b/addons/account/models/account_account.py index 32d13df16ca..ee1a09be546 100644 --- a/addons/account/models/account_account.py +++ b/addons/account/models/account_account.py @@ -107,7 +107,7 @@ class AccountAccount(models.Model): related_taxes_amount = fields.Integer(compute='_compute_related_taxes_amount') _sql_constraints = [ - ('code_company_uniq', 'unique (code,company_id)', 'The code of the account must be unique per company !') + ('code_company_uniq', 'unique (code,company_id)', 'The code of the account must be unique per company!') ] non_trade = fields.Boolean(default=False, diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index 6b766286f82..62bff99f343 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -410,7 +410,7 @@ class account_journal(models.Model): def _count_results_and_sum_amounts(self, results_dict, target_currency, curr_cache=None): """ Loops on a query result to count the total number of invoices and sum their amount_total field (expressed in the given target currency). - amount_total must be signed ! + amount_total must be signed! """ rslt_count = 0 rslt_sum = 0.0 diff --git a/addons/account/models/account_move_line.py b/addons/account/models/account_move_line.py index a0da574600e..e431dd09885 100644 --- a/addons/account/models/account_move_line.py +++ b/addons/account/models/account_move_line.py @@ -399,7 +399,7 @@ class AccountMoveLine(models.Model): ( "check_credit_debit", "CHECK(display_type IN ('line_section', 'line_note') OR credit * debit=0)", - "Wrong credit or debit value in accounting entry !" + "Wrong credit or debit value in accounting entry!" ), ( "check_amount_currency_balance_sign", diff --git a/addons/account/models/account_tax.py b/addons/account/models/account_tax.py index 63a33e2fd96..4d69723a56c 100644 --- a/addons/account/models/account_tax.py +++ b/addons/account/models/account_tax.py @@ -173,7 +173,7 @@ class AccountTax(models.Model): country_code = fields.Char(related='country_id.code', readonly=True) _sql_constraints = [ - ('name_company_uniq', 'unique(name, company_id, type_tax_use, tax_scope)', 'Tax names must be unique !'), + ('name_company_uniq', 'unique(name, company_id, type_tax_use, tax_scope)', 'Tax names must be unique!'), ] @api.constrains('tax_group_id') diff --git a/addons/account_edi/models/account_move.py b/addons/account_edi/models/account_move.py index 6996f1d15ef..37c3dec9535 100644 --- a/addons/account_edi/models/account_move.py +++ b/addons/account_edi/models/account_move.py @@ -18,7 +18,7 @@ class AccountMove(models.Model): help='The aggregated state of all the EDIs with web-service of this move') edi_error_count = fields.Integer( compute='_compute_edi_error_count', - help='How many EDIs are in error for this move ?') + help='How many EDIs are in error for this move?') edi_blocking_level = fields.Selection( selection=[('info', 'Info'), ('warning', 'Warning'), ('error', 'Error')], compute='_compute_edi_error_message') diff --git a/addons/account_edi_ubl_cii/data/cii_22_templates.xml b/addons/account_edi_ubl_cii/data/cii_22_templates.xml index f890cb6b5e6..cf00b581e38 100644 --- a/addons/account_edi_ubl_cii/data/cii_22_templates.xml +++ b/addons/account_edi_ubl_cii/data/cii_22_templates.xml @@ -32,7 +32,7 @@ @@ -56,7 +56,7 @@ + t-out="line.quantity"/> diff --git a/addons/account_edi_ubl_cii/models/account_edi_xml_cii_facturx.py b/addons/account_edi_ubl_cii/models/account_edi_xml_cii_facturx.py index dfe4fd336c9..09b832b9c95 100644 --- a/addons/account_edi_ubl_cii/models/account_edi_xml_cii_facturx.py +++ b/addons/account_edi_ubl_cii/models/account_edi_xml_cii_facturx.py @@ -240,7 +240,7 @@ class AccountEdiXmlCII(models.AbstractModel): invoice.currency_id = currency else: logs.append(_("Could not retrieve currency: %s. Did you enable the multicurrency option and " - "activate the currency ?", currency_code_node.text)) + "activate the currency?", currency_code_node.text)) # ==== Reference ==== diff --git a/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py b/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py index 9ed5de6e326..1e9da992c4f 100644 --- a/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py +++ b/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py @@ -489,7 +489,7 @@ class AccountEdiXmlUBL20(models.AbstractModel): invoice.currency_id = currency else: logs.append(_("Could not retrieve currency: %s. Did you enable the multicurrency option " - "and activate the currency ?", currency_code_node.text)) + "and activate the currency?", currency_code_node.text)) # ==== invoice_date ==== diff --git a/addons/auth_totp_portal/static/src/js/totp_frontend.js b/addons/auth_totp_portal/static/src/js/totp_frontend.js index f14eb55f21c..c2dd9ad0d41 100644 --- a/addons/auth_totp_portal/static/src/js/totp_frontend.js +++ b/addons/auth_totp_portal/static/src/js/totp_frontend.js @@ -48,7 +48,7 @@ function fromField(f, record) { copyButton.setAttribute('class', 'btn btn-sm btn-primary o_clipboard_button o_btn_char_copy py-0 px-2'); copyButton.onclick = function(event) { event.preventDefault(); - $(copyButton).tooltip({title: _t("Copied !"), trigger: "manual", placement: "bottom"}); + $(copyButton).tooltip({title: _t("Copied!"), trigger: "manual", placement: "bottom"}); var clipboard = new ClipboardJS('.o_clipboard_button', { target: function () { return $(secretSpan)[0]; diff --git a/addons/barcodes/models/barcode_rule.py b/addons/barcodes/models/barcode_rule.py index 6394769f462..9023c455c16 100644 --- a/addons/barcodes/models/barcode_rule.py +++ b/addons/barcodes/models/barcode_rule.py @@ -40,4 +40,4 @@ class BarcodeRule(models.Model): elif len(findall) != 0: raise ValidationError(_("There is a syntax error in the barcode pattern %(pattern)s: a rule can only contain one pair of braces.", pattern=rule.pattern)) elif p == '*': - raise ValidationError(_(" '*' is not a valid Regex Barcode Pattern. Did you mean '.*' ?")) + raise ValidationError(_(" '*' is not a valid Regex Barcode Pattern. Did you mean '.*'?")) diff --git a/addons/barcodes/static/src/components/barcode_scanner.js b/addons/barcodes/static/src/components/barcode_scanner.js index f9f1a9cb383..ae18eedcba0 100644 --- a/addons/barcodes/static/src/components/barcode_scanner.js +++ b/addons/barcodes/static/src/components/barcode_scanner.js @@ -29,7 +29,7 @@ export class BarcodeScanner extends Component { window.navigator.vibrate(100); } } else { - this.notification.add(error || this.env._t("Please, Scan again !"), { + this.notification.add(error || this.env._t("Please, Scan again!"), { type: "warning", }); } diff --git a/addons/base_install_request/wizard/base_module_install_request_views.xml b/addons/base_install_request/wizard/base_module_install_request_views.xml index ce825e98128..8b12bbd6615 100644 --- a/addons/base_install_request/wizard/base_module_install_request_views.xml +++ b/addons/base_install_request/wizard/base_module_install_request_views.xml @@ -14,7 +14,7 @@ - +