Hi, Can someone help me please?
I have two models created:
Model A: Loan
payments_id = fields.One2Many('loan.payments', 'loan_id', 'Payments')
Model B: Loan Payments
loan_id = fields.Many2One('loan', 'Loan')
Loan Description: XXXYYYZZZ
Loan Amount = 400.000
Description | Capitalization | Principal | Interest | Payment | Next Amount |
1 | 400.000 | 20.000 | 20 | 20.020 | 380.000 |
2 | 380.000 | 20.000 | 20 | 20.020 | 360.000 |
3 | 360.000 | 20.000 | 20 | 20.02 | 340.000 |