Browse Source

[IMP] add loan start date field

pull/48/head
houssine 5 years ago
committed by robin.keunen
parent
commit
e8feffa777
  1. 6
      easy_my_coop_loan/models/loan.py
  2. 2
      easy_my_coop_loan/views/loan_view.xml

6
easy_my_coop_loan/models/loan.py

@ -29,6 +29,7 @@ class LoanIssue(models.Model):
subscription_end_date = fields.Date(string="End date subscription period")
user_id = fields.Many2one('res.users',
string="Responsible")
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")
@ -90,11 +91,6 @@ class LoanIssue(models.Model):
max_amount = self.max_amount_person - already_subscribed
return max_amount
# @api.multi
# def toggle_display(self):
# for loan_issue in self:
# loan_issue.display_on_website = not loan_issue.display_on_website
@api.multi
def get_web_issues(self, is_company):
bond_issues = self.search([

2
easy_my_coop_loan/views/loan_view.xml

@ -8,6 +8,7 @@
<field name="name" />
<field name="subscription_start_date" />
<field name="subscription_end_date" />
<field name="loan_start_date" />
<field name="term_date" />
<field name="loan_term" />
<field name="rate" />
@ -86,6 +87,7 @@
</div>
<field name="subscription_start_date" />
<field name="subscription_end_date" />
<field name="loan_start_date" />
<field name="term_date" />
<field name="loan_term" />
<field name="interest_payment" widget="selection" />

Loading…
Cancel
Save