Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
vauxoo
odoo
Commits
a688bcdb
Commit
a688bcdb
authored
Jan 29, 2016
by
Raphael Collet
Browse files
[FIX] fields: make `copy_cache` not invalidate the cache!
parent
08b28611
Changes
1
Hide whitespace changes
Inline
Side-by-side
openerp/fields.py
View file @
a688bcdb
...
...
@@ -64,9 +64,11 @@ def copy_cache(records, env):
for
record
,
target
in
zip
(
records
,
records
.
with_env
(
env
)):
if
not
target
.
_cache
:
for
name
,
value
in
record
.
_cache
.
iteritems
():
target
[
name
]
=
value
if
isinstance
(
value
,
BaseModel
):
target
.
_cache
[
name
]
=
value
.
with_env
(
env
)
copy_cache
(
value
,
env
)
else
:
target
.
_cache
[
name
]
=
value
def
resolve_all_mro
(
cls
,
name
,
reverse
=
False
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment