muk_autovacuum_rules.search muk_autovacuum.rules muk_autovacuum_rules.tree muk_autovacuum.rules muk_autovacuum_rules.form muk_autovacuum.rules

Help with Python expressions

Various fields may use Python code or Python expressions. The following variables can be used:

  • uid, user: User on which the rule is triggered
  • env: Odoo Environment on which the rule is triggered
  • model: Odoo Model of the record on which the rule is triggered
  • b64encode, b64decode: Base64 converter
  • time, datetime, dateutil, timezone: useful Python libraries
  • date_format, datetime_format: server date and time formats
  • logger.info(message): Python logging framework
  • Warning: Warning Exception to use with raise
Auto Vacuum Rules muk_autovacuum.rules tree,form {'search_default_all': 1}