diff --git a/.travis.yml b/.travis.yml index 8d16e8fcd..6716bfade 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: python cache: directories: - - $HOME/.cache/pip - - $HOME/.cache/pre-commit + - $HOME/.cache/pip + - $HOME/.cache/pre-commit python: - "3.6" @@ -11,7 +11,7 @@ addons: postgresql: "9.6" apt: packages: - - expect-dev # provides unbuffer utility + - expect-dev # provides unbuffer utility stages: - linting @@ -34,10 +34,11 @@ jobs: env: global: - - VERSION="13.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0" + - VERSION="13.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0" install: - - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools + - git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git + ${HOME}/maintainer-quality-tools - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} - travis_install_nightly diff --git a/web_decimal_numpad_dot/static/src/js/numpad_dot.js b/web_decimal_numpad_dot/static/src/js/numpad_dot.js index 9516dd67c..0fa6d394e 100644 --- a/web_decimal_numpad_dot/static/src/js/numpad_dot.js +++ b/web_decimal_numpad_dot/static/src/js/numpad_dot.js @@ -1,23 +1,23 @@ /* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */ -odoo.define("web_decimal_numpad_dot.FieldFloat", function (require) { +odoo.define("web_decimal_numpad_dot.FieldFloat", function(require) { "use strict"; var basic_fields = require("web.basic_fields"); var translation = require("web.translation"); var NumpadDotReplaceMixin = { - l10n_decimal_point: function () { + l10n_decimal_point: function() { return this.formatType === "float_time" - ? ":" : translation._t.database.parameters.decimal_point; + ? ":" + : translation._t.database.parameters.decimal_point; }, - _replaceAt: function (cur_val, from, to, replacement) { - return cur_val.substring(0, from) + replacement + - cur_val.substring(to); + _replaceAt: function(cur_val, from, to, replacement) { + return cur_val.substring(0, from) + replacement + cur_val.substring(to); }, - _onKeydown: function (event) { + _onKeydown: function(event) { // Only act on numpad dot key if (event.keyCode !== 110) { return this._super.apply(this, arguments); diff --git a/web_decimal_numpad_dot/views/web_decimal_numpad_dot.xml b/web_decimal_numpad_dot/views/web_decimal_numpad_dot.xml index d4815753b..8bc4a39f4 100644 --- a/web_decimal_numpad_dot/views/web_decimal_numpad_dot.xml +++ b/web_decimal_numpad_dot/views/web_decimal_numpad_dot.xml @@ -1,10 +1,16 @@ - + -