Hi,
I have used the following code to close the popup I have defined.
var PosBaseWidget = require('point_of_sale.BaseWidget');
var CustomWidget = PosBaseWidget.extend({
template: 'CustomWidget',
events: {
'click .button.confirm': 'click_confirm',
}, click_confirm: function(){
var self = this;
this.gui.close_popup();
}});
But it raise an error as follows:
Uncaught TypeError: this.current_popup.close is not a function
How to fix this