[FIX]base: When you use Send to the server from OpenOffice with user other than Administrator(uid=1) you will notice a warning message saying Access Error and report will not be seen at destination model

bzr revid: mma@tinyerp.com-20121121095609-v9qk2o7pah2a9k56
This commit is contained in:
Ravi Gohil (OpenERP) 2012-11-21 15:26:09 +05:30 committed by Mayur Maheshwari (OpenERP)
parent e5133ecca4
commit b74c00568d
2 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,8 @@ class SendtoServer(unohelper.Base, XJobExecutor):
'model': docinfo.getUserFieldValue(3),
'value': 'ir.actions.report.xml,'+str(id),
'key2': 'client_print_multi',
'object': True
'object': True,
'user_id': uid
}
res = self.sock.execute(database, uid, self.password, 'ir.values' , 'create',rec )
else :