Commit a2101264 authored by Jérome Perrin's avatar Jérome Perrin

web: use setEmptyCriterionValid accessor directly

The accessor was added in 99cd5823 (erp5_property_sheets: Add
Predicate/empty_criterion_valid_property ., 2013-11-20) it's been
long enough to assume that every site have this property now.
parent e57f0fae
# List no document until at least one Criterion is created.
# BBB: property does not exist on old property sheets
getattr(context, 'setEmptyCriterionValid', lambda _: None)(False)
context.setEmptyCriterionValid(False)
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