Skip to content

Commit

Permalink
[FIX] no se pueden eliminar facturas publicadas con ncf.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcape14 committed Mar 28, 2024
1 parent e97c5e6 commit 7c4d676
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions l10n_do_accounting/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,7 @@ def _get_name_invoice_report(self):

def unlink(self):
if self.filtered(
lambda inv: inv.is_purchase_document()
and inv.country_code == "DO"
lambda inv: inv.country_code == "DO"
and inv.l10n_latam_use_documents
and inv.posted_before
):
Expand Down

0 comments on commit 7c4d676

Please sign in to comment.