Debian Codegraph @

addons/l10n_in/views/account_payment_views.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <record id="view_account_payment_form_inherit_l10n_in_withholding" model="ir.ui.view">
4 <field name="name">account.payment.form.inherit.l10n_in_withholding</field>
5 <field name="model">account.payment</field>
6 <field name="inherit_id" ref="account.view_account_payment_form"/>
7 <field name="arch" type="xml">
8 <xpath expr="//header" position="inside">
9 <button name="%(l10n_in_withholding_entry_form_action)d" string="TDS Entry" type="action" class="btn btn-secondary float-end"
10 invisible="country_code != 'IN' or not l10n_in_tds_feature_enabled or state not in ('in_process', 'paid') or is_reconciled"/>
11 </xpath>
12 <xpath expr="//div[@name='button_box']" position="inside">
13 <button name="action_l10n_in_withholding_entries"
14 class="oe_stat_button"
15 type="object"
16 icon="fa-list-alt"
17 invisible="not l10n_in_tds_feature_enabled or not l10n_in_withhold_move_ids">
18 <div class="o_field_widget o_stat_info">
19 <span class="o_stat_text">TDS</span>
20 <span class="o_stat_value"><field name="l10n_in_total_withholding_amount"/></span>
21 </div>
22 </button>
23 </xpath>
24 </field>
25 </record>
26 </odoo>