summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authormreficent <miquel.raich@eficent.com>2019-08-02 11:26:58 +0000
committerMartin Trigaux <mat@odoo.com>2019-08-07 10:28:33 +0000
commit355a5dfc365c419f3be2e1ccffe0cb38e1140d27 (patch)
tree122f40cf08f705573213a78738f886141a84ff6c /addons/web/static/src
parent1069890ea0bcbb2d5aa34f3ace777d89da2054f9 (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/src')
-rw-r--r--addons/web/static/src/js/chrome/action_manager.js4
-rw-r--r--addons/web/static/src/js/chrome/action_mixin.js2
-rw-r--r--addons/web/static/src/js/core/utils.js2
-rw-r--r--addons/web/static/src/js/fields/abstract_field.js2
-rw-r--r--addons/web/static/src/js/fields/relational_fields.js4
-rw-r--r--addons/web/static/src/js/fields/upgrade_fields.js4
-rw-r--r--addons/web/static/src/js/views/basic/basic_controller.js2
-rw-r--r--addons/web/static/src/js/views/basic/basic_renderer.js2
-rw-r--r--addons/web/static/src/js/views/basic/basic_view.js2
-rw-r--r--addons/web/static/src/js/views/kanban/kanban_model.js2
-rw-r--r--addons/web/static/src/js/views/kanban/kanban_renderer.js2
-rw-r--r--addons/web/static/src/js/views/list/list_editable_renderer.js2
-rw-r--r--addons/web/static/src/js/views/list/list_model.js2
-rw-r--r--addons/web/static/src/scss/fontawesome_overridden.scss (renamed from addons/web/static/src/scss/fontawesome_overriden.scss)0
-rw-r--r--addons/web/static/src/scss/form_view.scss2
-rw-r--r--addons/web/static/src/scss/form_view_extra.scss2
16 files changed, 18 insertions, 18 deletions
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 {