Commit 68c77afb authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_core: fast track update simulation for quality insurance

parent 7b421875
......@@ -64,12 +64,15 @@ class SimulableMixin(Base):
def before_commit():
if kw:
path = self.getPath()
priority=3
if self.getPortalType() == "Manufacturing Order" and self.getLedger() and self.getLedger() == "manufacturing/quality_insurance":
priority=1
if aq_base(self.unrestrictedTraverse(path, None)) is aq_base(self):
self.activate(
activity='SQLQueue',
group_method_id='portal_rules/updateSimulation',
tag='build:' + path,
priority=3,
priority=priority,
)._updateSimulation(**kw)
del tv[key]
ignore.update(kw)
......
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