From 35a626fafccf853ef50cbbe309b67f702efd69d2 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Wed, 30 Apr 2008 21:05:21 +0000 Subject: [PATCH] add _free_text properties to be able to select them in erp5_ooo_import mapping. Special thanks to Jerome and mohamadou git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20866 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/ERP5Type.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5Type/ERP5Type.py b/product/ERP5Type/ERP5Type.py index 9bdaa088cd..c6820b7b08 100644 --- a/product/ERP5Type/ERP5Type.py +++ b/product/ERP5Type/ERP5Type.py @@ -423,6 +423,7 @@ class ERP5TypeInformation( FactoryTypeInformation, # get all properties from the property sheet list current_list = [] current_list += cat_list + current_list += ["%s_free_text" % cat for cat in cat_list] for base in ps_list: ps_property = getattr(base, '_properties', None) if type(ps_property) in (type(()), type([])): @@ -442,6 +443,7 @@ class ERP5TypeInformation( FactoryTypeInformation, for category in ps_property: if category not in current_list: current_list.append(category) + current_list.append('%s_free_text' % category) return current_list security.declareProtected(Permissions.AccessContentsInformation, -- 2.30.9