[IMP] google_docs :change for user

bzr revid: rpr@tinyerp.com-20130404100759-5h0olj38rpkxhj6g
This commit is contained in:
Rajesh Prajapati (OpenERP) 2013-04-04 15:37:59 +05:30
parent bedf412088
commit 4ed6734b82
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class google_docs_ir_attachment(osv.osv):
pool_gdoc_config = self.pool.get('google.docs.config')
pool_model = self.pool.get("ir.model")
attachment = {'url': False}
config = pool_gdoc_config.browse(cr, uid, config_id, context=context)
config = pool_gdoc_config.browse(cr, SUPERUSER_ID, config_id, context=context)
if config:
res_model = config.model_id
model_ids = pool_model.search(cr, uid, [('model','=',res_model)])