From 617a4aef2c3296d54e50c237ae281f544b2d7978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 17 Jul 2023 11:54:29 +0200 Subject: [PATCH] [FIX] various: fix ot ! Fix ot that should nto be. closes odoo/odoo#128232 Related: odoo/enterprise#43995 Related: odoo/upgrade#4929 Signed-off-by: Thibault Delavallee (tde) --- .../barcodes_gs1_nomenclature/static/src/js/barcode_parser.js | 2 +- addons/crm/models/crm_lead.py | 2 +- addons/spreadsheet/static/src/o_spreadsheet/o_spreadsheet.js | 2 +- addons/stock/tests/test_move2.py | 2 +- addons/web/static/src/views/pivot/pivot_model.js | 2 +- addons/website_event/models/event_event.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/barcodes_gs1_nomenclature/static/src/js/barcode_parser.js b/addons/barcodes_gs1_nomenclature/static/src/js/barcode_parser.js index 18d3197fcb6..29b6b9d22e9 100644 --- a/addons/barcodes_gs1_nomenclature/static/src/js/barcode_parser.js +++ b/addons/barcodes_gs1_nomenclature/static/src/js/barcode_parser.js @@ -52,7 +52,7 @@ patch(BarcodeParser.prototype, { }, /** - * Perform interpretation of the barcode value depending ot the rule.gs1_content_type + * Perform interpretation of the barcode value depending of the rule.gs1_content_type * * @param {Array} match Result of a regex match with atmost 2 groups (ia and value) * @param {Object} rule Matched Barcode Rule diff --git a/addons/crm/models/crm_lead.py b/addons/crm/models/crm_lead.py index 38176a9dbc9..5f148e4d630 100644 --- a/addons/crm/models/crm_lead.py +++ b/addons/crm/models/crm_lead.py @@ -2257,7 +2257,7 @@ class Lead(models.Model): in won_count (if won) or in lost_count (if lost). This method is also used when reactivating a mistakenly lost lead (using the decrement argument). - In this case, the lost count should be de-increment by 1 for each PLS parameter linked ot the lead. + In this case, the lost count should be de-increment by 1 for each PLS parameter linked to the lead. Live increment must be done before writing the new values because we need to know the state change (from and to). This would not be an issue for the reach won or reach lost as we just need to increment the frequencies with the diff --git a/addons/spreadsheet/static/src/o_spreadsheet/o_spreadsheet.js b/addons/spreadsheet/static/src/o_spreadsheet/o_spreadsheet.js index 1c8b3f2f368..f5a7c5eda73 100644 --- a/addons/spreadsheet/static/src/o_spreadsheet/o_spreadsheet.js +++ b/addons/spreadsheet/static/src/o_spreadsheet/o_spreadsheet.js @@ -33423,7 +33423,7 @@ export(data) { if (data.sheets) { for (let sheet of data.sheets) { - // TODO This code is false, if two plugins want ot insert figures on the sheet, it will crash ! + // TODO This code is false, if two plugins want to insert figures on the sheet, it will crash ! const sheetFigures = this.getters.getFigures(sheet.id); const figures = []; for (let sheetFigure of sheetFigures) { diff --git a/addons/stock/tests/test_move2.py b/addons/stock/tests/test_move2.py index bd3647bac71..b1e57a67325 100644 --- a/addons/stock/tests/test_move2.py +++ b/addons/stock/tests/test_move2.py @@ -554,7 +554,7 @@ class TestPickShip(TestStockCommon): self.assertEqual(picking_client.move_ids.reserved_availability, 5.0) def test_pick_ship_return(self): - """ Create pick and ship. Bring it ot the customer and then return + """ Create pick and ship. Bring it to the customer and then return it to stock. This test check the state and the quantity after each move in order to ensure that it is correct. """ diff --git a/addons/web/static/src/views/pivot/pivot_model.js b/addons/web/static/src/views/pivot/pivot_model.js index d578d452382..353efcbd592 100644 --- a/addons/web/static/src/views/pivot/pivot_model.js +++ b/addons/web/static/src/views/pivot/pivot_model.js @@ -907,7 +907,7 @@ export class PivotModel extends Model { * index, returns the given measure for a group determined by the id * groupId and the origin index. * If originIndexes is an array of length 2, we compute the variation - * ot the measure values for the groups determined by groupId and the + * of the measure values for the groups determined by groupId and the * different origin indexes. * * @protected diff --git a/addons/website_event/models/event_event.py b/addons/website_event/models/event_event.py index f30052eb0c5..0819e64c450 100644 --- a/addons/website_event/models/event_event.py +++ b/addons/website_event/models/event_event.py @@ -390,7 +390,7 @@ class Event(models.Model): :param fname_bool: field name (e.g. website_track) :param fname_o2m: o2m linking towards website.event.menu matching the - boolean fields (normally an entry ot website.event.menu with type matching + boolean fields (normally an entry of website.event.menu with type matching the boolean field name) :param method_name: method returning menu entries information: url, sequence, ... """