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
3ab81c05
Commit
3ab81c05
authored
14 years ago
by
Fabien Pinckaers
Browse files
Options
Downloads
Plain Diff
merge
bzr revid: fp@tinyerp.com-20101017182615-fkr1vp682ru3e32s
parents
ac8476b5
51acd5e8
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
bin/addons/base/ir/ir_ui_menu.py
+2
-2
2 additions, 2 deletions
bin/addons/base/ir/ir_ui_menu.py
with
2 additions
and
2 deletions
bin/addons/base/ir/ir_ui_menu.py
+
2
−
2
View file @
3ab81c05
...
...
@@ -82,14 +82,14 @@ class ir_ui_menu(osv.osv):
'
action
'
:
'
ir.actions.act_window,
'
+
str
(
action_id
),
'
parent_id
'
:
shortcut_menu_id
,
'
icon
'
:
'
STOCK_JUSTIFY_FILL
'
}
menu_id
=
self
.
pool
.
get
(
'
ir.ui.menu
'
).
create
(
cr
,
uid
,
menu_data
)
menu_id
=
self
.
pool
.
get
(
'
ir.ui.menu
'
).
create
(
cr
,
1
,
menu_data
)
sc_data
=
{
'
name
'
:
values
[
'
name
'
],
'
sequence
'
:
1
,
'
res_id
'
:
menu_id
}
sc_menu_id
=
self
.
pool
.
get
(
'
ir.ui.view_sc
'
).
create
(
cr
,
uid
,
sc_data
,
new_context
)
user_groups
=
set
(
self
.
pool
.
get
(
'
res.users
'
).
read
(
cr
,
1
,
uid
,
[
'
groups_id
'
])[
'
groups_id
'
])
key
=
(
cr
.
dbname
,
shortcut_menu_id
,
tuple
(
user_groups
))
self
.
_cache
[
key
]
=
True
return
True
return
action_id
def
search
(
self
,
cr
,
uid
,
args
,
offset
=
0
,
limit
=
None
,
order
=
None
,
context
=
None
,
count
=
False
):
...
...
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