Odoo – Add Payment and Balance Lines to Invoice

Put the code below these lines in Invoice Template (qWeb):
Total

Here is the code:

Payments

Balance Owing