From eebec20fb090e4065b901eedd737916ce3ec2dc2 Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 4 Dec 2020 13:42:53 +0100 Subject: [PATCH] [IMP] code move to wizard --- easy_my_coop_loan_account/models/interest_line.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/easy_my_coop_loan_account/models/interest_line.py b/easy_my_coop_loan_account/models/interest_line.py index a416d47..29e50ae 100644 --- a/easy_my_coop_loan_account/models/interest_line.py +++ b/easy_my_coop_loan_account/models/interest_line.py @@ -129,19 +129,6 @@ class LoanInterestLine(models.Model): line.write({"loan_due_move": move.id, "state": "due"}) - @api.model - def _generate_move_line_debt_end_fy(self): - fy = self.env["account.fiscal.year"].get_next_fiscal_year() - date = fy.date_from - relativedelta(days=1) - if fy: - interest_lines = self.search([ - ('due_date', '>=', fy.date_from), - ('due_date', '<=', fy.date_to), - ('due_loan_amount', '>', 0), - ]) - - interest_lines.generate_loan_due_fy(date) - @api.model def _generate_payment_move(self): # TODO configure how many days before you want generate the move lines