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.
65 lines
2.9 KiB
65 lines
2.9 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- Credit Details Tree view -->
|
|
<record id="credit_details_view_tree" model="ir.ui.view">
|
|
<field name="name">credit.details.view.tree</field>
|
|
<field name="model">credit.details</field>
|
|
<field name="priority">2</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Credit Amount" create="0">
|
|
<field name="customer_id"/>
|
|
<field name="credit_details_amount"/>
|
|
<field name="updated_amount"/>
|
|
<field name="_is_amount_updated" optional="hide"/>
|
|
<button name="action_update_account" class="oe_highlight"
|
|
invisible="_is_amount_updated"
|
|
string="Update With Accounting Entry"
|
|
type="object"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<!-- Credit Details form view -->
|
|
<record id="credit_details_view_form" model="ir.ui.view">
|
|
<field name="name">credit.details.form.view</field>
|
|
<field name="model">credit.details</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Customer credit details" create="0">
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="customer_id"/>
|
|
</group>
|
|
<group>
|
|
<field name="credit_amount" invisible="1"/>
|
|
<field name="debit_amount" invisible="1"/>
|
|
<field name="credit_details_amount"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page name="credit_details" string="Credit Details">
|
|
<field name="credit_details_ids">
|
|
<tree create="0">
|
|
<field name="amount"/>
|
|
<field name="previous_credit_amount"/>
|
|
<field name="approve_date"/>
|
|
<field name="updated_amount"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page name="debit_details" string="Debit Details">
|
|
<field name="debit_details_ids">
|
|
<tree create="0">
|
|
<field name="debit_amount"/>
|
|
<field name="previous_debit_amount"/>
|
|
<field name="approve_date"/>
|
|
<field name="updated_amount"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|