From b4de4a2cddce56c1208a6f293befe312ccdf8d8b Mon Sep 17 00:00:00 2001 From: Andhitia Rama Date: Sat, 10 Feb 2024 10:03:05 +0700 Subject: [PATCH] [UPD] ssi_voucher_mixin * Only posted journal entry can be imported --- ssi_voucher_mixin/wizards/wizard_import_move_line.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ssi_voucher_mixin/wizards/wizard_import_move_line.py b/ssi_voucher_mixin/wizards/wizard_import_move_line.py index fce111e..02ae67a 100644 --- a/ssi_voucher_mixin/wizards/wizard_import_move_line.py +++ b/ssi_voucher_mixin/wizards/wizard_import_move_line.py @@ -63,6 +63,7 @@ def onchange_move_line_ids(self): ("account_id.reconcile", "=", True), ("reconciled", "=", False), ("partner_id", "=", commercial_partner_id), + ("state", "=", "posted"), ] if self.import_type == "dr": criteria.append(("debit", ">", 0))