summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/static/src/js/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/point_of_sale/static/src/js/utils.js')
-rw-r--r--addons/point_of_sale/static/src/js/utils.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/src/js/utils.js b/addons/point_of_sale/static/src/js/utils.js
index 26442ef776b..7aa7b35e93d 100644
--- a/addons/point_of_sale/static/src/js/utils.js
+++ b/addons/point_of_sale/static/src/js/utils.js
@@ -1,6 +1,8 @@
odoo.define('point_of_sale.utils', function (require) {
'use strict';
+ const { EventBus } = owl.core;
+
function getFileAsText(file) {
return new Promise((resolve, reject) => {
if (!file) {
@@ -43,5 +45,5 @@ odoo.define('point_of_sale.utils', function (require) {
);
}
- return { getFileAsText, nextFrame, isRpcError };
+ return { getFileAsText, nextFrame, isRpcError, posbus: new EventBus() };
});