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 @@ + + + +