|
@ -29,6 +29,7 @@ class LoanIssue(models.Model): |
|
|
subscription_end_date = fields.Date(string="End date subscription period") |
|
|
subscription_end_date = fields.Date(string="End date subscription period") |
|
|
user_id = fields.Many2one('res.users', |
|
|
user_id = fields.Many2one('res.users', |
|
|
string="Responsible") |
|
|
string="Responsible") |
|
|
|
|
|
loan_start_date = fields.Date(string="Loan start date") |
|
|
term_date = fields.Date(string="Term date") |
|
|
term_date = fields.Date(string="Term date") |
|
|
loan_term = fields.Float(string="Duration of the loan in month") |
|
|
loan_term = fields.Float(string="Duration of the loan in month") |
|
|
rate = fields.Float(string="Interest rate") |
|
|
rate = fields.Float(string="Interest rate") |
|
@ -90,11 +91,6 @@ class LoanIssue(models.Model): |
|
|
max_amount = self.max_amount_person - already_subscribed |
|
|
max_amount = self.max_amount_person - already_subscribed |
|
|
return max_amount |
|
|
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 |
|
|
@api.multi |
|
|
def get_web_issues(self, is_company): |
|
|
def get_web_issues(self, is_company): |
|
|
bond_issues = self.search([ |
|
|
bond_issues = self.search([ |
|
|