mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-26 23:31:58 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
|
|
@ -7,7 +7,7 @@
|
|||
<field name="inherit_id" ref="account.view_account_position_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="auto_apply" position="after">
|
||||
<field name="l10n_ar_afip_responsibility_type_ids" options="{'no_open': True, 'no_create': True}" attrs="{'invisible': [('auto_apply', '!=', True)]}" groups="base.group_no_one" widget="many2many_tags"/>
|
||||
<field name="l10n_ar_afip_responsibility_type_ids" options="{'no_open': True, 'no_create': True}" invisible="'AR' not in fiscal_country_codes or not auto_apply" groups="base.group_no_one" widget="many2many_tags"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -7,10 +7,11 @@
|
|||
<field name="inherit_id" ref="l10n_latam_invoice_document.view_account_journal_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="l10n_latam_use_documents" position="after">
|
||||
<field name="l10n_ar_is_pos" invisible="country_code != 'AR' or not l10n_latam_use_documents or type not in ['sale', 'purchase']"/>
|
||||
<field name="company_partner" invisible="1"/>
|
||||
<field name="l10n_ar_afip_pos_system" attrs="{'invisible':['|', '|', ('country_code', '!=', 'AR'), ('l10n_latam_use_documents', '=', False), ('type', '!=', 'sale')], 'required':[('country_code', '=', 'AR'), ('l10n_latam_use_documents', '=', True), ('type', '=', 'sale')]}"/>
|
||||
<field name="l10n_ar_afip_pos_number" attrs="{'invisible':['|', '|', ('country_code', '!=', 'AR'), ('l10n_latam_use_documents', '=', False), ('type', '!=', 'sale')], 'required':[('country_code', '=', 'AR'), ('l10n_latam_use_documents', '=', True), ('type', '=', 'sale')]}"/>
|
||||
<field name="l10n_ar_afip_pos_partner_id" attrs="{'invisible':['|', '|', ('country_code', '!=', 'AR'), ('l10n_latam_use_documents', '=', False), ('type', '!=', 'sale')], 'required':[('country_code', '=', 'AR'), ('l10n_latam_use_documents', '=', True), ('type', '=', 'sale')]}"/>
|
||||
<field name="l10n_ar_afip_pos_system" invisible="not l10n_ar_is_pos" required="l10n_ar_is_pos"/>
|
||||
<field name="l10n_ar_afip_pos_number" invisible="not l10n_ar_is_pos" required="l10n_ar_is_pos"/>
|
||||
<field name="l10n_ar_afip_pos_partner_id" invisible="not l10n_ar_is_pos" required="l10n_ar_is_pos"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
<field name="l10n_ar_afip_responsibility_type_id"/>
|
||||
</field>
|
||||
<group>
|
||||
<filter string="AFIP Responsibility Type" domain="[]" name="l10n_ar_afip_responsibility_type_id_filter" context="{'group_by':'l10n_ar_afip_responsibility_type_id'}"/>
|
||||
<filter string="ARCA Responsibility Type" domain="[]" name="l10n_ar_afip_responsibility_type_id_filter" context="{'group_by':'l10n_ar_afip_responsibility_type_id'}"/>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -21,14 +21,12 @@
|
|||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<group id="other_tab_group" position="inside">
|
||||
<group name="afip_group" string="AFIP" attrs="{'invisible': [('country_code', '!=', 'AR')]}">
|
||||
<field name='l10n_ar_afip_concept' attrs="{'invisible': [('l10n_latam_use_documents', '=', False)]}"/>
|
||||
<label for="l10n_ar_afip_service_start" attrs="{'invisible':[('l10n_ar_afip_concept','not in',['2', '3', '4'])]}" string="Service Date"/>
|
||||
<div attrs="{'invisible':[('l10n_ar_afip_concept','not in',['2', '3', '4'])]}">
|
||||
<field name="l10n_ar_afip_service_start" class="oe_inline"/> to <field name="l10n_ar_afip_service_end" class="oe_inline"/>
|
||||
</div>
|
||||
</group>
|
||||
<group name="sale_info_group" position="inside">
|
||||
<field name='l10n_ar_afip_concept' invisible="not l10n_latam_use_documents or country_code != 'AR'"/>
|
||||
<label for="l10n_ar_afip_service_start" invisible="l10n_ar_afip_concept not in ('2', '3', '4') or country_code != 'AR'" string="Service Date"/>
|
||||
<div invisible="l10n_ar_afip_concept not in ('2', '3', '4') or country_code != 'AR'">
|
||||
<field name="l10n_ar_afip_service_start" class="oe_inline" readonly="state != 'draft'"/> to <field name="l10n_ar_afip_service_end" class="oe_inline" readonly="state != 'draft'"/>
|
||||
</div>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<menuitem id="menu_afip_config" name="AFIP" parent="account.menu_finance_configuration" sequence="25"/>
|
||||
<menuitem id="menu_afip_config" name="ARCA" parent="account.menu_finance_configuration" sequence="25"/>
|
||||
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<field name="name">afip.responsibility.type.form</field>
|
||||
<field name="model">l10n_ar.afip.responsibility.type</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="AFIP Responsibility Type">
|
||||
<form string="ARCA Responsibility Type">
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name='code'/>
|
||||
|
|
@ -16,19 +16,19 @@
|
|||
</record>
|
||||
|
||||
<record id="view_afip_responsibility_type_tree" model="ir.ui.view">
|
||||
<field name="name">afip.responsibility.type.tree</field>
|
||||
<field name="name">afip.responsibility.type.list</field>
|
||||
<field name="model">l10n_ar.afip.responsibility.type</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="AFIP Responsibility Type" decoration-muted="(not active)">
|
||||
<list string="ARCA Responsibility Type" decoration-muted="(not active)">
|
||||
<field name="name"/>
|
||||
<field name="code"/>
|
||||
<field name='active'/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_afip_responsibility_type">
|
||||
<field name="name">AFIP Responsibility Types</field>
|
||||
<field name="name">ARCA Responsibility Types</field>
|
||||
<field name="res_model">l10n_ar.afip.responsibility.type</field>
|
||||
</record>
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
</record>
|
||||
|
||||
<record id="view_document_type_tree" model="ir.ui.view">
|
||||
<field name="name">l10n_latam.document.type.tree</field>
|
||||
<field name="name">l10n_latam.document.type.list</field>
|
||||
<field name="model">l10n_latam.document.type</field>
|
||||
<field name="inherit_id" ref="l10n_latam_invoice_document.view_document_type_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
|
|
|
|||
|
|
@ -0,0 +1,44 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="address_form_fields" inherit_id="portal.address_form_fields">
|
||||
<div id="div_vat" position="before">
|
||||
<div t-if="is_used_as_billing and res_company.country_id.code == 'AR'" class="col-xl-6 mb-3">
|
||||
<label class="col-form-label" for="l10n_ar_afip_responsibility_type_id">
|
||||
ARCA Responsibility
|
||||
</label>
|
||||
<select
|
||||
t-if="is_commercial_address and can_edit_vat"
|
||||
name="l10n_ar_afip_responsibility_type_id"
|
||||
class="form-select"
|
||||
>
|
||||
<option value="">ARCA Responsibility...</option>
|
||||
<option
|
||||
t-foreach="responsibility_types"
|
||||
t-as="resp_type"
|
||||
t-att-value="resp_type.id"
|
||||
t-att-selected="resp_type.id == responsibility.id"
|
||||
t-out="resp_type.name"
|
||||
/>
|
||||
</select>
|
||||
<p
|
||||
t-else=""
|
||||
class="form-control"
|
||||
t-out="responsibility.name"
|
||||
readonly="1"
|
||||
title="Changing ARCA Responsibility type is not allowed once document(s) have
|
||||
been issued for your account. Please contact us directly for this
|
||||
operation."
|
||||
/>
|
||||
<input
|
||||
t-if="not (is_commercial_address and can_edit_vat)"
|
||||
type="hidden"
|
||||
readonly="1"
|
||||
name="l10n_ar_afip_responsibility_type_id"
|
||||
t-att-value="responsibility.id"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -3,13 +3,13 @@
|
|||
|
||||
<!-- this header can be used on any Argentinean report, to be useful some variables should be passed -->
|
||||
<template id="custom_header">
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="mb-3">
|
||||
<div class="row mb-2">
|
||||
<div name="left-upper-side" class="col-5" t-if="not pre_printed_report">
|
||||
<img t-if="o.company_id.logo" t-att-src="image_data_uri(o.company_id.logo)" style="max-height: 45px;" alt="Logo"/>
|
||||
<img t-if="o.company_id.logo" t-att-src="image_data_uri(o.company_id.logo)" style="max-height: 65px;" alt="Logo"/>
|
||||
</div>
|
||||
<div name="center-upper" class="col-2 text-center" t-att-style="'color: %s;' % o.company_id.primary_color">
|
||||
<span style="display: inline-block; text-align: center; line-height: 8px;">
|
||||
<span id="withholding_legend" style="display: inline-block; text-align: center; line-height: 8px;">
|
||||
<h1 style="line-height: 35px;">
|
||||
<strong><span t-out="not pre_printed_report and document_letter or ' '"/></strong>
|
||||
</h1>
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
<span t-att-style="'color: %s;' % o.company_id.primary_color" t-out="' - '.join([item for item in [(header_address.website or '').replace('https://', '').replace('http://', ''), header_address.email] if item])"/>
|
||||
</t>
|
||||
</div>
|
||||
<div class="col-6 text-end" style="padding-left: 0px;">
|
||||
<div id="l10n_ar_header_right" class="col-6 text-end" style="padding-left: 0px;">
|
||||
|
||||
<t t-if="not pre_printed_report">
|
||||
<!-- (7) Numero punto venta - (8) numero de documento -->
|
||||
|
|
@ -81,7 +81,8 @@
|
|||
<t t-set="report_number" t-value="o.l10n_latam_document_number"/>
|
||||
<t t-set="pre_printed_report" t-value="report_type == 'pdf' and o.journal_id.l10n_ar_afip_pos_system == 'II_IM'"/>
|
||||
<t t-set="document_letter" t-value="o.l10n_latam_document_type_id.l10n_ar_letter"/>
|
||||
<t t-set="document_legend" t-value="o.l10n_latam_document_type_id.code and 'Cod. %02d' % int(o.l10n_latam_document_type_id.code) or ''"/>
|
||||
<t t-set="document_type_code" t-value="o.l10n_latam_document_type_id.code"/>
|
||||
<t t-set="document_legend" t-value="document_type_code and 'Cod. %02d' % int(document_type_code) or ''"/>
|
||||
<t t-set="report_name" t-value="o.l10n_latam_document_type_id.report_name"/>
|
||||
<t t-set="header_address" t-value="o.journal_id.l10n_ar_afip_pos_partner_id"/>
|
||||
|
||||
|
|
@ -112,7 +113,7 @@
|
|||
</xpath>
|
||||
|
||||
<!-- remove default document title -->
|
||||
<h2 position="replace"/>
|
||||
<xpath expr="//t[@t-set='layout_document_title']" position="replace"/>
|
||||
|
||||
<!-- NCM column for fiscal bond -->
|
||||
<th name="th_description" position="after">
|
||||
|
|
@ -123,36 +124,34 @@
|
|||
</td>
|
||||
|
||||
<!-- use latam prices (to include/exclude VAT) -->
|
||||
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" position="before">
|
||||
<xpath expr="//t[@t-foreach='lines_to_report']/t" position="before">
|
||||
<t t-set="l10n_ar_values" t-value="line._l10n_ar_prices_and_taxes()"/>
|
||||
</t>
|
||||
</xpath>
|
||||
<xpath expr="//span[@t-field='line.price_unit']" position="attributes">
|
||||
<attribute name="t-field"></attribute>
|
||||
<attribute name="t-out">l10n_ar_values['price_unit']</attribute>
|
||||
<attribute name="t-options">{"widget": "float", "display_currency": o.currency_id, "decimal_precision": "Product Price"}</attribute>
|
||||
</xpath>
|
||||
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" position="attributes">
|
||||
<attribute name="t-value">current_subtotal + l10n_ar_values['price_subtotal']</attribute>
|
||||
</t>
|
||||
<!-- if b2c we still wants the latam subtotal -->
|
||||
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total" position="attributes">
|
||||
<attribute name="t-value">current_subtotal + l10n_ar_values['price_subtotal']</attribute>
|
||||
<t t-set="section_subtotal" t-value="line.get_section_subtotal()" position="attributes">
|
||||
<attribute name="t-value">line.get_section_subtotal() + l10n_ar_values['price_subtotal']</attribute>
|
||||
</t>
|
||||
<xpath expr="//t/tr/t[@t-set='line_colspan']" position="attributes">
|
||||
<attribute name="t-value">3 + (1 if display_discount else 0) + (1 if not line.tax_ids and not o._l10n_ar_include_vat() else 0)</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t/t/t[@t-else='']/t[@t-set='line_colspan']" position="attributes">
|
||||
<attribute name="t-value">3 + (1 if display_discount else 0) + (1 if display_taxes and not grouped_line.get('taxes') and o._l10n_ar_include_vat() else 0)</attribute>
|
||||
</xpath>
|
||||
<!-- label amount for subtotal column on b2b and b2c -->
|
||||
<xpath expr="//th[@name='th_subtotal']/span[@groups='account.group_show_line_subtotals_tax_included']" position="replace">
|
||||
<span groups="account.group_show_line_subtotals_tax_included">Amount</span>
|
||||
<xpath expr="//th[@name='th_subtotal']/span" position="replace">
|
||||
<span>Amount</span>
|
||||
</xpath>
|
||||
<span t-field="line.price_subtotal" position="attributes">
|
||||
<attribute name="t-field"></attribute>
|
||||
<attribute name="t-out">l10n_ar_values['price_subtotal']</attribute>
|
||||
<attribute name="t-options">{"widget": "monetary", "display_currency": o.currency_id}</attribute>
|
||||
</span>
|
||||
<!-- if b2c we still wants the latam subtotal -->
|
||||
<span t-field="line.price_total" position="attributes">
|
||||
<attribute name="t-field"></attribute>
|
||||
<attribute name="t-out">l10n_ar_values['price_subtotal']</attribute>
|
||||
<attribute name="t-options">{"widget": "monetary", "display_currency": o.currency_id}</attribute>
|
||||
</span>
|
||||
|
||||
<t t-set="tax_totals" position="attributes">
|
||||
<attribute name="t-value">o._l10n_ar_get_invoice_totals_for_report()</attribute>
|
||||
|
|
@ -169,10 +168,13 @@
|
|||
</xpath>
|
||||
|
||||
<xpath expr="//span[@id='line_tax_ids']/.." position="attributes">
|
||||
<attribute name="t-if">not hide_prices and not o._l10n_ar_include_vat()</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//span[@id='grouped_line_tax_ids']/.." position="attributes">
|
||||
<attribute name="t-if">not o._l10n_ar_include_vat()</attribute>
|
||||
</xpath>
|
||||
<span id="line_tax_ids" position="attributes">
|
||||
<attribute name="t-out">', '.join(map(lambda x: (x.description or x.name), line.tax_ids.filtered(lambda x: x.tax_group_id.l10n_ar_vat_afip_code)))</attribute>
|
||||
<attribute name="t-out">', '.join(tax.tax_label for tax in line.tax_ids if tax.tax_label and tax.tax_group_id.l10n_ar_vat_afip_code)</attribute>
|
||||
</span>
|
||||
|
||||
<!-- remove payment reference that is not used in Argentina -->
|
||||
|
|
@ -194,7 +196,7 @@
|
|||
<br/>
|
||||
<span t-field="o.partner_id" t-options="{'widget': 'contact', 'fields': ['address'], 'no_marker': true, 'no_tag_br': True}"/>
|
||||
|
||||
<!-- (16) Responsabilidad AFIP -->
|
||||
<!-- (16) Responsabilidad ARCA -->
|
||||
<strong>VAT Cond: </strong><span t-field="o.partner_id.l10n_ar_afip_responsibility_type_id"/>
|
||||
|
||||
<!-- (17) CUIT -->
|
||||
|
|
@ -228,7 +230,13 @@
|
|||
<!-- We do not have remitos implement yet. print here the remito number when we have it -->
|
||||
|
||||
<t t-if="o.invoice_incoterm_id">
|
||||
<br/><strong>Incoterm:</strong><span t-field="o.invoice_incoterm_id.name"/>
|
||||
<br/>
|
||||
<strong>Incoterm:</strong>
|
||||
<p t-if="o.incoterm_location">
|
||||
<span t-field="o.invoice_incoterm_id.code"/> <br/>
|
||||
<span t-field="o.incoterm_location"/>
|
||||
</p>
|
||||
<p t-else="" t-field="o.invoice_incoterm_id.name" class="m-0"/>
|
||||
</t>
|
||||
|
||||
</div>
|
||||
|
|
@ -236,20 +244,14 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- we remove the ml auto and also give more space to avoid multiple lines on tax detail -->
|
||||
<xpath expr="//div[@id='total']/div" position="attributes">
|
||||
<attribute name="t-attf-class">#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'}</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@id='total']/div" position="before">
|
||||
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'}">
|
||||
|
||||
<xpath expr="//div[@id='payment_term']" position="before">
|
||||
<div class="mb-4">
|
||||
<t t-if="o.l10n_ar_afip_concept in ['2', '3', '4'] and o.l10n_ar_afip_service_start and o.l10n_ar_afip_service_end">
|
||||
<strong>Invoiced period: </strong><span t-field="o.l10n_ar_afip_service_start"/> to <span t-field="o.l10n_ar_afip_service_end"/>
|
||||
</t>
|
||||
<t t-if="o.currency_id != o.company_id.currency_id">
|
||||
<br/><strong>Currency: </strong><span t-out="'%s - %s' % (o.currency_id.name, o.currency_id.currency_unit_label)"/>
|
||||
<br/><strong>Exchange rate: </strong> <span t-field="o.l10n_ar_currency_rate"/>
|
||||
<br/><span>1 <t t-out="o.currency_id.name"/> = <t t-out="1 / o.invoice_currency_rate" t-options='{"widget": "float", "precision": 2}'/> <t t-out="o.company_currency_id.name"/></span>
|
||||
</t>
|
||||
<!-- Show CBU for FACTURA DE CREDITO ELECTRONICA MiPyMEs and NOTA DE DEBITO ELECTRONICA MiPyMEs -->
|
||||
<t t-if="o.l10n_latam_document_type_id.code in ['201', '206', '211', '202', '207', '212'] and o.partner_bank_id">
|
||||
|
|
@ -263,14 +265,14 @@
|
|||
http://biblioteca.afip.gob.ar/dcp/LEY_C_027440_2018_05_09 article 5.f -->
|
||||
<xpath expr="//div[@id='total']/div/table" position="after">
|
||||
<t t-if="o.l10n_latam_document_type_id.code in ['201', '202', '203', '206', '207', '208', '211', '212', '213']">
|
||||
<strong>Son: </strong><span t-out="o.currency_id.with_context(lang='es_AR').amount_to_text(o.amount_total)"/>
|
||||
<strong>Son: </strong><span t-out="o.currency_id.amount_to_text(o.amount_total)"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
<!-- RG 5003: Add legend for 'A' documents that have a Monotribuista receptor -->
|
||||
<div name="comment" position="after">
|
||||
<p t-if="o.partner_id.l10n_ar_afip_responsibility_type_id.code in ['6', '13'] and o.l10n_latam_document_type_id.l10n_ar_letter == 'A'" >
|
||||
El crédito fiscal discriminado en el presente comprobante, sólo podrá ser computado a efectos del Régimen de Sostenimiento e Inclusión Fiscal para Pequeños Contribuyentes de la Ley Nº 27.618
|
||||
The tax credit specified in this voucher may only be computed for purposes of the Tax Support and Inclusion Regime for Small Taxpayers of Law No. 27,618.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
@ -280,18 +282,19 @@
|
|||
|
||||
<div id="qrcode" position="after">
|
||||
<!-- RG 5614/2024: Show ARCA VAT and Other National Internal Taxes -->
|
||||
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'}">
|
||||
<table class="table table-sm table-borderless" style="page-break-inside: avoid;" t-if="tax_totals.get('detail_ar_tax')">
|
||||
<t t-set="l10n_ar_custom_tax_summary" t-value="o._l10n_ar_get_invoice_custom_tax_summary_for_report()"/>
|
||||
<div t-attf-class="l10n_ar_tax_details {{ 'col-6' if report_type == 'pdf' else '' }}" t-if="l10n_ar_custom_tax_summary">
|
||||
<table class="table table-sm table-borderless" style="page-break-inside: avoid;">
|
||||
<th class="border-black" style="border-bottom: 1px solid" colspan="2">
|
||||
Fiscal Transparency Regime for the Final Consumer (Law 27.743)
|
||||
</th>
|
||||
<t t-foreach="tax_totals['detail_ar_tax']" t-as="detail">
|
||||
<t t-foreach="l10n_ar_custom_tax_summary" t-as="detail">
|
||||
<tr>
|
||||
<td class="text-end"><strong t-esc="detail['name']"/></td>
|
||||
<td class="text-end">
|
||||
<span
|
||||
t-att-class="oe_subtotal_footer_separator"
|
||||
t-esc="detail['formatted_amount_tax']"
|
||||
class="oe_subtotal_footer_separator"
|
||||
t-out="detail['formatted_tax_amount_currency']"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -309,19 +312,12 @@
|
|||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- FIXME: Temp fix to allow fetching invoice_documemt in Studio Reports with localisation -->
|
||||
<!-- Workaround for Studio reports, see odoo/odoo#60660 -->
|
||||
<template id="report_invoice" inherit_id="account.report_invoice">
|
||||
<xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
|
||||
<t t-if="o._get_name_invoice_report() == 'l10n_ar.report_invoice_document'"
|
||||
t-call="l10n_ar.report_invoice_document" t-lang="lang"/>
|
||||
<t t-elif="o._get_name_invoice_report() == 'l10n_ar.report_invoice_document'"
|
||||
t-call="l10n_ar.report_invoice_document"
|
||||
t-lang="lang"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="report_invoice_with_payments" inherit_id="account.report_invoice_with_payments">
|
||||
<xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
|
||||
<t t-if="o._get_name_invoice_report() == 'l10n_ar.report_invoice_document'"
|
||||
t-call="l10n_ar.report_invoice_document" t-lang="lang"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@
|
|||
<field name="model">res.company</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="vat" position="after">
|
||||
<field name="l10n_ar_afip_responsibility_type_id" options="{'no_open': True, 'no_create': True}" attrs="{'invisible': [('country_code', '!=', 'AR')]}"/>
|
||||
<label for="l10n_ar_gross_income_number" string="Gross Income" attrs="{'invisible': [('country_code', '!=', 'AR')]}"/>
|
||||
<div attrs="{'invisible': [('country_code', '!=', 'AR')]}" name="gross_income">
|
||||
<field name="l10n_ar_afip_responsibility_type_id" options="{'no_open': True, 'no_create': True}" invisible="country_code != 'AR'"/>
|
||||
<label for="l10n_ar_gross_income_number" string="Gross Income" invisible="country_code != 'AR'"/>
|
||||
<div invisible="country_code != 'AR'" name="gross_income">
|
||||
<field name="l10n_ar_gross_income_type" class="oe_inline"/>
|
||||
<field name="l10n_ar_gross_income_number" placeholder="Number..." class="oe_inline" attrs="{'invisible': [('l10n_ar_gross_income_type', 'in', [False, 'exempt'])], 'required': [('l10n_ar_gross_income_type', 'not in', [False, 'exempt'])]}"/>
|
||||
<field name="l10n_ar_gross_income_number" placeholder="Number..." class="oe_inline" invisible="l10n_ar_gross_income_type in [False, 'exempt']" required="l10n_ar_gross_income_type not in [False, 'exempt']"/>
|
||||
</div>
|
||||
<field name="l10n_ar_afip_start_date" attrs="{'invisible': [('country_code', '!=', 'AR')]}"/>
|
||||
<field name="l10n_ar_afip_start_date" invisible="country_code != 'AR'"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -6,11 +6,10 @@
|
|||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@data-key='account']/div" position="after">
|
||||
<xpath expr="//app[@name='account']/block" position="after">
|
||||
<div id="argentina_localization_section" invisible="1">
|
||||
<h2 attrs="{'invisible':[('country_code', '!=', 'AR')]}">Argentinean Localization</h2>
|
||||
<div class="row mt16 o_settings_container" id="argentina_localization" attrs="{'invisible':[('country_code', '!=', 'AR')]}">
|
||||
</div>
|
||||
<block title="Argentinean Localization" id="argentina_localization" invisible="country_code != 'AR'">
|
||||
</block>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
</record>
|
||||
|
||||
<record id="view_res_country_tree" model="ir.ui.view">
|
||||
<field name="name">res.country.tree</field>
|
||||
<field name="name">res.country.list</field>
|
||||
<field name="model">res.country</field>
|
||||
<field name="inherit_id" ref="base.view_country_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<field name="model">res.currency</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="l10n_ar_afip_code"/>
|
||||
<field name="l10n_ar_afip_code" invisible="'AR' not in fiscal_country_codes"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -4,11 +4,14 @@
|
|||
<record id="base_view_partner_form" model="ir.ui.view">
|
||||
<field name="name">res.partner.form</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||
<field name="inherit_id" ref="l10n_latam_base.view_partner_latam_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="vat" position="after">
|
||||
<field name="l10n_ar_afip_responsibility_type_id" string="AFIP Responsibility" options="{'no_open': True, 'no_create': True}" attrs="{'readonly': [('parent_id','!=',False)]}"/>
|
||||
</field>
|
||||
<xpath expr="//field[@name='vat']/.." position="after">
|
||||
<field name="l10n_ar_afip_responsibility_type_id"
|
||||
invisible="'AR' not in fiscal_country_codes"
|
||||
options="{'no_open': True, 'no_create': True}"
|
||||
readonly="parent_id"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -18,17 +21,11 @@
|
|||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
|
||||
<xpath expr="//page[@name='accounting']/group" position="inside">
|
||||
<group string="Accounting Documents" name="accounting_documents">
|
||||
<field name="l10n_ar_special_purchase_document_type_ids" widget="many2many_tags"/>
|
||||
</group>
|
||||
</xpath>
|
||||
|
||||
<field name="property_account_position_id" position="after">
|
||||
<label for="l10n_ar_gross_income_number" string="Gross Income"/>
|
||||
<div name="gross_income">
|
||||
<label for="l10n_ar_gross_income_type" string="Gross Income" invisible="'AR' not in fiscal_country_codes"/>
|
||||
<div name="gross_income" invisible="'AR'not in fiscal_country_codes">
|
||||
<field name="l10n_ar_gross_income_type" class="oe_inline"/>
|
||||
<field name="l10n_ar_gross_income_number" placeholder="Number..." class="oe_inline" attrs="{'invisible': [('l10n_ar_gross_income_type', 'not in', ['multilateral', 'local'])], 'required': [('l10n_ar_gross_income_type', 'in', ['multilateral', 'local'])]}"/>
|
||||
<field name="l10n_ar_gross_income_number" placeholder="Number..." class="oe_inline" invisible="l10n_ar_gross_income_type not in ['multilateral', 'local']" required="l10n_ar_gross_income_type in ['multilateral', 'local']"/>
|
||||
</div>
|
||||
</field>
|
||||
|
||||
|
|
@ -44,7 +41,7 @@
|
|||
<field name="l10n_ar_afip_responsibility_type_id"/>
|
||||
</field>
|
||||
<filter name="salesperson" position="before">
|
||||
<filter string="AFIP Responsibility Type" name="l10n_ar_afip_responsibility_type_id_filter" context="{'group_by': 'l10n_ar_afip_responsibility_type_id'}"/>
|
||||
<filter string="ARCA Responsibility Type" name="l10n_ar_afip_responsibility_type_id_filter" context="{'group_by': 'l10n_ar_afip_responsibility_type_id'}"/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
<odoo>
|
||||
|
||||
<record id="product_uom_tree_view" model="ir.ui.view">
|
||||
<field name="name">uom.uom.tree</field>
|
||||
<field name="name">uom.uom.list</field>
|
||||
<field name="model">uom.uom</field>
|
||||
<field name="inherit_id" ref="uom.product_uom_tree_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="l10n_ar_afip_code"/>
|
||||
</tree>
|
||||
<list>
|
||||
<field name="l10n_ar_afip_code" optional="hide"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -17,21 +17,9 @@
|
|||
<field name="model">uom.uom</field>
|
||||
<field name="inherit_id" ref="uom.product_uom_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="rounding" position="after">
|
||||
<field name="l10n_ar_afip_code"/>
|
||||
</field>
|
||||
<div name="relative_factor" position="after">
|
||||
<field name="l10n_ar_afip_code" invisible="'AR' not in fiscal_country_codes"/>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_uom_categ_form_view" model="ir.ui.view">
|
||||
<field name="name">uom.category.form</field>
|
||||
<field name="model">uom.category</field>
|
||||
<field name="inherit_id" ref="uom.product_uom_categ_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="rounding" position="after">
|
||||
<field name="l10n_ar_afip_code"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue