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
088f1e3f
Unverified
Commit
088f1e3f
authored
7 years ago
by
Wolfgang Taferner
Committed by
Martin Trigaux
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] base: load translation files in correct dependency order
Fixes #19824 opw-776928
parent
bbc226cd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
odoo/addons/base/module/module.py
+8
-1
8 additions, 1 deletion
odoo/addons/base/module/module.py
with
8 additions
and
1 deletion
odoo/addons/base/module/module.py
+
8
−
1
View file @
088f1e3f
...
...
@@ -26,6 +26,7 @@ import odoo
from
odoo
import
api
,
fields
,
models
,
modules
,
tools
,
_
from
odoo.exceptions
import
AccessDenied
,
UserError
from
odoo.tools.parse_version
import
parse_version
from
odoo.tools.misc
import
topological_sort
_logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -763,7 +764,13 @@ class Module(models.Model):
filter_lang
=
[
lang
.
code
for
lang
in
langs
]
elif
not
isinstance
(
filter_lang
,
(
list
,
tuple
)):
filter_lang
=
[
filter_lang
]
mod_names
=
[
mod
.
name
for
mod
in
self
if
mod
.
state
in
(
'
installed
'
,
'
to install
'
,
'
to upgrade
'
)]
update_mods
=
self
.
filtered
(
lambda
r
:
r
.
state
in
(
'
installed
'
,
'
to install
'
,
'
to upgrade
'
))
mod_dict
=
{
mod
.
name
:
mod
.
dependencies_id
.
mapped
(
'
name
'
)
for
mod
in
update_mods
}
mod_names
=
topological_sort
(
mod_dict
)
self
.
env
[
'
ir.translation
'
].
load_module_terms
(
mod_names
,
filter_lang
)
@api.multi
...
...
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