diff --git a/.travis.yml b/.travis.yml index 854cd64450..94e850d5a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: python python: - - "2.7" + - "3.5" sudo: false cache: pip @@ -14,7 +14,7 @@ addons: env: global: - - VERSION="10.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" UNIT_TEST="0" + - VERSION="11.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" UNIT_TEST="0" - EXCLUDE="hw_printer_network,hw_twitter_printing" - PYLINT_ODOO_JSLINTRC="/home/travis/maintainer-quality-tools/travis/cfg/.jslintrc" - TRANSIFEX_USER='i18n-bot@it-projects.info' @@ -27,8 +27,6 @@ env: - TESTS="1" ODOO_REPO="odoo/odoo" - TESTS="1" ODOO_REPO="OCA/OCB"" -virtualenv: - system_site_packages: true install: - pip install anybox.testing.openerp diff --git a/pos_order_cancel/__manifest__.py b/pos_order_cancel/__manifest__.py index 2a04e11ee9..2fb2c4c0f3 100644 --- a/pos_order_cancel/__manifest__.py +++ b/pos_order_cancel/__manifest__.py @@ -38,5 +38,5 @@ "post_init_hook": None, "auto_install": False, - "installable": False, + "installable": True, } diff --git a/pos_order_cancel/models/models.py b/pos_order_cancel/models/models.py index 964885e0c2..5d2254c5fb 100644 --- a/pos_order_cancel/models/models.py +++ b/pos_order_cancel/models/models.py @@ -57,7 +57,7 @@ def _process_order(self, pos_order): order = super(PosOrder, self)._process_order(pos_order) if 'is_cancelled' in pos_order and pos_order['is_cancelled'] is True: if pos_order['reason']: - order.cancellation_reason = pos_order['reason'].encode('utf-8').strip(" \t\n") + order.cancellation_reason = pos_order['reason'].encode('utf-8') order.is_cancelled = True return order diff --git a/pos_order_cancel/static/src/js/models.js b/pos_order_cancel/static/src/js/models.js index 9edac02690..8aa31706cd 100644 --- a/pos_order_cancel/static/src/js/models.js +++ b/pos_order_cancel/static/src/js/models.js @@ -2,7 +2,6 @@ odoo.define('pos_order_cancel.models', function (require) { "use strict"; var models = require('point_of_sale.models'); - var Model = require('web.DataModel'); var core = require('web.core'); var QWeb = core.qweb; var _t = core._t; diff --git a/pos_order_cancel/static/src/js/tour.js b/pos_order_cancel/static/src/js/tour.js index 53d0b2e841..c2bb358b1d 100644 --- a/pos_order_cancel/static/src/js/tour.js +++ b/pos_order_cancel/static/src/js/tour.js @@ -4,53 +4,53 @@ odoo.define('pos_order_cancel.tour', function(require) { var core = require('web.core'); var tour = require('web_tour.tour'); - var _t = core._t; tour.register('pos_order_cancel_tour', { + test: true, url: "/web", }, [{ trigger: '.o_app[data-menu-xmlid="point_of_sale.menu_point_root"], .oe_menu_toggler[data-menu-xmlid="point_of_sale.menu_point_root"]', - content: _t("Ready to launch your point of sale? Click here."), + content: "Ready to launch your point of sale? Click here.", position: 'bottom', }, { trigger: ".o_pos_kanban button.oe_kanban_action_button", - content: _t("
Click to start the point of sale interface. It runs on tablets, laptops, or industrial hardware.
Once the session launched, the system continues to run without an internet connection.
"), + content: "Click to start the point of sale interface. It runs on tablets, laptops, or industrial hardware.
Once the session launched, the system continues to run without an internet connection.
", position: "bottom" }, { trigger: ".product-list .product", - content: _t("Click product 1
"), + content: "Click product 1
", position: "bottom" }, { trigger: ".product-list .product:not(:first)", - content: _t("Click product 2
"), + content: "Click product 2
", position: "bottom" }, { trigger: ".pads .numpad-backspace", - content: _t("Remove orderline
"), + content: "Remove orderline
", position: "bottom" }, { trigger: ".reason-button[data-id='1']", - content: _t("Click predefined reason
"), + content: "Click predefined reason
", position: "bottom" }, { trigger: ".reason-button[data-id='3']", - content: _t("Click predefined reason
"), + content: "Click predefined reason
", position: "bottom" }, { trigger: ".popup-confirm-cancellation .confirm", - content: _t("Click confirm button"), + content: "
Click confirm button
", position: "bottom" },{ trigger: ".deleteorder-button", - content: _t("Click remove order button"), + content: "
Click remove order button
", position: "bottom" }, { trigger: ".reason-button[data-id='1']", - content: _t("Click predefined reason
"), + content: "Click predefined reason
", position: "bottom" }, { trigger: ".popup-confirm-cancellation .confirm", - content: _t("Click confirm button"), + content: "
Click confirm button
", position: "bottom" } ]); diff --git a/pos_order_cancel/static/src/js/widgets.js b/pos_order_cancel/static/src/js/widgets.js index 174e8b2f12..b183dd23ed 100644 --- a/pos_order_cancel/static/src/js/widgets.js +++ b/pos_order_cancel/static/src/js/widgets.js @@ -8,7 +8,6 @@ odoo.define('pos_order_cancel.widgets', function (require) { var core = require('web.core'); var PopupWidget = require('point_of_sale.popups'); var PosBaseWidget = require('point_of_sale.BaseWidget'); - var Model = require('web.DataModel'); var QWeb = core.qweb; var _t = core._t; diff --git a/pos_order_cancel/views/pos_config_view.xml b/pos_order_cancel/views/pos_config_view.xml index 19b83154bf..9663247ca4 100644 --- a/pos_order_cancel/views/pos_config_view.xml +++ b/pos_order_cancel/views/pos_config_view.xml @@ -1,15 +1,23 @@Click table
"), + content: "Click table
", position: "bottom" } ); diff --git a/pos_order_cancel_restaurant/static/src/js/widgets.js b/pos_order_cancel_restaurant/static/src/js/widgets.js index 1ec8f5dbf3..cf397c6070 100644 --- a/pos_order_cancel_restaurant/static/src/js/widgets.js +++ b/pos_order_cancel_restaurant/static/src/js/widgets.js @@ -10,7 +10,6 @@ odoo.define('pos_order_cancel_restaurant.widgets', function (require) { var PosBaseWidget = require('point_of_sale.BaseWidget'); var PosOrderCancelWidget = require('pos_order_cancel.widgets'); - var Model = require('web.DataModel'); var QWeb = core.qweb; var _t = core._t; diff --git a/pos_order_cancel_restaurant/views/views.xml b/pos_order_cancel_restaurant/views/views.xml index 2ebab2cb00..234bf4273f 100644 --- a/pos_order_cancel_restaurant/views/views.xml +++ b/pos_order_cancel_restaurant/views/views.xml @@ -1,13 +1,20 @@