From 0f68b3b840da8caf968653c85bbabaad1efedb76 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Wed, 2 Feb 2011 06:28:34 +0000 Subject: [PATCH] For consistency, portal_type attribute for filesystem Property Sheets should be a tuple, not a string git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42920 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../PropertySheet/AccountingTransactionLineConstraint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5PropertySheetLegacy/PropertySheet/AccountingTransactionLineConstraint.py b/product/ERP5PropertySheetLegacy/PropertySheet/AccountingTransactionLineConstraint.py index 0a6560bbb6..e381daeac5 100644 --- a/product/ERP5PropertySheetLegacy/PropertySheet/AccountingTransactionLineConstraint.py +++ b/product/ERP5PropertySheetLegacy/PropertySheet/AccountingTransactionLineConstraint.py @@ -41,7 +41,7 @@ class AccountingTransactionLineConstraint: ' and not object.getDestination(portal_type="Account")', 'type': 'CategoryExistence', 'source' : 1, - 'portal_type': 'Account', + 'portal_type': ('Account',), 'message_category_not_set': 'Account must be defined on lines', }, { 'id': 'destination_existence', @@ -52,7 +52,7 @@ class AccountingTransactionLineConstraint: ' and not object.getSource(portal_type="Account")', 'type': 'CategoryExistence', 'destination' : 1, - 'portal_type': 'Account', + 'portal_type': ('Account',), 'message_category_not_set': 'Account must be defined on lines', }, -- 2.30.9