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?
The code that makes 'the account move' is mentioned by @zbik.
Other than copy-pasting the code, you can just trigger account voucher workflow (from create until posted). What you need to do is to fill necessary data (just see the account voucher view for payment, for example) and trigger the workflow.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/16/14, 10:35 AM|
|Seen: 652 times|
|Last updated: 3/16/15, 8:10 AM|