diff --git a/l10n_do_accounting/i18n/es_DO.po b/l10n_do_accounting/i18n/es_DO.po index dcc09bf46..b054a422f 100644 --- a/l10n_do_accounting/i18n/es_DO.po +++ b/l10n_do_accounting/i18n/es_DO.po @@ -1334,10 +1334,3 @@ msgstr "" #, python-format msgid "special from Tax Paying" msgstr "Exento" - -#. module: l10n_do_accounting -#: code:addons/l10n_do_accounting/models/account_move.py:0 -#, python-format -msgid "You cannot cancel a draft fiscal invoice without Fiscal Number" -msgstr "No puede cancelar una factura fiscal en borrador sin NCF" - diff --git a/l10n_do_accounting/models/account_move.py b/l10n_do_accounting/models/account_move.py index 16e3b38da..6e8477058 100644 --- a/l10n_do_accounting/models/account_move.py +++ b/l10n_do_accounting/models/account_move.py @@ -365,9 +365,6 @@ def button_cancel(self): _("You cannot cancel multiple fiscal invoices at a time.") ) - if not fiscal_invoice.posted_before and not fiscal_invoice.l10n_do_fiscal_number: - raise ValidationError(_("You cannot cancel a draft fiscal invoice without Fiscal Number")) - if fiscal_invoice and not self.env.user.has_group( "l10n_do_accounting.group_l10n_do_fiscal_invoice_cancel" ):