Hello, I've been trying to override what the payEvent function does. This function is on the payment_form.js in the payment module payment/static/src/js. Here is the code I'm using:
odoo.define('test_overriding.test', function (require) ) {
"use strict";
var Payment_form = require('payment.payment_form');
Payment_form.include({
payEvent: function(ev){
console.log("test")
}
});
});
The problem is that when I go to the instance of odoo it gives me a Missing dependencies on the payment.payment_form
Any guidance would be helpful, thanks in advance.
Note: I'm using odoo v11