Here is the issue I have right?
[NOTE] this is on odoo14
I have a js file that calls a function in python using rpc and it receives the return object; which is perfect.
Snippet of the JS function:
this.rpc({
model: 'atm.transaction',
method: 'do_payment_transaction',
args: [customer_id],
}).then(function (data)
{
console.log("Response of payment",data)
});
The python function on the other hand initiates a request to a third party API; This third party API does its stuff and calls my route which I created under controllers.
I want my function that is inside my route in the controller to call a js function.[This is my main problem].
Any insights will be much appreciated.