Commit 35a626fa authored by Fabien Morin's avatar Fabien Morin

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
parent 1f49870c
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment