Skip to content

Commit

Permalink
[FIX] l10n_cl: error message weird space
Browse files Browse the repository at this point in the history
Before this commit, the '/' create a weird space in the error message.

closes odoo#173375

Task: 4041892
Enterprise: odoo/enterprise#66767
Related: odoo/enterprise#66767
Signed-off-by: Ricardo Gomes Rodrigues (rigr) <rigr@odoo.com>
  • Loading branch information
malb-odoo committed Jul 24, 2024
1 parent 9daefd0 commit c5852cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/l10n_cl/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit c5852cf

Please sign in to comment.