Browse Source
[IMP] create views for loan interest lines
[IMP] create views for loan interest lines
[IMP] add field payment date for loan payment reception [IMP] if state is not ongoing we can't add new loan. [IMP] add fields to the viewspull/134/head
houssine
4 years ago
6 changed files with 128 additions and 8 deletions
-
6easy_my_coop_loan/__manifest__.py
-
26easy_my_coop_loan/models/interest_line.py
-
7easy_my_coop_loan/models/loan_issue_line.py
-
94easy_my_coop_loan/views/loan_interest_lines_view.xml
-
1easy_my_coop_loan/views/loan_line_view.xml
-
2easy_my_coop_loan/views/loan_view.xml
@ -0,0 +1,94 @@ |
|||
<odoo> |
|||
<record id="action_loan_interest_lines" model="ir.actions.act_window"> |
|||
<field name="name">Loan interest lines</field> |
|||
<field name="res_model">loan.interest.line</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,form</field> |
|||
</record> |
|||
|
|||
<record id="loan_interest_line_view_tree" model="ir.ui.view"> |
|||
<field name="name">loan.interest.line.view.tree</field> |
|||
<field name="model">loan.interest.line</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Loan interest lines"> |
|||
<field name="issue_line" invisible="True"/> |
|||
<field name="name"/> |
|||
<field name="amount"/> |
|||
<field name="accrued_amount"/> |
|||
<field name="interest"/> |
|||
<field name="accrued_interest"/> |
|||
<field name="net_interest"/> |
|||
<field name="taxes_amount"/> |
|||
<field name="due_amount"/> |
|||
<field name="due_date"/> |
|||
<field name="state"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="view_loan_interest_line_form" model="ir.ui.view"> |
|||
<field name="name">loan.interest.line.form</field> |
|||
<field name="model">loan.interest.line</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Loan interest line"> |
|||
<header> |
|||
<field name="state" widget="statusbar"/> |
|||
</header> |
|||
<sheet> |
|||
<group> |
|||
<group> |
|||
<field name="issue_line"/> |
|||
<field name="name"/> |
|||
<field name="amount"/> |
|||
<field name="accrued_amount"/> |
|||
<field name="due_amount"/> |
|||
<field name="due_date"/> |
|||
</group> |
|||
<group> |
|||
<field name="interest"/> |
|||
<field name="net_interest"/> |
|||
<field name="taxes_amount"/> |
|||
<field name="accrued_interest"/> |
|||
<field name="accrued_net_interest"/> |
|||
</group> |
|||
</group> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="view_loan_interest_line_filter" model="ir.ui.view"> |
|||
<field name="name">Loans interest lines Search</field> |
|||
<field name="model">loan.interest.line</field> |
|||
<field name="arch" type="xml"> |
|||
<search string="Search Loan interest lines"> |
|||
<field name="name"/> |
|||
<field name="partner_id"/> |
|||
<field name="loan_issue_id"/> |
|||
<separator/> |
|||
<filter string="Draft" name="state_draft" |
|||
domain="[('state','=','draft')]"/> |
|||
<filter string="Due" name="state_due" |
|||
domain="[('state','=','due')]"/> |
|||
<filter string="Requested" name="state_requested" |
|||
domain="[('state','=','requested')]"/> |
|||
<filter string="Donation" name="state_donation" |
|||
domain="[('state','=','donation')]"/> |
|||
<filter string="Paid" name="state_paid" |
|||
domain="[('state','=','paid')]"/> |
|||
<group expand="0" name="group_by" string="Group By"> |
|||
<filter name="loan_issue_id" string="Loan issue" |
|||
context="{'group_by' : 'loan_issue_id'}"/> |
|||
<filter name="partner_id" string="Loaner" |
|||
context="{'group_by' : 'partner_id'}"/> |
|||
<filter name="issue_line" string="Loans" |
|||
context="{'group_by' : 'issue_line'}"/> |
|||
<filter name="due_date" string="Due Date" |
|||
context="{'group_by': 'due_date'}"/> |
|||
<filter name="state" string="State" |
|||
context="{'group_by': 'state'}"/> |
|||
</group> |
|||
</search> |
|||
</field> |
|||
</record> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue