Browse Source

[IMP] add payment info fields

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

2
easy_my_coop_loan/models/loan.py

@ -49,6 +49,8 @@ class LoanIssue(models.Model):
interest_payment = fields.Selection([('end', 'End'), interest_payment = fields.Selection([('end', 'End'),
('yearly', 'Yearly')], ('yearly', 'Yearly')],
string="Interest payment") string="Interest payment")
payment_date = fields.Date(string="Interest payment date")
yearly_payement_on = fields.Char(string="Yearly payment on")
loan_issue_lines = fields.One2many('loan.issue.line', loan_issue_lines = fields.One2many('loan.issue.line',
'loan_issue_id', 'loan_issue_id',
string="Loan issue lines") string="Loan issue lines")

2
easy_my_coop_loan/views/loan_view.xml

@ -86,6 +86,8 @@
<field name="term_date" /> <field name="term_date" />
<field name="loan_term" /> <field name="loan_term" />
<field name="interest_payment" widget="selection" /> <field name="interest_payment" widget="selection" />
<field name="payment_date" attrs="{'invisible':[('interest_payment','!=','end')]}" />
<field name="yearly_payement_on" attrs="{'invisible':[('interest_payment','!=','yearly')]}" />
</group> </group>
</group> </group>
<notebook> <notebook>

Loading…
Cancel
Save