Skip to content

Commit 737f5d2

Browse files
zaoraljue-adhoc
authored andcommitted
[ADD] l10n_uy_edi: Section F required new fields
CFE DGI new version 25 closes #396 Signed-off-by: Julia Elizondo - jue (#l10n) <jue@adhoc.com.ar>
1 parent 6848502 commit 737f5d2

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

l10n_uy_edi/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'author': 'ADHOC SA',
88
'category': 'Localization',
99
'license': 'LGPL-3',
10-
'version': "16.0.1.12.0",
10+
'version': "16.0.1.13.0",
1111
'depends': [
1212
'l10n_uy_account',
1313
'account_debit_note',

l10n_uy_edi/data/cfe_template.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@
8686
<TpoDocRef t-out="referencia['TpoDocRef']"/>
8787
<Serie t-out="referencia['Serie']"/>
8888
<NroCFERef t-out="referencia['NroCFERef']"/>
89-
<!-- <FechaCFEref t-out="referencia['FechaCFEref']"/> -->
89+
<FechaCFEref t-out="referencia['FechaCFEref']"/>
90+
<MntCFEref t-out="referencia['MntCFEref']"/>
91+
<TpoMonedaRef t-out="referencia['TpoMonedaRef']"/>
92+
<TpoCambioRef t-out="referencia['TpoCambioRef']"/>
9093
</Referencia>
9194
</Referencia>
9295
<t t-out="'&lt;/' + cfe_tag + '&gt;'"/>

l10n_uy_edi/models/l10n_uy_cfe.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from odoo.tools import format_amount, safe_eval, html2plaintext, cleanup_xml_node
1818
from . import ucfe_errors
1919

20-
2120
_logger = logging.getLogger(__name__)
2221

2322

@@ -128,6 +127,7 @@ class L10nUyCfe(models.AbstractModel):
128127
('4', 'Bienes propios a exclaves aduaneros'),
129128
('90', 'Régimen general- exportación de servicios'),
130129
('99', 'Otras transacciones'),
130+
("91", "Exportación bajo mandato"),
131131
], 'Modalidad de Venta', help="Este campo debe enviarse cuando se reporta un CFE de tipo e-Facutra de Exportación o su e-Remito")
132132
l10n_uy_cfe_transport_route = fields.Selection([
133133
('1', 'Marítimo'),
@@ -1424,7 +1424,10 @@ def _l10n_uy_get_cfe_referencia(self):
14241424
'TpoDocRef': tpo_doc_ref,
14251425
'Serie': document_number[0],
14261426
'NroCFERef': document_number[1],
1427-
# 'FechaCFEref': 2015-01-31, TODO inform?
1427+
"FechaCFEref": related_cfe.invoice_date, # F7
1428+
"MntCFEref": float_repr(related_cfe.amount_total, 2) , # F8
1429+
"TpoMonedaRef": related_cfe.currency_id.name if related_cfe.currency_id else related_cfe.company_id.currency_id.name, # F9
1430+
"TpoCambioRef": float_repr(related_cfe.l10n_uy_currency_rate, 2), # F10
14281431
})
14291432
return res
14301433

0 commit comments

Comments
 (0)