From df58b823ffc2c43eda945f8f278c23a9e6f2b307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Thu, 23 Apr 2015 17:59:13 +0200 Subject: [PATCH] [IMP] point_of_sale: add simple 'alert' popup --- addons/point_of_sale/static/src/js/popups.js | 2 ++ addons/point_of_sale/static/src/xml/pos.xml | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/addons/point_of_sale/static/src/js/popups.js b/addons/point_of_sale/static/src/js/popups.js index 3fc7b089795..c8f37dbe58f 100644 --- a/addons/point_of_sale/static/src/js/popups.js +++ b/addons/point_of_sale/static/src/js/popups.js @@ -11,6 +11,7 @@ var gui = require('point_of_sale.gui'); var PopupWidget = PosBaseWidget.extend({ + template: 'PopupWidget', init: function(parent, args) { this._super(parent, args); this.options = {}; @@ -84,6 +85,7 @@ var PopupWidget = PosBaseWidget.extend({ click_item: function(){}, click_numad: function(){}, }); +gui.define_popup({name:'alert', widget: PopupWidget}); var ErrorPopupWidget = PopupWidget.extend({ template:'ErrorPopupWidget', diff --git a/addons/point_of_sale/static/src/xml/pos.xml b/addons/point_of_sale/static/src/xml/pos.xml index 6633959aa32..b2301fc8e1f 100644 --- a/addons/point_of_sale/static/src/xml/pos.xml +++ b/addons/point_of_sale/static/src/xml/pos.xml @@ -807,6 +807,20 @@ + + + +