Using Odoo 15 and python xmlrpc for API
here is my problem: I have a created payment for which I store the id. Then, when i create the invoice that corresponds, I want to be able to add this specific outstanding credit of the customer through API just like this "Ajouter" (Add) button does. ("crédits en circulation" is outstanding credits):
How would I do with python and xml-rpc tu simulate the use of this button for a specific payment (with its id)?
Note: For our sales workflow we have to create payments straight away and invoices later so I can't create the payment when creating the invoice