From c5852cf68302b7bffe42af5237acbd97ca81a02f Mon Sep 17 00:00:00 2001 From: "Maximilien (malb)" Date: Thu, 11 Jul 2024 17:26:08 +0200 Subject: [PATCH] [FIX] l10n_cl: error message weird space Before this commit, the '/' create a weird space in the error message. closes odoo/odoo#173375 Task: 4041892 Enterprise: https://github.com/odoo/enterprise/pull/66767 Related: odoo/enterprise#66767 Signed-off-by: Ricardo Gomes Rodrigues (rigr) --- addons/l10n_cl/models/account_move.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/l10n_cl/models/account_move.py b/addons/l10n_cl/models/account_move.py index f557c8af5595d..b2aa6f60d44a6 100644 --- a/addons/l10n_cl/models/account_move.py +++ b/addons/l10n_cl/models/account_move.py @@ -71,8 +71,8 @@ def _check_document_types_post(self): if not ((tax_payer_type == '4' and latam_document_type_code in ['110', '111', '112']) or ( tax_payer_type == '3' and latam_document_type_code in ['39', '41', '61', '56'])): raise ValidationError(_( - 'Document types for foreign customers must be export type (codes 110, 111 or 112) or you \ - should define the customer as an end consumer and use receipts (codes 39 or 41)')) + 'Document types for foreign customers must be export type (codes 110, 111 or 112) or you ' + 'should define the customer as an end consumer and use receipts (codes 39 or 41)')) if rec.journal_id.type == 'purchase' and rec.journal_id.l10n_latam_use_documents: if vat != SII_VAT and latam_document_type_code == '914': raise ValidationError(_('The DIN document is intended to be used only with RUT 60805000-0'