Skip to content

Commit

Permalink
[FIX] l10n_uy_ux: deleted cast str () in error response
Browse files Browse the repository at this point in the history
closes #278

Signed-off-by: Katherine Zaoral <[email protected]>
  • Loading branch information
jue-adhoc committed Jan 17, 2025
1 parent f29aaba commit feab638
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions l10n_uy_ux/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,11 @@ def action_l10n_uy_get_data_from_dgi(self):
# Este campo no existe en odoo base, asi que tenemos que
# removerlo siempre del values
values.pop("street_number")
elif response.findtext(".//{*}CodRta") == "01":
raise UserError(_("%s. Si está en un ambiente de testing, usted puede consultar los siguientes RUTs: "
"219999830019, 219999820013, 219000090011", response.findtext(".//{*}MensajeRta")))
else:
raise UserError(_(
"There was an error in the response %s". str(etree.tostring(response, pretty_print=True))))
raise UserError(_("There was an error in the response %s", etree.tostring(response, pretty_print=True)))
else:
raise UserError(_("You can only check if the partner has a RUT identification type"))

Expand Down

0 comments on commit feab638

Please sign in to comment.