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
0c684860
Commit
0c684860
authored
14 years ago
by
Mustufa Rangwala
Browse files
Options
Downloads
Plain Diff
[MERGE] merge from trunk addons
bzr revid: mra@mra-laptop-20101018082435-1f53b9030yh07yek
parents
595ef2d6
c0cce965
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/product/product.py
+18
-0
18 additions, 0 deletions
addons/product/product.py
with
18 additions
and
0 deletions
addons/product/product.py
+
18
−
0
View file @
0c684860
...
...
@@ -732,3 +732,21 @@ class pricelist_partnerinfo(osv.osv):
pricelist_partnerinfo
()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
class
res_users
(
osv
.
osv
):
_inherit
=
'
res.users
'
def
_get_group
(
self
,
cr
,
uid
,
context
):
result
=
super
(
res_users
,
self
).
_get_group
(
cr
,
uid
,
context
)
dataobj
=
self
.
pool
.
get
(
'
ir.model.data
'
)
try
:
dummy
,
group_id
=
dataobj
.
get_object_reference
(
cr
,
1
,
'
product
'
,
'
group_product_manager
'
)
result
.
append
(
group_id
)
except
ValueError
:
# If these groups does not exists anymore
pass
return
result
_defaults
=
{
'
groups_id
'
:
_get_group
,
}
res_users
()
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