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
d72bf86b
Commit
d72bf86b
authored
13 years ago
by
Antony Lesuisse
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] category selection
bzr revid: al@openerp.com-20111005165202-s3jv23v7n5py4mx1
parent
55e0541b
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
addons/base_setup/base_setup.py
+7
-9
7 additions, 9 deletions
addons/base_setup/base_setup.py
with
7 additions
and
9 deletions
addons/base_setup/base_setup.py
+
7
−
9
View file @
d72bf86b
...
...
@@ -101,10 +101,13 @@ class base_setup_installer(osv.osv_memory):
module_ids
=
module_proxy
.
search
(
cr
,
uid
,
[],
context
=
context
)
for
module
in
module_proxy
.
browse
(
cr
,
uid
,
module_ids
,
context
=
context
):
result
[
'
module_%d
'
%
(
module
.
id
,)]
=
module
.
state
==
'
installed
'
category_name
=
'
category_%d
'
%
(
module
.
category_id
.
id
,)
if
not
result
.
get
(
'
category_name
'
):
result
[
category_name
]
=
module
.
state
==
'
installed
'
and
\
module
.
category_id
.
name
in
DEFAULT_MODULES
cat_proxy
=
self
.
pool
.
get
(
'
ir.module.category
'
)
cat_ids
=
cat_proxy
.
search
(
cr
,
uid
,
[],
context
=
context
)
for
cat
in
cat_proxy
.
browse
(
cr
,
uid
,
cat_ids
,
context
=
context
):
m
=
DEFAULT_MODULES
.
get
(
cat
.
name
,[])
r
=
module_proxy
.
search
(
cr
,
uid
,
[(
'
state
'
,
'
=
'
,
'
installed
'
),(
'
name
'
,
'
in
'
,
m
)])
result
[
'
category_%d
'
%
(
cat
.
id
,)]
=
bool
(
r
)
return
result
...
...
@@ -330,10 +333,6 @@ class base_setup_installer(osv.osv_memory):
# if need_install:
# self.pool = pooler.restart_pool(cr.dbname, update_module=True)[1]
# return
base_setup_installer
()
#Migrate data from another application Conf wiz
...
...
@@ -356,7 +355,6 @@ class product_installer(osv.osv_memory):
_inherit
=
'
res.config
'
_columns
=
{
'
customers
'
:
fields
.
selection
([(
'
create
'
,
'
Create
'
),
(
'
import
'
,
'
Import
'
)],
'
Customers
'
,
size
=
32
,
required
=
True
,
help
=
"
Import or create customers
"
),
}
_defaults
=
{
'
customers
'
:
'
create
'
,
...
...
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