|
@ -65,6 +65,7 @@ class ExceptionRule(models.Model): |
|
|
# base.exception line (ex rule_group = sale for sale order) |
|
|
# base.exception line (ex rule_group = sale for sale order) |
|
|
# - object: same as order or line, browse_record of the base.exception or |
|
|
# - object: same as order or line, browse_record of the base.exception or |
|
|
# base.exception line |
|
|
# base.exception line |
|
|
|
|
|
# - obj: same as object |
|
|
# - env: Odoo Environment (i.e. self.env) |
|
|
# - env: Odoo Environment (i.e. self.env) |
|
|
# - time: Python time module |
|
|
# - time: Python time module |
|
|
# - cr: database cursor |
|
|
# - cr: database cursor |
|
@ -195,7 +196,7 @@ class BaseException(models.AbstractModel): |
|
|
'obj': rec, |
|
|
'obj': rec, |
|
|
'env': self.env, |
|
|
'env': self.env, |
|
|
'cr': self.env.cr, |
|
|
'cr': self.env.cr, |
|
|
'uid': self.env.user.id, |
|
|
|
|
|
|
|
|
'uid': self.env.uid, |
|
|
'user': self.env.user, |
|
|
'user': self.env.user, |
|
|
'time': time, |
|
|
'time': time, |
|
|
# copy context to prevent side-effects of eval |
|
|
# copy context to prevent side-effects of eval |
|
|