1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/account_accountant/views/account_move_views.xml
2024-12-10 09:04:09 +07:00

88 lines
4.5 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="view_move_line_tree" model="ir.ui.view">
<field name="name">account.move.line.tree</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_tree"/>
<field name="mode">extension</field>
<field name="arch" type="xml">
<xpath expr="//tree" position="attributes">
<attribute name="js_class">account_move_line_list</attribute>
</xpath>
<xpath expr="//tree" position="inside">
<header>
<button name="action_reconcile" type="object" string="Reconcile" groups="account.group_account_user"/>
</header>
<field name="is_account_reconcile" column_invisible="True"/>
<field name="has_deferred_moves" column_invisible="True"/>
</xpath>
<xpath expr="//tree/field[@name='matching_number']" position="attributes">
<attribute name="widget">matching_link_widget</attribute>
</xpath>
</field>
</record>
<record id="view_move_form_inherit" model="ir.ui.view">
<field name="name">account.move.form.inherit</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@id='other_tab']//field[@name='fiscal_position_id']" position="after">
<field name="inalterable_hash" groups="base.group_no_one"/>
</xpath>
<xpath expr="//page[@id='other_tab_entry']//field[@name='company_id']" position="after">
<field name="inalterable_hash" groups="base.group_no_one"/>
</xpath>
<xpath expr="//tree/field[@name='analytic_distribution']" position="after">
<field name="has_abnormal_deferred_dates" column_invisible="1"/>
<field name="deferred_start_date" optional="hide" decoration-warning="has_abnormal_deferred_dates"/>
<field name="deferred_end_date" optional="hide" decoration-warning="has_abnormal_deferred_dates"/>
</xpath>
<xpath expr="//div[@name='button_box']" position="inside">
<button name="action_open_bank_reconciliation_widget_statement"
class="oe_stat_button"
icon="fa-bars"
type="object"
invisible="not statement_id or state == 'cancel'">
<div class="o_stat_info">
<span class="o_stat_text">Bank Statement</span>
</div>
</button>
<button name="action_open_bank_reconciliation_widget"
class="oe_stat_button"
icon="fa-bars"
type="object"
invisible="move_type != 'entry' or not id or not statement_line_id or state == 'cancel'">
<div class="o_stat_info">
<span class="o_stat_text">1 Bank Transaction</span>
</div>
</button>
<field name="deferred_move_ids" invisible="1"/>
<field name="deferred_original_move_ids" invisible="1"/>
<field name="deferred_entry_type" invisible="1"/>
<button name="open_deferred_entries"
class="oe_stat_button"
icon="fa-bars"
type="object"
invisible="not deferred_move_ids"
string="Deferred Entries">
</button>
<button name="open_deferred_original_entry"
class="oe_stat_button"
icon="fa-bars"
type="object"
invisible="deferred_entry_type == 'revenue' or not deferred_original_move_ids"
string="Related Purchase(s)">
</button>
<button name="open_deferred_original_entry"
class="oe_stat_button"
icon="fa-bars"
type="object"
invisible="deferred_entry_type == 'expense' or not deferred_original_move_ids"
string="Related Sale(s)">
</button>
</xpath>
</field>
</record>
</odoo>