41 lines
1.6 KiB
XML
41 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- A dedicated list of the loan entries, ordered by date rather than by
|
|
entry number: the loan is read chronologically, and the numbering of
|
|
a journal says nothing about when an installment falls due. -->
|
|
|
|
<record id="dn_loan_move_list_view" model="ir.ui.view">
|
|
<field name="name">dn.loan.move.list</field>
|
|
<field name="model">account.move</field>
|
|
<field name="inherit_id" ref="account.view_move_tree"/>
|
|
<field name="mode">primary</field>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//list" position="attributes">
|
|
<attribute name="default_order">date, name</attribute>
|
|
</xpath>
|
|
<xpath expr="//list" position="inside">
|
|
<field name="is_loan_payment_move" optional="show"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="dn_loan_move_form_view" model="ir.ui.view">
|
|
<field name="name">dn.loan.move.form</field>
|
|
<field name="model">account.move</field>
|
|
<field name="inherit_id" ref="account.view_move_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//header" position="inside">
|
|
<button name="action_open_dn_loan" string="Loan" type="object"
|
|
class="btn-secondary"
|
|
invisible="not dn_loan_id"
|
|
groups="account.group_account_readonly"/>
|
|
</xpath>
|
|
<xpath expr="//sheet" position="inside">
|
|
<field name="dn_loan_id" invisible="not dn_loan_id" readonly="1"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|