projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f6da82
)
[FIX] resource: default company get
author
mra (Open ERP)
<mra@tinyerp.com>
Mon, 17 May 2010 10:20:35 +0000
(15:50 +0530)
committer
mra (Open ERP)
<mra@tinyerp.com>
Mon, 17 May 2010 10:20:35 +0000
(15:50 +0530)
bzr revid: mra@tinyerp.com-
20100517102035
-qdrlw31jorssoluk
addons/resource/resource.py
patch
|
blob
|
history
diff --git
a/addons/resource/resource.py
b/addons/resource/resource.py
index
9981025
..
172d7e2
100644
(file)
--- a/
addons/resource/resource.py
+++ b/
addons/resource/resource.py
@@
-161,7
+161,7
@@
class resource_resource(osv.osv):
'resource_type' : 'user',
'time_efficiency' : 1,
'active' : True,
- 'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'resource.resource', c)
+ 'company_id': lambda self, cr, uid, context: self.pool.get('res.company')._company_default_get(cr, uid, 'resource.resource', context=context)
}
def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False):