I have an invoice of type out_invoice which is already validated.
I want to programmatically create an account move and account move lines so that the invoice will be partially paid.
How can I construct my account move and account move lines to do that?