|
@ -7,6 +7,7 @@ _logger = logging.getLogger(__name__) |
|
|
|
|
|
|
|
|
class LoanTerm(models.Model): |
|
|
class LoanTerm(models.Model): |
|
|
_name = 'loan.term' |
|
|
_name = 'loan.term' |
|
|
|
|
|
_description = 'Loan Term' |
|
|
|
|
|
|
|
|
name = fields.Char(string="Name", |
|
|
name = fields.Char(string="Name", |
|
|
required=True) |
|
|
required=True) |
|
@ -16,6 +17,7 @@ class LoanTerm(models.Model): |
|
|
|
|
|
|
|
|
class LoanIssue(models.Model): |
|
|
class LoanIssue(models.Model): |
|
|
_name = 'loan.issue' |
|
|
_name = 'loan.issue' |
|
|
|
|
|
_description = 'Loan Issue' |
|
|
|
|
|
|
|
|
@api.multi |
|
|
@api.multi |
|
|
def _compute_subscribed_amount(self): |
|
|
def _compute_subscribed_amount(self): |
|
@ -47,7 +49,7 @@ class LoanIssue(models.Model): |
|
|
string="Maximum amount per subscription", |
|
|
string="Maximum amount per subscription", |
|
|
currency_field='company_currency_id') |
|
|
currency_field='company_currency_id') |
|
|
subscribed_amount = fields.Monetary(string="Subscribed amount", |
|
|
subscribed_amount = fields.Monetary(string="Subscribed amount", |
|
|
compute="_compute_subscribed_amount", |
|
|
|
|
|
|
|
|
compute="_compute_subscribed_amount", |
|
|
currency_field='company_currency_id') |
|
|
currency_field='company_currency_id') |
|
|
interest_payment = fields.Selection([('end', 'End'), |
|
|
interest_payment = fields.Selection([('end', 'End'), |
|
|
('yearly', 'Yearly')], |
|
|
('yearly', 'Yearly')], |
|
|