Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
7d732b10
Commit
7d732b10
authored
10 years ago
by
Xavier Morel
Browse files
Options
Downloads
Plain Diff
[FIX] broken translation cache for absent translation of 'false'
parents
cab80a02
740d5c6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openerp/addons/base/ir/ir_fields.py
+1
-2
1 addition, 2 deletions
openerp/addons/base/ir/ir_fields.py
with
1 addition
and
2 deletions
openerp/addons/base/ir/ir_fields.py
+
1
−
2
View file @
7d732b10
...
...
@@ -2,7 +2,6 @@
import
cStringIO
import
datetime
import
functools
import
operator
import
itertools
import
time
...
...
@@ -253,7 +252,7 @@ class ir_fields_converter(orm.Model):
tnx_ids
=
Translations
.
search
(
cr
,
uid
,
[(
'
type
'
,
'
in
'
,
types
),
(
'
src
'
,
'
=
'
,
src
)],
context
=
context
)
tnx
=
Translations
.
read
(
cr
,
uid
,
tnx_ids
,
[
'
value
'
],
context
=
context
)
result
=
tnx_cache
[
types
][
src
]
=
map
(
operator
.
itemgetter
(
'
value
'
),
tnx
)
result
=
tnx_cache
[
types
][
src
]
=
[
t
[
'
value
'
]
for
t
in
tnx
if
t
[
'
value
'
]
is
not
False
]
return
result
def
_str_to_selection
(
self
,
cr
,
uid
,
model
,
column
,
value
,
context
=
None
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment