Right now I'm trying to call programmatically, from another model, the action 'action_register_payment' that exists in the invoice details page as a button called 'Register & Payment' (I'm not able to post images).
I want to call that method, to pass the information to the action_create_payments method of the account.payment.register model