Skip to content

Commit

Permalink
Revert "[IMP] l10n_do_accounting: do not allow cancel draft fiscal do…
Browse files Browse the repository at this point in the history
…cuments without ncf (#1076)"

This reverts commit e8ab624.
  • Loading branch information
jose-pcg committed Aug 9, 2023
1 parent e8ab624 commit eb74520
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions l10n_do_accounting/i18n/es_DO.po
Original file line number Diff line number Diff line change
Expand Up @@ -1247,10 +1247,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"

3 changes: 0 additions & 3 deletions l10n_do_accounting/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,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"
):
Expand Down

0 comments on commit eb74520

Please sign in to comment.