Browse Source

publish muk_autovacuum - 12.0

pull/9/head
MuK IT GmbH 6 years ago
parent
commit
14ab1025b5
  1. 2
      muk_autovacuum/models/ir_autovacuum.py

2
muk_autovacuum/models/ir_autovacuum.py

@ -69,7 +69,7 @@ class AutoVacuum(models.AbstractModel):
records = model.with_context({'active_test': False}).search([], order=rule.size_order, limit=limit)
elif rule.state == 'domain':
_logger.info(_("GC domain: %s"), rule.domain)
domain = safe_eval(rule.domain, rules._get_eval_domain_context())
domain = safe_eval(rule.domain or "[]", rules._get_eval_domain_context())
records = model.with_context({'active_test': False}).search(domain)
if rule.only_attachments:
attachments = self.env['ir.attachment'].sudo().search([

Loading…
Cancel
Save