summaryrefslogtreecommitdiff
path: root/addons/l10n_ar/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/l10n_ar/views
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/l10n_ar/views')
-rw-r--r--addons/l10n_ar/views/account_fiscal_position_view.xml15
-rw-r--r--addons/l10n_ar/views/account_journal_view.xml19
-rw-r--r--addons/l10n_ar/views/account_move_view.xml36
-rw-r--r--addons/l10n_ar/views/afip_menuitem.xml6
-rw-r--r--addons/l10n_ar/views/l10n_ar.xml8
-rw-r--r--addons/l10n_ar/views/l10n_ar_afip_responsibility_type_view.xml37
-rw-r--r--addons/l10n_ar/views/l10n_latam_document_type_view.xml51
-rw-r--r--addons/l10n_ar/views/report_invoice.xml268
-rw-r--r--addons/l10n_ar/views/res_company_view.xml19
-rw-r--r--addons/l10n_ar/views/res_country_view.xml32
-rw-r--r--addons/l10n_ar/views/res_currency_view.xml15
-rw-r--r--addons/l10n_ar/views/res_partner_view.xml54
-rw-r--r--addons/l10n_ar/views/uom_uom_view.xml26
13 files changed, 586 insertions, 0 deletions
diff --git a/addons/l10n_ar/views/account_fiscal_position_view.xml b/addons/l10n_ar/views/account_fiscal_position_view.xml
new file mode 100644
index 00000000..b76c2a99
--- /dev/null
+++ b/addons/l10n_ar/views/account_fiscal_position_view.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="view_account_position_form" model="ir.ui.view">
+ <field name="name">account.fiscal.position.form</field>
+ <field name="model">account.fiscal.position</field>
+ <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>
+ </field>
+ </record>
+
+</odoo>
diff --git a/addons/l10n_ar/views/account_journal_view.xml b/addons/l10n_ar/views/account_journal_view.xml
new file mode 100644
index 00000000..3e9c1375
--- /dev/null
+++ b/addons/l10n_ar/views/account_journal_view.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="view_account_journal_form" model="ir.ui.view">
+ <field name="model">account.journal</field>
+ <field name="name">account.journal.form</field>
+ <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="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_share_sequences" attrs="{'invisible':[('l10n_ar_afip_pos_system', '!=', 'II_IM')]}"/>
+ </field>
+ </field>
+ </record>
+
+</odoo>
diff --git a/addons/l10n_ar/views/account_move_view.xml b/addons/l10n_ar/views/account_move_view.xml
new file mode 100644
index 00000000..fad42b99
--- /dev/null
+++ b/addons/l10n_ar/views/account_move_view.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="view_account_move_filter" model="ir.ui.view">
+ <field name="name">account.move.filter</field>
+ <field name="model">account.move</field>
+ <field name="inherit_id" ref="account.view_account_move_filter"/>
+ <field name="arch" type="xml">
+ <field name="partner_id" position="after">
+ <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'}"/>
+ </group>
+ </field>
+ </record>
+
+
+ <record id="view_move_form" model="ir.ui.view">
+ <field name="name">account.move.form</field>
+ <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">
+ <field name='l10n_ar_afip_concept' attrs="{'invisible': ['|', ('country_code', '!=', 'AR'), ('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>
+ </field>
+ </record>
+
+</odoo>
diff --git a/addons/l10n_ar/views/afip_menuitem.xml b/addons/l10n_ar/views/afip_menuitem.xml
new file mode 100644
index 00000000..68899ef9
--- /dev/null
+++ b/addons/l10n_ar/views/afip_menuitem.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <menuitem id="menu_afip_config" name="AFIP" parent="account.menu_finance_configuration" sequence="25"/>
+
+</odoo>
diff --git a/addons/l10n_ar/views/l10n_ar.xml b/addons/l10n_ar/views/l10n_ar.xml
new file mode 100644
index 00000000..08586bf6
--- /dev/null
+++ b/addons/l10n_ar/views/l10n_ar.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <template id="assets_backend" name="account assets" inherit_id="web.assets_backend">
+ <xpath expr="." position="inside">
+ <script type="text/javascript" src="/l10n_ar/static/src/js/tours/account.js"/>
+ </xpath>
+ </template>
+</odoo>
diff --git a/addons/l10n_ar/views/l10n_ar_afip_responsibility_type_view.xml b/addons/l10n_ar/views/l10n_ar_afip_responsibility_type_view.xml
new file mode 100644
index 00000000..46b91eaa
--- /dev/null
+++ b/addons/l10n_ar/views/l10n_ar_afip_responsibility_type_view.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="view_afip_responsibility_type_form" model="ir.ui.view">
+ <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">
+ <group>
+ <field name="name"/>
+ <field name='code'/>
+ <field name='active'/>
+ </group>
+ </form>
+ </field>
+ </record>
+
+ <record id="view_afip_responsibility_type_tree" model="ir.ui.view">
+ <field name="name">afip.responsibility.type.tree</field>
+ <field name="model">l10n_ar.afip.responsibility.type</field>
+ <field name="arch" type="xml">
+ <tree string="AFIP Responsibility Type" decoration-muted="(not active)">
+ <field name="name"/>
+ <field name="code"/>
+ <field name='active'/>
+ </tree>
+ </field>
+ </record>
+
+ <record model="ir.actions.act_window" id="action_afip_responsibility_type">
+ <field name="name">AFIP Responsibility Types</field>
+ <field name="res_model">l10n_ar.afip.responsibility.type</field>
+ </record>
+
+ <menuitem name="Responsibility Types" action="action_afip_responsibility_type" id="menu_afip_responsibility_type" sequence="10" parent="menu_afip_config"/>
+
+</odoo>
diff --git a/addons/l10n_ar/views/l10n_latam_document_type_view.xml b/addons/l10n_ar/views/l10n_latam_document_type_view.xml
new file mode 100644
index 00000000..bb500c71
--- /dev/null
+++ b/addons/l10n_ar/views/l10n_latam_document_type_view.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="view_document_type_form" model="ir.ui.view">
+ <field name="name">l10n_latam.document.type.form</field>
+ <field name="model">l10n_latam.document.type</field>
+ <field name="inherit_id" ref="l10n_latam_invoice_document.view_document_type_form"/>
+ <field name="arch" type="xml">
+ <field name='doc_code_prefix' position="after">
+ <field name='l10n_ar_letter'/>
+ <field name='purchase_aliquots'/>
+ </field>
+ </field>
+ </record>
+
+ <record id="view_document_type_tree" model="ir.ui.view">
+ <field name="name">l10n_latam.document.type.tree</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">
+ <field name='doc_code_prefix' position="after">
+ <field name='l10n_ar_letter'/>
+ </field>
+ </field>
+ </record>
+
+ <record id="view_document_type_filter" model="ir.ui.view">
+ <field name="name">l10n_latam.document.type.filter</field>
+ <field name="model">l10n_latam.document.type</field>
+ <field name="inherit_id" ref="l10n_latam_invoice_document.view_document_type_filter"/>
+ <field name="arch" type="xml">
+ <field name='code' position="after">
+ <field name='l10n_ar_letter'/>
+ <filter string="Argentinian Documents" name="localization" domain="[('country_id.code', '=', 'AR')]"/>
+ </field>
+ <group>
+ <filter string="Document Letter" name="l10n_ar_letter" context="{'group_by':'l10n_ar_letter'}"/>
+ </group>
+ </field>
+ </record>
+
+
+ <record model="ir.actions.act_window" id="action_document_type_argentina">
+ <field name="name">Document Types</field>
+ <field name="res_model">l10n_latam.document.type</field>
+ <field name="context">{'search_default_localization': 1}</field>
+ </record>
+
+ <menuitem action="action_document_type_argentina" id="menu_document_type_argentina" sequence="5" parent="menu_afip_config"/>
+
+</odoo>
diff --git a/addons/l10n_ar/views/report_invoice.xml b/addons/l10n_ar/views/report_invoice.xml
new file mode 100644
index 00000000..60768c00
--- /dev/null
+++ b/addons/l10n_ar/views/report_invoice.xml
@@ -0,0 +1,268 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <!-- 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 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"/>
+ </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;">
+ <h1 style="line-height: 25px;">
+ <strong><span t-esc="not pre_printed_report and document_letter or '&#160;'"/></strong>
+ </h1>
+ <span style="font-size: x-small;" t-esc="not pre_printed_report and document_legend or '&#160;'"/>
+ </span>
+ </div>
+ <div name="right-upper-side" class="col-5 text-right" style="padding-left: 0px;" t-if="not pre_printed_report">
+
+ <!-- (6) Titulo de Documento -->
+ <h4 t-att-style="'color: %s;' % o.company_id.primary_color"><strong>
+ <span t-esc="report_name"/>
+ </strong></h4>
+
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-6" style="padding-right: 0px;">
+ <t t-if="not pre_printed_report">
+ <!-- (1) Nombre de Fantasia -->
+ <!-- (2) Apellido y Nombre o Razon Social -->
+ <span t-field="o.company_id.partner_id.name"/>
+
+ <!-- (3) Domicilio Comercial (Domicilio Fiscal is the same) -->
+ <br/>
+ <div></div>
+ <!-- we dont use the address widget as it adds a new line on the phone and we want to reduce at maximum lines qty -->
+ <t t-esc="' - '.join([item for item in [
+ ', '.join([item for item in [header_address.street, header_address.street2] if item]),
+ header_address.city,
+ header_address.state_id and header_address.state_id.name,
+ header_address.zip,
+ header_address.country_id and header_address.country_id.name] if item])"/><span t-if="header_address.phone"> - </span><span t-if="header_address.phone" style="white-space: nowrap;" t-esc="'Tel: ' + header_address.phone"/>
+ <br/>
+ <span t-att-style="'color: %s;' % o.company_id.primary_color" t-esc="' - '.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-right" style="padding-left: 0px;">
+
+ <t t-if="not pre_printed_report">
+ <!-- (7) Numero punto venta - (8) numero de documento -->
+ <span t-att-style="'color: %s;' % o.company_id.secondary_color">Nro: </span><span t-esc="report_number"/>
+ </t>
+ <br/>
+
+ <!-- (9) Fecha -->
+ <span t-att-style="'color: %s;' % o.company_id.secondary_color">Date: </span><span t-esc="report_date" t-options='{"widget": "date"}'/>
+
+ <t t-if="not pre_printed_report">
+ <!-- (5) Condicion de IVA / Responsabilidad -->
+ <!-- (10) CUIT -->
+ <br/>
+ <span t-field="o.company_id.l10n_ar_afip_responsibility_type_id"/><span t-att-style="'color: %s;' % o.company_id.secondary_color"> - CUIT: </span><span t-field="o.company_id.partner_id.l10n_ar_formatted_vat"/>
+
+ <!-- (11) IIBB: -->
+ <!-- (12) Inicio de actividades -->
+ <br/><span t-att-style="'color: %s;' % o.company_id.secondary_color">IIBB: </span><span t-esc="o.company_id.l10n_ar_gross_income_type == 'exempt' and 'Exento' or o.company_id.l10n_ar_gross_income_number"/><span t-att-style="'color: %s;' % o.company_id.secondary_color"> - Activities Start: </span><span t-field="o.company_id.l10n_ar_afip_start_date"/>
+ </t>
+
+ </div>
+ </div>
+ </div>
+ </template>
+
+ <template id="report_invoice_document" inherit_id="account.report_invoice_document" primary="True">
+ <!-- custom header and footer -->
+ <t t-set="o" position="after">
+ <t t-set="custom_header" t-value="'l10n_ar.custom_header'"/>
+ <t t-set="report_date" t-value="o.invoice_date"/>
+ <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="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"/>
+
+ <t t-set="custom_footer">
+ <div class="row">
+ <div name="footer_left_column" class="col-8 text-left">
+ </div>
+ <div name="footer_right_column" class="col-4 text-right">
+ <div name="pager" t-if="report_type == 'pdf'">
+ Page: <span class="page"/> / <span class="topage"/>
+ </div>
+ </div>
+ </div>
+ </t>
+ <t t-set="fiscal_bond" t-value="o.journal_id.l10n_ar_afip_pos_system in ['BFERCEL', 'BFEWS']"/>
+ </t>
+
+ <!-- remove default partner address -->
+ <t t-set="address" position="replace"/>
+
+ <!-- remove default document title -->
+ <h2 position="replace"/>
+
+ <!-- NCM column for fiscal bond -->
+ <th name="th_description" position="after">
+ <th t-if="fiscal_bond" name="th_ncm_code" class="text-left"><span>NCM</span></th>
+ </th>
+ <td name="account_invoice_line_name" position="after">
+ <td t-if="fiscal_bond" name="ncm_code"><span t-field="line.product_id.l10n_ar_ncm_code"/></td>
+ </td>
+
+ <!-- use latam prices (to include/exclude VAT) -->
+ <xpath expr="//span[@t-field='line.price_unit']" position="attributes">
+ <attribute name="t-field">line.l10n_latam_price_unit</attribute>
+ </xpath>
+ <xpath expr="//span[@id='line_tax_ids']" position="attributes">
+ <attribute name="t-esc">', '.join(map(lambda x: (x.description or x.name), line.l10n_latam_tax_ids))</attribute>
+ </xpath>
+ <t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" position="attributes">
+ <attribute name="t-value">current_subtotal + line.l10n_latam_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 + line.l10n_latam_price_subtotal</attribute>
+ </t>
+ <!-- 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>
+ <span t-field="line.price_subtotal" position="attributes">
+ <attribute name="t-field">line.l10n_latam_price_subtotal</attribute>
+ </span>
+ <!-- if b2c we still wants the latam subtotal -->
+ <span t-field="line.price_total" position="attributes">
+ <attribute name="t-field">line.l10n_latam_price_subtotal</attribute>
+ </span>
+ <span t-field="o.amount_untaxed" position="attributes">
+ <attribute name="t-field">o.l10n_latam_amount_untaxed</attribute>
+ </span>
+
+ <!-- use column vat instead of taxes and only if vat discriminated -->
+ <xpath expr="//th[@name='th_taxes']/span" position="replace">
+ <span>% VAT</span>
+ </xpath>
+
+ <xpath expr="//th[@name='th_taxes']" position="attributes">
+ <attribute name="t-if">o.amount_by_group</attribute>
+ </xpath>
+
+ <!-- use column vat instead of taxes and only list vat taxes-->
+ <xpath expr="//span[@id='line_tax_ids']/.." position="attributes">
+ <attribute name="t-if">o.amount_by_group</attribute>
+ </xpath>
+ <span id="line_tax_ids" position="attributes">
+ <attribute name="t-esc">', '.join(map(lambda x: (x.description or x.name), line.l10n_latam_tax_ids.filtered(lambda x: x.tax_group_id.l10n_ar_vat_afip_code)))</attribute>
+ </span>
+
+ <!-- remove payment reference that is not used in Argentina -->
+ <xpath expr="//span[@t-field='o.payment_reference']/../.." position="replace"/>
+
+ <!-- replace information section and usage argentinean style -->
+ <div id="informations" position="replace">
+ <div id="informations" class="row mt8 mb8">
+ <div class="col-6">
+
+ <!-- IDENTIFICACION (ADQUIRIENTE-LOCATARIO-PRESTARIO) -->
+
+ <!-- (14) Apellido uy Nombre: Denominicacion o Razon Soclial -->
+ <strong>Customer: </strong><span t-field="o.partner_id.commercial_partner_id.name"/>
+
+ <!-- (15) Domicilio Comercial -->
+ <br/>
+ <span t-field="o.partner_id" t-options="{'widget': 'contact', 'fields': ['address'], 'no_marker': true, 'no_tag_br': True}"/>
+
+ <!-- (16) Responsabilidad AFIP -->
+ <strong>VAT Cond: </strong><span t-field="o.partner_id.l10n_ar_afip_responsibility_type_id"/>
+
+ <!-- (17) CUIT -->
+ <t t-if="o.partner_id.vat and o.partner_id.l10n_latam_identification_type_id and o.partner_id.l10n_latam_identification_type_id.l10n_ar_afip_code != '99'">
+ <br/><strong><t t-esc="o.partner_id.l10n_latam_identification_type_id.name or o.company_id.country_id.vat_label" id="inv_tax_id_label"/>:</strong> <span t-esc="o.partner_id.l10n_ar_formatted_vat if o.partner_id.l10n_latam_identification_type_id.is_vat else o.partner_id.vat"/>
+ </t>
+
+ </div>
+ <div class="col-6">
+
+ <t t-if="o.invoice_date_due">
+ <strong>Due Date: </strong>
+ <span t-field="o.invoice_date_due"/>
+ </t>
+
+ <t t-if="o.invoice_payment_term_id" name="payment_term">
+ <br/><strong>Payment Terms: </strong><span t-field="o.invoice_payment_term_id.name"/>
+ </t>
+
+ <t t-if="o.invoice_origin">
+ <br/><strong>Source:</strong>
+ <span t-field="o.invoice_origin"/>
+ </t>
+
+ <t t-if="o.ref">
+ <br/><strong>Reference:</strong>
+ <span t-field="o.ref"/>
+ </t>
+
+ <!-- (18) REMITOS -->
+ <!-- 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"/>
+ </t>
+
+ </div>
+
+ </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'}">
+
+ <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-esc="'%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"/>
+ </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">
+ <br/><strong>CBU for payment: </strong><span t-esc="o.partner_bank_id.acc_number or '' if o.partner_bank_id.acc_type == 'cbu' else ''"/>
+ </t>
+
+ </div>
+ </xpath>
+
+ <!-- RG 5003: Add legend for 'A' documents that have a Monotribuista receptor -->
+ <p 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
+ </p>
+ </p>
+
+ </template>
+
+ <!-- FIXME: Temp fix to allow fetching invoice_documemt in Studio Reports with localisation -->
+ <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"/>
+ </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>
diff --git a/addons/l10n_ar/views/res_company_view.xml b/addons/l10n_ar/views/res_company_view.xml
new file mode 100644
index 00000000..b338f06b
--- /dev/null
+++ b/addons/l10n_ar/views/res_company_view.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record model="ir.ui.view" id="view_company_form">
+ <field name="name">res.company.form.inherit</field>
+ <field name="inherit_id" ref="base.view_company_form"/>
+ <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_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'])]}"/>
+ </div>
+ <field name="l10n_ar_afip_start_date" attrs="{'invisible': [('country_code', '!=', 'AR')]}"/>
+ </field>
+ </field>
+ </record>
+</odoo>
diff --git a/addons/l10n_ar/views/res_country_view.xml b/addons/l10n_ar/views/res_country_view.xml
new file mode 100644
index 00000000..ebcfa838
--- /dev/null
+++ b/addons/l10n_ar/views/res_country_view.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="view_res_country_form" model="ir.ui.view">
+ <field name="name">res.country.form</field>
+ <field name="model">res.country</field>
+ <field name="inherit_id" ref="base.view_country_form"/>
+ <field name="arch" type="xml">
+ <field name="code" position="after">
+ <field name="l10n_ar_afip_code" groups="base.group_no_one"/>
+ <field name="l10n_ar_natural_vat"/>
+ <field name="l10n_ar_legal_entity_vat"/>
+ <field name="l10n_ar_other_vat"/>
+ </field>
+ </field>
+ </record>
+
+ <record id="view_res_country_tree" model="ir.ui.view">
+ <field name="name">res.country.tree</field>
+ <field name="model">res.country</field>
+ <field name="inherit_id" ref="base.view_country_tree"/>
+ <field name="arch" type="xml">
+ <field name="code" position="after">
+ <field name="l10n_ar_afip_code" groups="base.group_no_one"/>
+ <field name="l10n_ar_natural_vat"/>
+ <field name="l10n_ar_legal_entity_vat"/>
+ <field name="l10n_ar_other_vat"/>
+ </field>
+ </field>
+ </record>
+
+</odoo>
diff --git a/addons/l10n_ar/views/res_currency_view.xml b/addons/l10n_ar/views/res_currency_view.xml
new file mode 100644
index 00000000..fe267e70
--- /dev/null
+++ b/addons/l10n_ar/views/res_currency_view.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record model="ir.ui.view" id="view_currency_form">
+ <field name="name">res.currency.form</field>
+ <field name="inherit_id" ref="base.view_currency_form"/>
+ <field name="model">res.currency</field>
+ <field name="arch" type="xml">
+ <field name="name" position="after">
+ <field name="l10n_ar_afip_code"/>
+ </field>
+ </field>
+ </record>
+
+</odoo>
diff --git a/addons/l10n_ar/views/res_partner_view.xml b/addons/l10n_ar/views/res_partner_view.xml
new file mode 100644
index 00000000..09cf9bec
--- /dev/null
+++ b/addons/l10n_ar/views/res_partner_view.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <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="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>
+ </field>
+ </record>
+
+ <record id="view_partner_property_form" model="ir.ui.view">
+ <field name="name">res.partner.form</field>
+ <field name="model">res.partner</field>
+ <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">
+ <group name="gross_income">
+ <label for="l10n_ar_gross_income_number" string="Gross Income"/>
+ <div>
+ <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'])]}"/>
+ </div>
+ </group>
+ </field>
+
+ </field>
+ </record>
+
+ <record id="view_res_partner_filter" model="ir.ui.view">
+ <field name="name">view.res.partner.filter.inherit</field>
+ <field name="model">res.partner</field>
+ <field name="inherit_id" ref="base.view_res_partner_filter"/>
+ <field name="arch" type="xml">
+ <field name="category_id" position="after">
+ <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>
+ </field>
+ </record>
+
+</odoo>
diff --git a/addons/l10n_ar/views/uom_uom_view.xml b/addons/l10n_ar/views/uom_uom_view.xml
new file mode 100644
index 00000000..5a02b931
--- /dev/null
+++ b/addons/l10n_ar/views/uom_uom_view.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="product_uom_tree_view" model="ir.ui.view">
+ <field name="name">uom.uom.tree</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>
+ </field>
+ </record>
+
+ <record id="product_uom_form_view" model="ir.ui.view">
+ <field name="name">uom.uom.form</field>
+ <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>
+ </field>
+ </record>
+
+</odoo>