Browse Source

Merge pull request #1433 from bealdav/11-base_exception-fix-doc

FIX remove old api parameters in base_exception
pull/1438/head
Pedro M. Baeza 6 years ago
committed by GitHub
parent
commit
085e0fa6f5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      base_exception/README.rst
  2. 3
      base_exception/models/base_exception.py

5
base_exception/README.rst

@ -29,6 +29,11 @@ Bugs are tracked on `GitHub Issues
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.
Roadmap
-------
Terms used in old api like `pool`, `cr`, `uid` must be removed porting this module in version 12.
Images
------

3
base_exception/models/base_exception.py

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

Loading…
Cancel
Save