Conversation
Contributor
- The special CAE is a property of the taxpayer, so Uruware signs every CFE of the company with it, export ones included: DGI then requires MntBruto = 3 on them too (Formato CFE, zone A field 10 is conditional for e-Fac Exp / its NC-ND, and zone G field 5 states "Si G-C5=2, 3 o 4, A-C10 debe ser igual a 3"). Drop the export exclusion from _l10n_uy_edi_apply_special_regime; export lines keep their own billing indicator (IndFact = 10) since the 16 mapping only replaces VAT rate indicators, and the pre-send taxed-lines check still excludes exports (the native check already rejects taxed lines on them) - _post: mirror the soft=True filter of super() so a future-dated offending draft (not being posted in this pass) does not abort the posting of the valid moves of the batch - Tests: expo expected XML is now the l10n_uy_edi standard one plus MntBruto = 3 Change note: Corrección complementaria para compañías bajo régimen Literal E (IVA mínimo): las facturas de exportación ahora también incluyen el indicador de montos brutos que exige DGI cuando el comprobante se firma con CAE especial, evitando rechazos que inutilizan numeración. Además, al validar facturas en lote, un borrador con fecha futura que tenga impuestos incorrectos ya no impide confirmar el resto de las facturas del lote.
jue-adhoc
force-pushed
the
19.0-t-73403-jue-1
branch
from
September 8, 2026 17:59
973b171 to
e3d6c4a
Compare
Contributor
|
@roboadhoc r+ bump |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Complementario a #443 (ya mergeado): aplica los últimos comentarios del review que correspondían. Rebasado sobre 19.0 — el PR contiene solo el commit del fix.
1. MntBruto también en CFE de exportación (observación confirmada)
La exclusión de exportación del
MntBruto = 3era un error: el CAE especial es una propiedad del contribuyente, así que Uruware firma todos los CFE de la compañía con él, exportación incluida (verificado en XML firmados reales de homologación: e-Factura Exportación conCAEEspecial=2). Y la norma lo exige:Se elimina la exclusión de expo en
_l10n_uy_edi_apply_special_regime(). Las líneas de exportación conservan su indicador propio (IndFact = 10, el mapeo a 16 solo reemplaza indicadores de tasa), y el bloqueo pre-envío de líneas gravadas sigue excluyendo expo (el chequeo nativo ya las rechaza).Nota alcance e-Remito: no requiere cambios — en la misma matriz, A-C10 es "no corresponde" (0) para e-Rem y e-Rem Exp, así que el
MntBruto = Nonedel10n_uy_edi_stockes correcto por norma.2.
_postconsoft=True(observación confirmada)Se espeja el filtro de
super(): los borradores con fecha futura (que no se postean en esa pasada, quedan para auto-post) ya no se validan, así un infractor con fecha futura no aborta el posteo de los movimientos válidos del batch.Tests
l10n_uy_edimásMntBruto = 3(testtest_110).0 failed, 0 error(s) of 12 tests.Task: https://www.adhoc.inc/odoo/project.task/73403