houssine
4 years ago
2 changed files with 53 additions and 9 deletions
-
18easy_my_coop_loan_account/models/interest_line.py
-
44easy_my_coop_loan_account/models/loan_issue_line.py
@ -0,0 +1,18 @@ |
|||
# Copyright 2019 Coop IT Easy SCRL fs |
|||
# Houssine BAKKALI <houssine@coopiteasy.be> |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from odoo import api, models |
|||
|
|||
|
|||
class LoanInterestLine(models.Model): |
|||
_inherit = "loan.interest.line" |
|||
|
|||
@api.model |
|||
def _generate_loan_reimbursement_fy(self): |
|||
#TODO get fiscal year begin and end dates |
|||
interest_lines = self.search([('due_date', '<=', ''), |
|||
('due_date', '<=', ) |
|||
]) |
|||
for line in interest_lines: |
|||
print() |
Write
Preview
Loading…
Cancel
Save
Reference in new issue