Odoo18-Base/addons/l10n_in_withholding/views/account_move_views.xml
2025-01-06 10:57:38 +07:00

44 lines
2.5 KiB
XML

<odoo>
<record id="account_move_view_form_inherit_l10n_in_withholding" model="ir.ui.view">
<field name="name">account.move.form.inherit.l10n_in_withholding</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="%(l10n_in_withholding_entry_form_action)d" string="TDS Entry" type="action" class="btn btn-secondary float-end"
invisible="country_code != 'IN' or move_type not in ('out_invoice', 'in_invoice', 'out_refund', 'in_refund') or state != 'posted'"/>
<button name="action_l10n_in_apply_higher_tax" string="Apply Higher TCS" type="object" class="btn btn-secondary float-end"
invisible="not l10n_in_display_higher_tcs_button"/>
</xpath>
<xpath expr="//div[@name='button_box']" position="inside">
<button name="action_l10n_in_withholding_entries"
class="oe_stat_button"
type="object"
icon="fa-list-alt"
invisible="not l10n_in_withhold_move_ids">
<div class="o_field_widget o_stat_info">
<span class="o_stat_text">TDS</span>
<span class="o_stat_value"><field name="l10n_in_total_withholding_amount"/></span>
</div>
</button>
</xpath>
<xpath expr="//notebook/page[@id='aml_tab']" position="before">
<page name="withholding_tab" string="TDS Information" invisible="not l10n_in_withholding_line_ids">
<field name="l10n_in_withholding_line_ids" nolabel="1" colspan="4">
<list editable="bottom" string="TDS Information">
<field name="tax_ids" string="Tax" widget="many2many_tags"/>
<field name="price_subtotal" string="Base Amount" sum="Total"/>
<field name="l10n_in_withhold_tax_amount" string="TDS Amount" sum="Total"/>
</list>
</field>
</page>
</xpath>
<xpath expr="//sheet" position="before">
<div class="alert alert-warning" role="alert" invisible="not l10n_in_tcs_tds_warning">
<field name="l10n_in_tcs_tds_warning" readonly="1"/>
</div>
</xpath>
</field>
</record>
</odoo>