From 33bf821675bc5cb7253ce76ec64f51865e6969d6 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Wed, 6 Apr 2022 22:21:31 +0200
Subject: [PATCH] Revert "Disable constraint on Payment Transaction."

This reverts commit 5dd7af44653fab4dee8b8e68f968b995668ba915.
---
 .../property_sheet_list.xml                                    | 3 +++
 .../bt/template_portal_type_property_sheet_list                | 1 +
 2 files changed, 4 insertions(+)

diff --git a/bt5/erp5_accounting/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_accounting/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
index fd574aaf32..d42eab5b2b 100644
--- a/bt5/erp5_accounting/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
+++ b/bt5/erp5_accounting/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
@@ -20,6 +20,9 @@
  <portal_type id="Internal Invoice Transaction Line">
   <item>AccountingTransactionLineConstraint</item>
  </portal_type>
+ <portal_type id="Payment Transaction">
+  <item>AccountingTransactionConstraint</item>
+ </portal_type>
  <portal_type id="Purchase Invoice Transaction">
   <item>AccountingTransactionConstraint</item>
  </portal_type>
diff --git a/bt5/erp5_accounting/bt/template_portal_type_property_sheet_list b/bt5/erp5_accounting/bt/template_portal_type_property_sheet_list
index 987f2b7d9e..6ac233deee 100644
--- a/bt5/erp5_accounting/bt/template_portal_type_property_sheet_list
+++ b/bt5/erp5_accounting/bt/template_portal_type_property_sheet_list
@@ -5,6 +5,7 @@ Balance Transaction | AccountingTransactionConstraint
 Cash Register | BankAccount
 Internal Invoice Transaction Line | AccountingTransactionLineConstraint
 Internal Invoice Transaction | AccountingTransactionConstraint
+Payment Transaction | AccountingTransactionConstraint
 Purchase Invoice Transaction Line | AccountingTransactionLineConstraint
 Purchase Invoice Transaction | AccountingTransactionConstraint
 Sale Invoice Transaction Line | AccountingTransactionLineConstraint
-- 
2.30.9