I tried to super the function validateOrder(isForceValidate)...
var pos_model = require('point_of_sale.models');
const PaymentScreen = require('point_of_sale.PaymentScreen');
var models = pos_model.PosModel.prototype.models;
var rpc = require('web.rpc');
class PosScreen extends PaymentScreen {
constructor(isForceValidate) {
super(isForceValidate);
this.template = 'PaymentScreen';
}
async validateOrder(isForceValidate) {
// var self = this;
super.validateOrder(isForceValidate);
console.log("validate==========================>")
}
}
but the console is not working when click validate button...how to super the function.