diff --git a/easy_my_coop_loan_account/models/__init__.py b/easy_my_coop_loan_account/models/__init__.py index 8a8d496..cc5780a 100644 --- a/easy_my_coop_loan_account/models/__init__.py +++ b/easy_my_coop_loan_account/models/__init__.py @@ -1,4 +1,5 @@ from . import company from . import loan_issue_line +from . import interest_line from . import account_move from . import account_fiscal_year diff --git a/easy_my_coop_loan_account/models/interest_line.py b/easy_my_coop_loan_account/models/interest_line.py index 6596681..e984d2f 100644 --- a/easy_my_coop_loan_account/models/interest_line.py +++ b/easy_my_coop_loan_account/models/interest_line.py @@ -86,7 +86,7 @@ class LoanInterestLine(models.Model): for line in self: if not self.loan_due_fy_move: - company = line.line.company_id + company = line.company_id move = line.create_move(date) deb_vals = line.get_move_line(line.partner_id)