Commit a0fba9f6 authored by Jérome Perrin's avatar Jérome Perrin

Search dialog: Generate search fields for _reference columns

But not source_reference / destination_reference which are not relation
parent f1507044
...@@ -244,6 +244,9 @@ def getSearchDialog(self, REQUEST=None): ...@@ -244,6 +244,9 @@ def getSearchDialog(self, REQUEST=None):
short_column_id = short_column_id[:-len('_translated_title')] short_column_id = short_column_id[:-len('_translated_title')]
if short_column_id.endswith('_title'): if short_column_id.endswith('_title'):
short_column_id = short_column_id[:-len('_title')] short_column_id = short_column_id[:-len('_title')]
if short_column_id.endswith('_reference') and short_column_id not in (
'source_reference', 'destination_reference'):
short_column_id = short_column_id[:-len('_reference')]
if short_column_id.startswith('default_'): if short_column_id.startswith('default_'):
short_column_id = short_column_id[len('default_'):] short_column_id = short_column_id[len('default_'):]
if short_column_id in base_category_list: if short_column_id in base_category_list:
......
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