Commit 8e945c95 authored by Rafael Monnerat's avatar Rafael Monnerat

ERP5Form: Really ignore the form if it is in the ignore list.

parent e6fc1116
...@@ -1362,7 +1362,7 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate): ...@@ -1362,7 +1362,7 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
is_field_library = self.getId().endswith('FieldLibrary') is_field_library = self.getId().endswith('FieldLibrary')
if self.pt == 'form_view' and not is_field_library: if self.pt == 'form_view' and not is_field_library:
if self.getId() not in CodingStyle.ignored_skin_id_set:
translated_workflow_state_title_field_re = re.compile('my_translated_.*state_title$') translated_workflow_state_title_field_re = re.compile('my_translated_.*state_title$')
def isTranslatedWorkflowStateTitleField(f): def isTranslatedWorkflowStateTitleField(f):
return translated_workflow_state_title_field_re.match(f.getId()) is not None return translated_workflow_state_title_field_re.match(f.getId()) is not None
......
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