Browse Source

[IMP] emc_loan: _description on models

pull/26/head
robin.keunen 5 years ago
parent
commit
51dcfccac5
  1. 1
      easy_my_coop_loan/models/interest_line.py
  2. 4
      easy_my_coop_loan/models/loan.py
  3. 1
      easy_my_coop_loan/models/loan_issue_line.py

1
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)

4
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')],

1
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

Loading…
Cancel
Save