[IMP] l10n_ar: total amount in letters for MiPyMEs

According to the Argentinean law N° 27440, it is required for MiPyMEs
document types to show in the report the total amount in letters.

closes odoo/odoo#80669

X-original-commit: 9ae95a9a69fd3316b1a217225e8ebacbb51b8fe8
Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
Bruno Zanotti
2021-12-01 11:50:46 +00:00
committed by wan
parent 10632d8ce3
commit c80eaa9ddf
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
{
'name': 'Argentina - Accounting',
'icon': '/base/static/img/country_flags/ar.png',
'version': "3.4",
'version': "3.5",
'description': """
Functional
----------
+8
View File
@@ -247,6 +247,14 @@
</div>
</xpath>
<!-- Show total amount in letters for MiPyMEs document types according to the law
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-esc="o.currency_id.with_context(lang='es_AR').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'" >