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. 7
      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_request_payment()
line.action_paid() line.action_paid()
# loan_issue.compute_loan_interest()
loan_issue.compute_loan_interest()

7
easy_my_coop_loan/views/loan_view.xml

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

Loading…
Cancel
Save