|
@ -35,7 +35,7 @@ |
|
|
<header> |
|
|
<header> |
|
|
<div class="alert alert-info" role="alert" |
|
|
<div class="alert alert-info" role="alert" |
|
|
style="height: 40px; margin-bottom:0px;" |
|
|
style="height: 40px; margin-bottom:0px;" |
|
|
invisible="[('state', 'not in', 'waiting for approval')]" |
|
|
invisible="state != 'waiting'" |
|
|
groups="advanced_loan_management.loan_management_group_user"> |
|
|
groups="advanced_loan_management.loan_management_group_user"> |
|
|
Waiting for approval from the manager |
|
|
Waiting for approval from the manager |
|
|
</div> |
|
|
</div> |
|
@ -55,11 +55,11 @@ |
|
|
string="Request" |
|
|
string="Request" |
|
|
type="object"/> |
|
|
type="object"/> |
|
|
<button name="action_loan_approved" class="oe_highlight" |
|
|
<button name="action_loan_approved" class="oe_highlight" |
|
|
invisible="state != 'waiting for approval'" |
|
|
invisible="state != 'waiting'" |
|
|
string="Approve" type="object" |
|
|
string="Approve" type="object" |
|
|
groups="advanced_loan_management.loan_management_group_manager"/> |
|
|
groups="advanced_loan_management.loan_management_group_manager"/> |
|
|
<button name="action_loan_rejected" class="oe_highlight" |
|
|
<button name="action_loan_rejected" class="oe_highlight" |
|
|
invisible="state != 'waiting for approval'" |
|
|
invisible="state != 'waiting'" |
|
|
string="Reject" type="object" |
|
|
string="Reject" type="object" |
|
|
groups="advanced_loan_management.loan_management_group_manager"/> |
|
|
groups="advanced_loan_management.loan_management_group_manager"/> |
|
|
<button name="action_disburse_loan" class="oe_highlight" |
|
|
<button name="action_disburse_loan" class="oe_highlight" |
|
@ -115,13 +115,13 @@ |
|
|
decoration-danger="state == 'unpaid'" |
|
|
decoration-danger="state == 'unpaid'" |
|
|
decoration-warning="state == 'invoiced'" |
|
|
decoration-warning="state == 'invoiced'" |
|
|
decoration-success="state == 'paid'"/> |
|
|
decoration-success="state == 'paid'"/> |
|
|
<field name="invoice" invisible="1"/> |
|
|
<field name="invoice" column_invisible="1"/> |
|
|
<button invisible="(invoice == True) or (state != 'unpaid') or (parent.state != 'disbursed')" |
|
|
<button invisible="(invoice == True) or (state != 'unpaid') or (parent.state != 'disbursed')" |
|
|
name="action_pay_emi" |
|
|
name="action_pay_emi" |
|
|
class="oe_highlight" |
|
|
class="oe_highlight" |
|
|
string="Pay" |
|
|
string="Pay" |
|
|
type="object"/> |
|
|
type="object"/> |
|
|
<button invisible="(invoice == False) or (parent.state != 'disbursed')" |
|
|
<button invisible="(invoice == False) or (parent.state != 'disbursed') or (state == 'paid')" |
|
|
name="action_view_invoice" |
|
|
name="action_view_invoice" |
|
|
class="oe_highlight" |
|
|
class="oe_highlight" |
|
|
string="View" |
|
|
string="View" |
|
@ -138,7 +138,7 @@ |
|
|
</group> |
|
|
</group> |
|
|
</page> |
|
|
</page> |
|
|
<page string="Loan rejection" |
|
|
<page string="Loan rejection" |
|
|
invisible="state == 'rejected'"> |
|
|
invisible="state != 'rejected'"> |
|
|
<field name="reject_reason" readonly="1"/> |
|
|
<field name="reject_reason" readonly="1"/> |
|
|
</page> |
|
|
</page> |
|
|
<page string="Accounting" |
|
|
<page string="Accounting" |
|
|