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
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