From 7909fa0e2f827b17713e8d4953536507189cf5f1 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Wed, 9 Dec 2020 18:09:11 +0100 Subject: [PATCH] [ADD] emc_loan: gross interest rate --- easy_my_coop_loan/demo/coop.xml | 1 + easy_my_coop_loan/models/loan.py | 5 +++-- easy_my_coop_loan/views/loan_view.xml | 8 +++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/easy_my_coop_loan/demo/coop.xml b/easy_my_coop_loan/demo/coop.xml index 5dd24d4..8979cab 100644 --- a/easy_my_coop_loan/demo/coop.xml +++ b/easy_my_coop_loan/demo/coop.xml @@ -13,6 +13,7 @@ 0.03 + 0.4 100 4000 10000 diff --git a/easy_my_coop_loan/models/loan.py b/easy_my_coop_loan/models/loan.py index 0e686c5..c2f74af 100644 --- a/easy_my_coop_loan/models/loan.py +++ b/easy_my_coop_loan/models/loan.py @@ -33,7 +33,9 @@ class LoanIssue(models.Model): loan_start_date = fields.Date(string="Loan start date") term_date = fields.Date(string="Term date") loan_term = fields.Float(string="Duration of the loan in month") - rate = fields.Float(string="Interest rate") + rate = fields.Float(string="Net Interest rate") + gross_rate = fields.Float(string="Gross Interest rate") + taxes_rate = fields.Float(string="Taxes on interest", required=True) face_value = fields.Monetary( string="Facial value", currency_field="company_currency_id", @@ -100,7 +102,6 @@ class LoanIssue(models.Model): by_company = fields.Boolean(string="By company") by_individual = fields.Boolean(string="By individuals") display_on_website = fields.Boolean(sting="Display on website") - taxes_rate = fields.Float(string="Taxes on interest", required=True) @api.multi def get_max_amount(self, partner): diff --git a/easy_my_coop_loan/views/loan_view.xml b/easy_my_coop_loan/views/loan_view.xml index a262cad..c5254bb 100644 --- a/easy_my_coop_loan/views/loan_view.xml +++ b/easy_my_coop_loan/views/loan_view.xml @@ -12,6 +12,7 @@ + @@ -87,11 +88,16 @@ -