| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="invoice_form_inherit_l10n_in" model="ir.ui.view"> |
| 4 |
<field name="name">account.move.form.inherit.l10n.in</field> |
| 5 |
<field name="model">account.move</field> |
| 6 |
<field name="inherit_id" ref="account.view_move_form"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<xpath expr="//sheet" position="before"> |
| 9 |
<div class="alert alert-warning mt-1 mb-1" role="alert" invisible="not l10n_in_warning"> |
| 10 |
<div> |
| 11 |
<field name="l10n_in_warning" widget="actionable_errors"/> |
| 12 |
</div> |
| 13 |
</div> |
| 14 |
</xpath> |
| 15 |
<xpath expr="//field[@name='ref']" position="after"> |
| 16 |
<field name="l10n_in_state_id" domain="[('country_id.code', '=', 'IN')]" |
| 17 |
options="{'no_create': True, 'no_open': True}" |
| 18 |
invisible="country_code != 'IN' or not l10n_in_is_gst_registered_enabled or move_type == 'entry'" |
| 19 |
readonly="state != 'draft'" |
| 20 |
required="country_code == 'IN' and l10n_in_is_gst_registered_enabled and state == 'draft' and move_type != 'entry' and l10n_in_journal_type in ('sale', 'purchase')"/> |
| 21 |
<field name="l10n_in_gst_treatment" |
| 22 |
invisible="country_code != 'IN' or not l10n_in_is_gst_registered_enabled or move_type == 'entry'" |
| 23 |
readonly="state != 'draft'" |
| 24 |
required="country_code == 'IN' and l10n_in_is_gst_registered_enabled and state == 'draft' and move_type != 'entry'"/> |
| 25 |
<label for="l10n_in_partner_gstin_status" |
| 26 |
invisible="not l10n_in_show_gstin_status"/> |
| 27 |
<div name="status_date_container" |
| 28 |
invisible="not l10n_in_show_gstin_status"> |
| 29 |
<field name="l10n_in_partner_gstin_status" class="d-none"/> |
| 30 |
<span class="text-nowrap" readonly="1"> |
| 31 |
<span invisible="not l10n_in_partner_gstin_status" |
| 32 |
class="oe_inline text-success">Active</span> |
| 33 |
<span invisible="not l10n_in_gstin_verified_date or l10n_in_partner_gstin_status" |
| 34 |
class="oe_inline text-danger">Inactive</span> |
| 35 |
<span class="text-muted oe_inline"> |
| 36 |
<span invisible="l10n_in_gstin_verified_date">Not Checked</span> |
| 37 |
<span invisible="not l10n_in_gstin_verified_date" class="ps-3">Checked: </span> |
| 38 |
<field name="l10n_in_gstin_verified_date" class="oe_inline" widget="remaining_days"/> |
| 39 |
<button name="l10n_in_verify_partner_gstin_status" |
| 40 |
type="object" icon="fa-refresh" |
| 41 |
class="oe_link p-0 ps-3" title="Verify GSTIN status" /> |
| 42 |
</span> |
| 43 |
</span> |
| 44 |
</div> |
| 45 |
<field name="reversed_entry_id" domain="[('move_type', '=', 'out_invoice'), ('commercial_partner_id', '=', commercial_partner_id)]" readonly="state != 'draft'" invisible="move_type != 'out_refund' or country_code != 'IN'"/> |
| 46 |
</xpath> |
| 47 |
<xpath expr="//page[@id='other_tab']/group[@id='other_tab_group']" position="after"> |
| 48 |
<group string="Export India" invisible="l10n_in_gst_treatment not in ['overseas', 'deemed_export'] or move_type not in ['out_invoice', 'out_refund']"> |
| 49 |
<field name="l10n_in_shipping_bill_number" readonly="state != 'draft'"/> |
| 50 |
<field name="l10n_in_shipping_bill_date" readonly="state != 'draft'"/> |
| 51 |
<field name="l10n_in_shipping_port_code_id" readonly="state != 'draft'"/> |
| 52 |
</group> |
| 53 |
<group string="Import India" invisible="l10n_in_gst_treatment not in ['overseas', 'special_economic_zone'] or move_type not in ['in_invoice', 'in_refund']"> |
| 54 |
<field name="l10n_in_shipping_bill_number" string="Bill of Entry Number" readonly="state != 'draft'"/> |
| 55 |
<field name="l10n_in_shipping_bill_date" string="Bill of Entry Date" readonly="state != 'draft'"/> |
| 56 |
<field name="l10n_in_shipping_port_code_id" readonly="state != 'draft'"/> |
| 57 |
</group> |
| 58 |
</xpath> |
| 59 |
<xpath expr="//field[@name='partner_shipping_id']" position="before"> |
| 60 |
<field name="l10n_in_reseller_partner_id" |
| 61 |
groups="l10n_in.group_l10n_in_reseller" |
| 62 |
invisible="move_type not in ('out_invoice', 'out_refund') or country_code != 'IN' or move_type == 'entry'" |
| 63 |
readonly="state != 'draft'"/> |
| 64 |
</xpath> |
| 65 |
<xpath expr="//field[@name='invoice_line_ids']/list//field[@name='product_id']" position="after"> |
| 66 |
<field name="l10n_in_hsn_code" optional="hide" column_invisible="parent.country_code != 'IN'"/> |
| 67 |
</xpath> |
| 68 |
<xpath expr="//field[@name='journal_line_ids' or @name='line_ids']/list//field[@name='name']" position="after"> |
| 69 |
<field name="l10n_in_hsn_code" optional="hide" column_invisible="parent.country_code != 'IN'"/> |
| 70 |
</xpath> |
| 71 |
<xpath expr="//header" position="inside"> |
| 72 |
<button name="%(l10n_in_withholding_entry_form_action)d" string="TDS Entry" type="action" class="btn btn-secondary float-end" |
| 73 |
invisible="country_code != 'IN' or l10n_in_tds_deduction == 'no' or not l10n_in_tds_feature_enabled or move_type not in ('out_invoice', 'in_invoice', 'out_refund', 'in_refund') or state != 'posted'"/> |
| 74 |
<button name="action_l10n_in_apply_higher_tax" string="Apply Higher TCS" type="object" class="btn btn-secondary float-end" |
| 75 |
invisible="not l10n_in_display_higher_tcs_button or not l10n_in_tcs_feature_enabled"/> |
| 76 |
</xpath> |
| 77 |
<xpath expr="//div[@name='button_box']" position="inside"> |
| 78 |
<button name="action_l10n_in_withholding_entries" |
| 79 |
class="oe_stat_button" |
| 80 |
type="object" |
| 81 |
icon="fa-list-alt" |
| 82 |
invisible="not l10n_in_tds_feature_enabled or not l10n_in_withhold_move_ids"> |
| 83 |
<div class="o_field_widget o_stat_info"> |
| 84 |
<span class="o_stat_text">TDS</span> |
| 85 |
<span class="o_stat_value"><field name="l10n_in_total_withholding_amount"/></span> |
| 86 |
</div> |
| 87 |
</button> |
| 88 |
</xpath> |
| 89 |
<xpath expr="//notebook/page[@id='aml_tab']" position="before"> |
| 90 |
<page name="withholding_tab" string="TDS Information" invisible="not l10n_in_tds_feature_enabled or not l10n_in_withholding_line_ids"> |
| 91 |
<field name="l10n_in_withholding_line_ids" nolabel="1" colspan="4"> |
| 92 |
<list editable="bottom" string="TDS Information"> |
| 93 |
<field name="tax_ids" string="Tax" widget="many2many_tax_tags"/> |
| 94 |
<field name="price_subtotal" string="Base Amount" sum="Total"/> |
| 95 |
<field name="l10n_in_withhold_tax_amount" string="TDS Amount" sum="Total"/> |
| 96 |
</list> |
| 97 |
</field> |
| 98 |
</page> |
| 99 |
</xpath> |
| 100 |
</field> |
| 101 |
</record> |
| 102 |
|
| 103 |
<record id="view_move_line_list_l10n_in_withholding" model="ir.ui.view"> |
| 104 |
<field name="name">account.move.line.list.l10n.in.withholding</field> |
| 105 |
<field name="model">account.move.line</field> |
| 106 |
<field name="arch" type="xml"> |
| 107 |
<list string="Journal items" editable="top" create="0" default_group_by="l10n_in_tds_tcs_section_id"> |
| 108 |
<field name="product_id" readonly="1"/> |
| 109 |
<field name="name" widget="section_and_note_text"/> |
| 110 |
<field name="account_id"/> |
| 111 |
<field name="tax_ids" |
| 112 |
widget="many2many_tax_tags" |
| 113 |
domain="[('type_tax_use', '=', context.get('default_tax_type_use'))]" |
| 114 |
column_invisible="context.get('move_type')"/> |
| 115 |
<field name="l10n_in_tds_tcs_section_id" string="Suggested Section"/> |
| 116 |
<field name="price_total"/> |
| 117 |
</list> |
| 118 |
</field> |
| 119 |
</record> |
| 120 |
</odoo> |