Browse Source

[ADD] loan issue on issue line views

pull/33/head
robin.keunen 5 years ago
parent
commit
840faf8f44
  1. 2
      easy_my_coop_loan/tests/test_emc_loan.py
  2. 5
      easy_my_coop_loan/views/loan_view.xml

2
easy_my_coop_loan/tests/test_emc_loan.py

@ -106,5 +106,5 @@ class EMCLoanCase(EMCBaseCase):
line.action_request_payment()
line.action_paid()
# loan_issue.compute_loan_interest()
loan_issue.compute_loan_interest()

5
easy_my_coop_loan/views/loan_view.xml

@ -26,6 +26,7 @@
<field name="arch" type="xml">
<form string="Loan issue">
<header>
<!-- todo check access rights -->
<button name="action_confirm" string="Confirm" type="object" states="draft"
groups="easy_my_coop.group_easy_my_coop_manager"/>
<button name="action_cancel" string="Cancel" type="object" states="draft,ongoing"
@ -139,6 +140,7 @@
<field name="arch" type="xml">
<tree string="Loans">
<field name="name"/>
<field name="loan_issue_id"/>
<field name="partner_id"/>
<field name="loan_issue_id"/>
<field name="quantity"/>
@ -172,6 +174,7 @@
<sheet>
<group>
<group>
<field name="loan_issue_id"/>
<field name="name" />
<field name="quantity" />
<field name="face_value" />
@ -183,7 +186,7 @@
</group>
</group>
<notebook>
<page string="Interst lines">
<page string="Interest lines">
<field name="interest_lines">
<tree delete="false" create="false">
<field name="name" />

Loading…
Cancel
Save