Skip to content

[FIX] l10n_uy_ux: Use report get params for e-rem#409

Open
zaoral wants to merge 1 commit into
ingadhoc:18.0from
adhoc-dev:18.0-t-63366-kz
Open

[FIX] l10n_uy_ux: Use report get params for e-rem#409
zaoral wants to merge 1 commit into
ingadhoc:18.0from
adhoc-dev:18.0-t-63366-kz

Conversation

@zaoral
Copy link
Copy Markdown
Contributor

@zaoral zaoral commented Apr 7, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 7, 2026 19:45
@roboadhoc
Copy link
Copy Markdown
Contributor

Pull request status dashboard

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Este PR ajusta la lógica de _get_report_params() en l10n_uy_ux para que el uso de parámetros de reporte aplique también a documentos tipo e-Remito, alineando el comportamiento con el resto de CFEs contemplados.

Changes:

  • Se incluye el tipo de documento l10n_uy.dc_e_remito dentro del conjunto de códigos habilitados para el parámetro de reporte "ingles".

Comment on lines 116 to 119
| self.env.ref("l10n_uy.dc_cn_e_inv_exp")
| self.env.ref("l10n_uy.dc_dn_e_inv_exp")
| self.env.ref("l10n_uy.dc_e_remito")
).mapped("code")
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.env.ref("l10n_uy.dc_e_remito") puede lanzar ValueError si ese XML ID no existe (p.ej. instalaciones con l10n_uy_ux sin l10n_uy_edi_stock, que es quien lo define en este repo). Para evitar que _get_report_params() falle al imprimir, conviene resolver la referencia de forma segura (raise_if_not_found=False) y sólo agregarla al recordset si existe, o bien declarar la dependencia explícita si realmente es obligatoria para este módulo.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants