Various fields may use Python code or Python expressions. The following variables can be used:
+uid
, user
: User on which the rule is triggeredenv
: Odoo Environment on which the rule is triggeredmodel
: Odoo Model of the record on which the rule is triggeredtime
, datetime
, dateutil
, timezone
: useful Python librariesdate_format
, datetime_format
: server date and time formatslogger.info(message)
: Python logging frameworkWarning
: Warning Exception to use with raise