Commit 70b9884b authored by Rafael Monnerat's avatar Rafael Monnerat

ERP5Form: Ignore specific extra fields with state in the name

  Those 2 exceptions are from SlapOS Master codebase, and for now we cannot remove it.

  Rather them complexify the ignore lists, we are hardcoding the values for minimase the ignore list
  to the least entries as possible.
parent 764aba45
......@@ -1364,7 +1364,12 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
'my_initial_implementation_state',
'my_hot_reindexing_state',
'my_message_different_state',
)
) and (self.getId(), f.getId()) not in (
# Field used in API
('Ticket_viewAsHateoas', 'my_simulation_state_title'),
# Preference unrelated to workflow states.
('SystemPreference_viewSlapOS', 'my_preferred_shacache_website_expected_state'),
)
for group_name in self.get_groups():
field_list = self.get_fields_in_group(group_name)
......
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