From 430feed37d317779a084b279f5e16cb555a9dbdd Mon Sep 17 00:00:00 2001 From: Monson Shao Date: Tue, 13 Apr 2021 17:05:39 +0800 Subject: [PATCH] Allow non-currency transaction Currency validation was introduced in 1b2b7907f304ccca982502227cb0be912c799951, but gnucash doesn't enforce that. --- piecash/core/transaction.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/piecash/core/transaction.py b/piecash/core/transaction.py index dfe5218..645f288 100644 --- a/piecash/core/transaction.py +++ b/piecash/core/transaction.py @@ -314,11 +314,6 @@ def validate(self): if old["STATE_CHANGES"][-1] == "deleted": return - if self.currency.namespace != "CURRENCY": - raise GncValidationError( - "You are assigning a non currency commodity to a transaction" - ) - # check all accounts related to the splits of the transaction are not placeholder(=frozen) for sp in self.splits: if sp.account.placeholder != 0: