Commit 1f18510b authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Filter by non disabled don't work like this

The amount of disable should be too small, so no need to worry so much here.
parent 74bdcd8d
......@@ -4,15 +4,9 @@ if portal.ERP5Site_isSupportRequestCreationClosed():
# Stop verification if there are too much tickets
return
monitor_disabled_category = portal.restrictedTraverse(
"portal_categories/monitor_scope/disabled", None)
from Products.ZSQLCatalog.SQLCatalog import Query, NegatedQuery
portal.portal_catalog.searchAndActivate(
portal_type='Hosting Subscription',
validation_state='validated',
default_monitor_scope_uid = NegatedQuery(Query(default_monitor_scope_uid=monitor_disabled_category.getUid())),
method_id='HostingSubscription_checkSoftwareInstanceState',
activate_kw = {'tag':tag}
)
......
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