We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a9e5d3 commit 8cf5ac7Copy full SHA for 8cf5ac7
1 file changed
l10n_uy_ux/models/account_move.py
@@ -66,6 +66,10 @@ def _post(self, soft=True):
66
return res
67
msg = self.env._("Error al intentar validar el documento en DGI")
68
for move in res.filtered(lambda m: m.l10n_uy_edi_is_needed):
69
+ if pre_checks_errors := move._l10n_uy_edi_check_move():
70
+ raise ValidationError(
71
+ self.env._("Errors occurred while evaluating the document: \n") + "\n".join(pre_checks_errors)
72
+ )
73
move._l10n_uy_edi_send()
74
if move.l10n_uy_edi_error:
75
move.message_post(body=msg + " %s" % (move.l10n_uy_edi_error))
0 commit comments