You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
4.1 KiB
94 lines
4.1 KiB
<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>
|