diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/point_of_sale/static/src/js/debug_manager.js | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/point_of_sale/static/src/js/debug_manager.js')
| -rw-r--r-- | addons/point_of_sale/static/src/js/debug_manager.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/point_of_sale/static/src/js/debug_manager.js b/addons/point_of_sale/static/src/js/debug_manager.js new file mode 100644 index 00000000..bcc9f608 --- /dev/null +++ b/addons/point_of_sale/static/src/js/debug_manager.js @@ -0,0 +1,20 @@ +odoo.define('point_of_sale.DebugManager.Backend', function(require) { + 'use strict'; + + const { _t } = require('web.core'); + const DebugManager = require('web.DebugManager.Backend'); + + DebugManager.include({ + /** + * Runs the JS (desktop) tests + */ + perform_pos_js_tests() { + this.do_action({ + name: _t('JS Tests'), + target: 'new', + type: 'ir.actions.act_url', + url: '/pos/ui/tests?mod=*', + }); + }, + }); +}); |
