summaryrefslogtreecommitdiff
path: root/odoo/fields.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-01-29 13:17:12 +0100
committerChristophe Simonis <chs@odoo.com>2019-01-29 13:17:12 +0100
commitcd5c8a02f9560b2a8b5c39182adee7ade1bf595c (patch)
treec654b3d46020aa30fcc7c2724d200a93a807859b /odoo/fields.py
parent6c6ef6588fc374e86acdeeacba2842690b6f1a53 (diff)
parent36d96e015032d42449fe149c050df75050276fdc (diff)
[MERGE] forward port branch 11.0 up to 36d96e01503
Diffstat (limited to 'odoo/fields.py')
-rw-r--r--odoo/fields.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/odoo/fields.py b/odoo/fields.py
index d39fa6e35fa..36d815215ff 100644
--- a/odoo/fields.py
+++ b/odoo/fields.py
@@ -769,16 +769,6 @@ class Field(MetaField('DummyField', (object,), {})):
# Conversion of values
#
- def cache_key(self, record):
- """ Return the key to get/set the value of ``self`` on ``record`` in
- cache, the full cache key being ``(self, record.id, key)``.
- """
- env = record.env
- # IMPORTANT: odoo.api.Cache.get_records() depends on the fact that the
- # result does not depend on record.id. If you ever make the following
- # dependent on record.id, don't forget to fix the other method!
- return env if self.context_dependent else (env.cr, env.uid)
-
def null(self, record):
""" Return the null value for this field in the record format. """
return False