diff --git a/l10n_uy_ux/models/account_move.py b/l10n_uy_ux/models/account_move.py index e56a7b49..e0d25cc4 100644 --- a/l10n_uy_ux/models/account_move.py +++ b/l10n_uy_ux/models/account_move.py @@ -305,7 +305,7 @@ def _uy_get_legends_recs(self, tipo_leyenda, record): res |= rec return res - @api.constrains("move_type", "journal_id", "name") + @api.constrains("move_type", "journal_id") def _uy_ux_check_moves_use_documents(self): """Do not let to create not invoices entries in journals that use documents""" # TODO simil to _check_moves_use_documents. integrate somehow @@ -314,7 +314,6 @@ def _uy_ux_check_moves_use_documents(self): and x.journal_id.type in ["sale", "purchase"] and x.l10n_latam_use_documents and not x.is_invoice() - and x.name not in ["/", False] ) if not_invoices: raise ValidationError(