Browse Source

⬆️1️⃣2️⃣ Fixed js-tour

pull/155/head
fedoranvar 5 years ago
committed by Vincent Van Rossem
parent
commit
604b7c945a
  1. 9
      pos_keyboard/README.rst
  2. 5
      pos_keyboard/__manifest__.py
  3. 7
      pos_keyboard/static/src/js/test_pos_keyboard.js

9
pos_keyboard/README.rst

@ -15,6 +15,7 @@ Contributors
------------ ------------
* `Ivan Yelizariev <https://it-projects.info/team/yelizariev>`__ * `Ivan Yelizariev <https://it-projects.info/team/yelizariev>`__
* `Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>`__ * `Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>`__
* `Kildebekov Anvar <https://it-projects.info/team/KildebekovAnvar>`__
Sponsors Sponsors
-------- --------
@ -24,7 +25,7 @@ Maintainers
----------- -----------
* `IT-Projects LLC <https://it-projects.info>`__ * `IT-Projects LLC <https://it-projects.info>`__
To get a guaranteed support you are kindly requested to purchase the module at `odoo apps store <https://apps.odoo.com/apps/modules/11.0/pos_keyboard/>`__.
To get a guaranteed support you are kindly requested to purchase the module at `odoo apps store <https://apps.odoo.com/apps/modules/12.0/pos_keyboard/>`__.
Thank you for understanding! Thank you for understanding!
@ -33,12 +34,12 @@ Maintainers
Further information Further information
=================== ===================
Demo: http://runbot.it-projects.info/demo/pos-addons/11.0
Demo: http://runbot.it-projects.info/demo/pos-addons/12.0
HTML Description: https://apps.odoo.com/apps/modules/11.0/pos_keyboard/
HTML Description: https://apps.odoo.com/apps/modules/12.0/pos_keyboard/
Usage instructions: `<doc/index.rst>`_ Usage instructions: `<doc/index.rst>`_
Changelog: `<doc/changelog.rst>`_ Changelog: `<doc/changelog.rst>`_
Tested on Odoo 10.0 78ba90d54826c2ba11626e9a89b142964db25e2f
Tested on Odoo 12.0 d177e8f53b01f5e09c9b49c945781b69baac7009

5
pos_keyboard/__manifest__.py

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2015 igallyamov <https://github.com/igallyamov> # Copyright 2015 igallyamov <https://github.com/igallyamov>
# Copyright 2016 ufaks <https://github.com/ufaks> # Copyright 2016 ufaks <https://github.com/ufaks>
# Copyright 2016-2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev> # Copyright 2016-2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2018 Ruslan Ronzhin <https://it-projects.info/team/rusllan> # Copyright 2018 Ruslan Ronzhin <https://it-projects.info/team/rusllan>
# Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/kolushovalexandr> # Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/kolushovalexandr>
# Copyright 2019 Kildebekov Anvar https://it-projects.info/team/kildebekov>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{ {
"name": """Keyboard support in Point Of Sale""", "name": """Keyboard support in Point Of Sale""",
@ -11,13 +11,14 @@
"category": "Point Of Sale", "category": "Point Of Sale",
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version={ODOO_BRANCH}", # "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version={ODOO_BRANCH}",
"images": ['images/keyboard.png'], "images": ['images/keyboard.png'],
"version": "10.0.1.1.4",
"version": "10.0.1.1.5",
"application": False, "application": False,
"author": "IT-Projects LLC, Ivan Yelizariev", "author": "IT-Projects LLC, Ivan Yelizariev",
"support": "apps@it-projects.info", "support": "apps@it-projects.info",
"website": "https://it-projects.info/team/yelizariev", "website": "https://it-projects.info/team/yelizariev",
"license": "LGPL-3", "license": "LGPL-3",
"price": 15.00, "price": 15.00,
"currency": "EUR", "currency": "EUR",

7
pos_keyboard/static/src/js/test_pos_keyboard.js

@ -1,4 +1,5 @@
/* Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/kolushovalexandr> /* Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/kolushovalexandr>
Copyright 2019 Kildebekov Anvar <https://it-projects.info/team/kildebekov>
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). */ License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). */
odoo.define('pos_keyboard.tour', function (require) { odoo.define('pos_keyboard.tour', function (require) {
"use strict"; "use strict";
@ -9,6 +10,10 @@ odoo.define('pos_keyboard.tour', function (require) {
function open_pos_neworder() { function open_pos_neworder() {
return [{ return [{
trigger: 'ul.o_menu_apps li.dropdown a.full',
content: _t("Show Apps Menu"),
position: 'bottom',
}, {
trigger: '.o_app[data-menu-xmlid="point_of_sale.menu_point_root"], .oe_menu_toggler[data-menu-xmlid="point_of_sale.menu_point_root"]', 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 <b>point of sale</b>? <i>Click here</i>."), content: _t("Ready to launch your <b>point of sale</b>? <i>Click here</i>."),
position: 'bottom', position: 'bottom',
@ -63,7 +68,7 @@ odoo.define('pos_keyboard.tour', function (require) {
trigger: '.username', trigger: '.username',
}, { }, {
content: "Make dummy action and simulate escape button clicking", content: "Make dummy action and simulate escape button clicking",
trigger: '.modal-dialog:not(".oe_hidden") p.title',
trigger: '.modal-dialog:not(".oe_hidden")',
run: function(){ run: function(){
simulate_keyup_event(27); simulate_keyup_event(27);
setTimeout(function () { setTimeout(function () {

Loading…
Cancel
Save