From c20f42c6a05d5819c06a12320ce0bf3854c2d0d2 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Tue, 15 Oct 2019 17:16:59 +0200 Subject: [PATCH 1/3] [FIX] emc: account in demo data already exists --- easy_my_coop/demo/coop.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easy_my_coop/demo/coop.xml b/easy_my_coop/demo/coop.xml index f53ab7d..d9e5a96 100644 --- a/easy_my_coop/demo/coop.xml +++ b/easy_my_coop/demo/coop.xml @@ -34,9 +34,9 @@ - BE68539007547034 - Bank - + FR7630001007941234567890185 + Bank + From b40ba09f0e44b108dd1e5c5a2e3b0347ea0a6ade Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Tue, 15 Oct 2019 17:17:49 +0200 Subject: [PATCH 2/3] [ADD] emc_loan: set Loan label on res partner --- easy_my_coop_loan/models/partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_my_coop_loan/models/partner.py b/easy_my_coop_loan/models/partner.py index 5b6900d..7b6a2f2 100644 --- a/easy_my_coop_loan/models/partner.py +++ b/easy_my_coop_loan/models/partner.py @@ -6,4 +6,4 @@ class ResPartner(models.Model): loan_line_ids = fields.One2many('loan.issue.line', 'partner_id', - string="Name") + string="Loans") From 51dcfccac544ffd4b82e4d8f5d08ab726941b974 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Tue, 15 Oct 2019 17:18:24 +0200 Subject: [PATCH 3/3] [IMP] emc_loan: _description on models --- easy_my_coop_loan/models/interest_line.py | 1 + easy_my_coop_loan/models/loan.py | 4 +++- easy_my_coop_loan/models/loan_issue_line.py | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/easy_my_coop_loan/models/interest_line.py b/easy_my_coop_loan/models/interest_line.py index 3e12e35..c934283 100644 --- a/easy_my_coop_loan/models/interest_line.py +++ b/easy_my_coop_loan/models/interest_line.py @@ -3,6 +3,7 @@ from odoo import fields, models class LoanInterestLine(models.Model): _name = 'loan.interest.line' + _description = "Loan Interest Line" name = fields.Integer(string="Year", required=True) diff --git a/easy_my_coop_loan/models/loan.py b/easy_my_coop_loan/models/loan.py index b762fc5..f2e44f2 100644 --- a/easy_my_coop_loan/models/loan.py +++ b/easy_my_coop_loan/models/loan.py @@ -7,6 +7,7 @@ _logger = logging.getLogger(__name__) class LoanTerm(models.Model): _name = 'loan.term' + _description = 'Loan Term' name = fields.Char(string="Name", required=True) @@ -16,6 +17,7 @@ class LoanTerm(models.Model): class LoanIssue(models.Model): _name = 'loan.issue' + _description = 'Loan Issue' @api.multi def _compute_subscribed_amount(self): @@ -47,7 +49,7 @@ class LoanIssue(models.Model): string="Maximum amount per subscription", currency_field='company_currency_id') subscribed_amount = fields.Monetary(string="Subscribed amount", - compute="_compute_subscribed_amount", + compute="_compute_subscribed_amount", currency_field='company_currency_id') interest_payment = fields.Selection([('end', 'End'), ('yearly', 'Yearly')], diff --git a/easy_my_coop_loan/models/loan_issue_line.py b/easy_my_coop_loan/models/loan_issue_line.py index f23193c..538d075 100644 --- a/easy_my_coop_loan/models/loan_issue_line.py +++ b/easy_my_coop_loan/models/loan_issue_line.py @@ -6,6 +6,7 @@ from odoo import api, fields, models class LoanIssueLine(models.Model): _name = 'loan.issue.line' + _description = 'Loan Issue Line' _order = 'date desc, id' @api.multi