diff options
| author | mreficent <miquel.raich@eficent.com> | 2019-08-02 11:26:58 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-08-07 10:28:33 +0000 |
| commit | 355a5dfc365c419f3be2e1ccffe0cb38e1140d27 (patch) | |
| tree | 122f40cf08f705573213a78738f886141a84ff6c /addons/web/static | |
| parent | 1069890ea0bcbb2d5aa34f3ace777d89da2054f9 (diff) | |
[IMP] *: fix typos in comments
closes odoo/odoo#35404
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/web/static')
24 files changed, 28 insertions, 28 deletions
diff --git a/addons/web/static/lib/daterangepicker/daterangepicker.js b/addons/web/static/lib/daterangepicker/daterangepicker.js index 6aac9665b56..c980cd93d03 100644 --- a/addons/web/static/lib/daterangepicker/daterangepicker.js +++ b/addons/web/static/lib/daterangepicker/daterangepicker.js @@ -8,7 +8,7 @@ // Following the UMD template https://github.com/umdjs/umd/blob/master/templates/returnExportsGlobal.js (function (root, factory) { if (typeof define === 'function' && define.amd) { - // AMD. Make globaly available as well + // AMD. Make globally available as well define(['moment', 'jquery'], function (moment, jquery) { if (!jquery.fn) jquery.fn = {}; // webpack server rendering if (typeof moment !== 'function' && moment.default) moment = moment.default diff --git a/addons/web/static/lib/jquery.ui/jquery-ui.js b/addons/web/static/lib/jquery.ui/jquery-ui.js index 46dc1070efd..2d48addb2a3 100644 --- a/addons/web/static/lib/jquery.ui/jquery-ui.js +++ b/addons/web/static/lib/jquery.ui/jquery-ui.js @@ -1687,7 +1687,7 @@ var widgetsMouse = $.widget( "ui.mouse", { return this.mouseDelayMet; }, - // These are placeholder methods, to be overriden by extending plugin + // These are placeholder methods, to be overridden by extending plugin _mouseStart: function( /* event */ ) {}, _mouseDrag: function( /* event */ ) {}, _mouseStop: function( /* event */ ) {}, diff --git a/addons/web/static/lib/moment/moment.js b/addons/web/static/lib/moment/moment.js index f2269a1c444..e161d32fa41 100644 --- a/addons/web/static/lib/moment/moment.js +++ b/addons/web/static/lib/moment/moment.js @@ -2213,13 +2213,13 @@ function dayOfYearFromWeekInfo(config) { weekdayOverflow = true; } } else if (w.e != null) { - // local weekday -- counting starts from begining of week + // local weekday -- counting starts from beginning of week weekday = w.e + dow; if (w.e < 0 || w.e > 6) { weekdayOverflow = true; } } else { - // default to begining of week + // default to beginning of week weekday = dow; } } diff --git a/addons/web/static/lib/popper/popper.js b/addons/web/static/lib/popper/popper.js index b8c45b8a00e..bef1b0f0af3 100644 --- a/addons/web/static/lib/popper/popper.js +++ b/addons/web/static/lib/popper/popper.js @@ -2291,7 +2291,7 @@ var modifiers = { /** * Default options provided to Popper.js constructor.<br /> - * These can be overriden using the `options` argument of Popper.js.<br /> + * These can be overridden using the `options` argument of Popper.js.<br /> * To override an option, simply pass as 3rd argument an object with the same * structure of this object, example: * ``` diff --git a/addons/web/static/src/js/chrome/action_manager.js b/addons/web/static/src/js/chrome/action_manager.js index 3d2dc7a4076..746460bdc4f 100644 --- a/addons/web/static/src/js/chrome/action_manager.js +++ b/addons/web/static/src/js/chrome/action_manager.js @@ -451,7 +451,7 @@ var ActionManager = Widget.extend({ var prom = this._executeAction(action, options); prom.then(function () { // AAB: this should be done automatically in AbstractAction, so that - // it can be overriden by actions that have specific stuff to push + // it can be overridden by actions that have specific stuff to push // (e.g. Discuss, Views) self._pushState(controllerID, {}); }); @@ -644,7 +644,7 @@ var ActionManager = Widget.extend({ }, /** * Dispatches the given action to the corresponding handler to execute it, - * according to its type. This function can be overriden to extend the + * according to its type. This function can be overridden to extend the * range of supported action types. * * @private diff --git a/addons/web/static/src/js/chrome/action_mixin.js b/addons/web/static/src/js/chrome/action_mixin.js index 02345e7e969..fa13e64e63e 100644 --- a/addons/web/static/src/js/chrome/action_mixin.js +++ b/addons/web/static/src/js/chrome/action_mixin.js @@ -89,7 +89,7 @@ var ActionMixin = { * example, if the user has edited a form, maybe we should ask him if we * can discard all his changes when we switch to another action. In that * case, the action manager will call this method. If the returned - * promise is succesfully resolved, then we can destroy the current action, + * promise is successfully resolved, then we can destroy the current action, * otherwise, we need to stop. * * @returns {Promise} resolved if the action can be removed, rejected diff --git a/addons/web/static/src/js/core/utils.js b/addons/web/static/src/js/core/utils.js index bd9a8d1db64..945b63e9a37 100644 --- a/addons/web/static/src/js/core/utils.js +++ b/addons/web/static/src/js/core/utils.js @@ -330,7 +330,7 @@ var utils = { // better expressed in the scientific format. if (numberMagnitude >= 21) { // we do not use number.toExponential(decimals) because we want to - // avoid the possible useless O decimals: 1e.+24 prefered to 1.0e+24 + // avoid the possible useless O decimals: 1e.+24 preferred to 1.0e+24 number = Math.round(number * Math.pow(10, decimals - numberMagnitude)) / d2; // formatterCallback seems useless here. return number + 'e' + numberMagnitude; diff --git a/addons/web/static/src/js/fields/abstract_field.js b/addons/web/static/src/js/fields/abstract_field.js index dc456d21ae0..1430c49ab18 100644 --- a/addons/web/static/src/js/fields/abstract_field.js +++ b/addons/web/static/src/js/fields/abstract_field.js @@ -175,7 +175,7 @@ var AbstractField = Widget.extend({ // to send it to the server. These functions are chosen according to // the 'widget' attrs if is is given, and if it is a valid key, with a // fallback on the field type, ensuring that the value is formatted and - // displayed according to the choosen widget, if any. + // displayed according to the chosen widget, if any. this.formatType = this.attrs.widget in field_utils.format ? this.attrs.widget : this.field.type; diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js index 0f13228526e..fed94598046 100644 --- a/addons/web/static/src/js/fields/relational_fields.js +++ b/addons/web/static/src/js/fields/relational_fields.js @@ -471,9 +471,9 @@ var FieldMany2One = AbstractField.extend({ // this is a stupid hack necessary to support the always_reload flag. // the field value has been reread by the basic model. We use it to - // display the full address of a patner, separated by \n. This is + // display the full address of a partner, separated by \n. This is // really a bad way to do it. Now, we need to remove the extra lines - // and hope for the best that noone tries to uses this mechanism to do + // and hope for the best that no one tries to uses this mechanism to do // something else. if (this.nodeOptions.always_reload) { value = this._getDisplayName(value); diff --git a/addons/web/static/src/js/fields/upgrade_fields.js b/addons/web/static/src/js/fields/upgrade_fields.js index 8dd1f9d3ae8..36af39567ac 100644 --- a/addons/web/static/src/js/fields/upgrade_fields.js +++ b/addons/web/static/src/js/fields/upgrade_fields.js @@ -47,7 +47,7 @@ var AbstractFieldUpgrade = { }); }, /** - * This function is meant to be overriden to insert the 'Enterprise' label + * This function is meant to be overridden to insert the 'Enterprise' label * JQuery node at the right place. * * @abstract @@ -98,7 +98,7 @@ var AbstractFieldUpgrade = { })); }, /** - * This function is meant to be overriden to reset the $el to its initial + * This function is meant to be overridden to reset the $el to its initial * state. * * @abstract diff --git a/addons/web/static/src/js/views/basic/basic_controller.js b/addons/web/static/src/js/views/basic/basic_controller.js index 473b070ace0..2fb6f6400c9 100644 --- a/addons/web/static/src/js/views/basic/basic_controller.js +++ b/addons/web/static/src/js/views/basic/basic_controller.js @@ -122,7 +122,7 @@ var BasicController = AbstractController.extend(FieldManagerMixin, { .then(this._discardChanges.bind(this, recordID || this.handle, options)); }, /** - * Method that will be overriden by the views with the ability to have selected ids + * Method that will be overridden by the views with the ability to have selected ids * * @returns {Array} */ diff --git a/addons/web/static/src/js/views/basic/basic_renderer.js b/addons/web/static/src/js/views/basic/basic_renderer.js index f73209a0330..99e6926d503 100644 --- a/addons/web/static/src/js/views/basic/basic_renderer.js +++ b/addons/web/static/src/js/views/basic/basic_renderer.js @@ -353,7 +353,7 @@ var BasicRenderer = AbstractRenderer.extend({ return _.findWhere(this.allModifiersData, {node: node}); }, /** - * This function is meant to be overriden in renderers. It takes a dataPoint + * This function is meant to be overridden in renderers. It takes a dataPoint * id (for a dataPoint of type record), and should return the corresponding * dataPoint. * diff --git a/addons/web/static/src/js/views/basic/basic_view.js b/addons/web/static/src/js/views/basic/basic_view.js index fde334d79d0..7fd8af532a0 100644 --- a/addons/web/static/src/js/views/basic/basic_view.js +++ b/addons/web/static/src/js/views/basic/basic_view.js @@ -359,7 +359,7 @@ var BasicView = AbstractView.extend({ }, /** * Processes a node of the arch (mainly nodes with tagname 'field'). Can - * be overriden to handle other tagnames. + * be overridden to handle other tagnames. * * @private * @param {Object} node diff --git a/addons/web/static/src/js/views/kanban/kanban_model.js b/addons/web/static/src/js/views/kanban/kanban_model.js index 8b1135d3f15..30af177214f 100644 --- a/addons/web/static/src/js/views/kanban/kanban_model.js +++ b/addons/web/static/src/js/views/kanban/kanban_model.js @@ -236,7 +236,7 @@ var KanbanModel = BasicModel.extend({ // Manually updates groups data. Note: this is done before the actual // save as it might need to perform a read group in some cases so those - // updated data might be overriden again. + // updated data might be overridden again. var record = self.localData[recordID]; var resID = record.res_id; // Remove record from its current group diff --git a/addons/web/static/src/js/views/kanban/kanban_renderer.js b/addons/web/static/src/js/views/kanban/kanban_renderer.js index ca6f8893cd8..2cf0b0dc070 100644 --- a/addons/web/static/src/js/views/kanban/kanban_renderer.js +++ b/addons/web/static/src/js/views/kanban/kanban_renderer.js @@ -84,7 +84,7 @@ function transformQwebTemplate(node, fields) { var KanbanRenderer = BasicRenderer.extend({ className: 'o_kanban_view', - config: { // the KanbanRecord and KanbanColumn classes to use (may be overriden) + config: { // the KanbanRecord and KanbanColumn classes to use (may be overridden) KanbanColumn: KanbanColumn, KanbanRecord: KanbanRecord, }, diff --git a/addons/web/static/src/js/views/list/list_editable_renderer.js b/addons/web/static/src/js/views/list/list_editable_renderer.js index 2740c8e1567..65bae3eea41 100644 --- a/addons/web/static/src/js/views/list/list_editable_renderer.js +++ b/addons/web/static/src/js/views/list/list_editable_renderer.js @@ -1083,7 +1083,7 @@ ListRenderer.include({ this._selectCell(rowIndex, fieldIndex, {event: event}); }, /** - * We need to manually unselect row, because noone else would do it + * We need to manually unselect row, because no one else would do it */ _onEmptyRowClick: function () { this.unselectRow(); diff --git a/addons/web/static/src/js/views/list/list_model.js b/addons/web/static/src/js/views/list/list_model.js index 25fdf28954c..900f3764b0e 100644 --- a/addons/web/static/src/js/views/list/list_model.js +++ b/addons/web/static/src/js/views/list/list_model.js @@ -20,7 +20,7 @@ odoo.define('web.ListModel', function (require) { //-------------------------------------------------------------------------- /** - * Overriden to add `groupData` when performing get on list datapoints. + * overridden to add `groupData` when performing get on list datapoints. * * @override * @see _readGroupExtraFields diff --git a/addons/web/static/src/scss/fontawesome_overriden.scss b/addons/web/static/src/scss/fontawesome_overridden.scss index a234dbc9f81..a234dbc9f81 100644 --- a/addons/web/static/src/scss/fontawesome_overriden.scss +++ b/addons/web/static/src/scss/fontawesome_overridden.scss diff --git a/addons/web/static/src/scss/form_view.scss b/addons/web/static/src/scss/form_view.scss index e742f8f059b..088fefc03ed 100644 --- a/addons/web/static/src/scss/form_view.scss +++ b/addons/web/static/src/scss/form_view.scss @@ -777,7 +777,7 @@ } } -// Overriden style when form view in modal +// Overridden style when form view in modal .modal .modal-dialog { .o_form_view { .o_form_sheet_bg { diff --git a/addons/web/static/src/scss/form_view_extra.scss b/addons/web/static/src/scss/form_view_extra.scss index b9bd6775acd..5a7ed2bac66 100644 --- a/addons/web/static/src/scss/form_view_extra.scss +++ b/addons/web/static/src/scss/form_view_extra.scss @@ -104,7 +104,7 @@ } } -// Overriden style when form view in modal +// Overridden style when form view in modal .modal .modal-dialog { .o_form_view { .o_form_sheet_bg, .o_form_sheet { diff --git a/addons/web/static/tests/fields/relational_fields/field_many2one_tests.js b/addons/web/static/tests/fields/relational_fields/field_many2one_tests.js index 8145990839f..f4cd0e1be0b 100644 --- a/addons/web/static/tests/fields/relational_fields/field_many2one_tests.js +++ b/addons/web/static/tests/fields/relational_fields/field_many2one_tests.js @@ -326,7 +326,7 @@ QUnit.module('fields', {}, function () { form.destroy(); }); - QUnit.test('many2ones in form views with show_adress', async function (assert) { + QUnit.test('many2ones in form views with show_address', async function (assert) { assert.expect(4); var form = await createView({ View: FormView, diff --git a/addons/web/static/tests/helpers/test_utils_mock.js b/addons/web/static/tests/helpers/test_utils_mock.js index 0d452ddd195..5f567e714bc 100644 --- a/addons/web/static/tests/helpers/test_utils_mock.js +++ b/addons/web/static/tests/helpers/test_utils_mock.js @@ -161,7 +161,7 @@ function addMockEnvironment(widget, params) { var initialSession, initialConfig, initialParameters, initialDebounce, initialThrottle; initialSession = _.extend({}, session); session.getTZOffset = function () { - return 0; // by default, but may be overriden in specific tests + return 0; // by default, but may be overridden in specific tests }; if ('session' in params) { _.extend(session, params.session); diff --git a/addons/web/static/tests/views/basic_model_tests.js b/addons/web/static/tests/views/basic_model_tests.js index 8bc9a01465e..608d9243907 100644 --- a/addons/web/static/tests/views/basic_model_tests.js +++ b/addons/web/static/tests/views/basic_model_tests.js @@ -1490,11 +1490,11 @@ odoo.define('web.basic_model_tests', function (require) { assert.deepEqual( recordPartner.getContext({ fieldName: "product_id" }), { hello2: "world", test2: "gnap" }, - "field context should have been overriden by xml attribute"); + "field context should have been overridden by xml attribute"); assert.deepEqual( recordPartner.getDomain({ fieldName: "product_id" }), [["hello2", "like", "world"], ["test2", "like", "gnap"]], - "field domain should have been overriden by xml attribute"); + "field domain should have been overridden by xml attribute"); model.destroy(); }); diff --git a/addons/web/static/tests/views/form_tests.js b/addons/web/static/tests/views/form_tests.js index f6d625b3d6d..bc47d849258 100644 --- a/addons/web/static/tests/views/form_tests.js +++ b/addons/web/static/tests/views/form_tests.js @@ -4550,7 +4550,7 @@ QUnit.module('Views', { QUnit.test('readonly fields with modifiers may be saved', async function (assert) { // the readonly property on the field description only applies on view, // this is not a DB constraint. It should be seen as a default value, - // that may be overriden in views, for example with modifiers. So + // that may be overridden in views, for example with modifiers. So // basically, a field defined as readonly may be edited. assert.expect(3); |
