Commit 2ffa2c60 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_upgrader: post upgrade alarm list all issues even when not solving

parent 1f70cdc0
active_process = context.getPortalObject().restrictedTraverse(active_process)
# We don't need check more if something is already inconsistent
if active_process.ActiveProcess_sense() and not fixit:
return
with context.defaultActivateParameterDict(activate_kw, placeless=True):
constraint_message_list = context.checkConsistency(
fixit=fixit, filter=filter_dict,)
if constraint_message_list and not active_process.getResultList():
if constraint_message_list:
active_process = context.getPortalObject().restrictedTraverse(active_process)
active_process.postActiveResult(
severity=0 if fixit else 1,
summary="%s Consistency - At least one inconsistent object found" % ('Fix' if fixit else 'Check', ),
......
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