openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #03953
[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-731294-jam into lp:openobject-addons
Jigar Amin - OpenERP has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-731294-jam into lp:openobject-addons.
Requested reviews:
Bhumika (OpenERP) (sbh-openerp)
Related bugs:
#731294 Traceback occurs at the time of Answering a survey.
https://bugs.launchpad.net/bugs/731294
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-731294-jam/+merge/52801
Hello,
Changes with Merge proposal
+ Bug lp:731294 : Access rights for creating the Survey file for any User
Kindly Review this.
Thank You
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-731294-jam/+merge/52801
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-731294-jam.
=== modified file 'survey/wizard/survey_answer.py'
--- survey/wizard/survey_answer.py 2011-02-22 05:08:27 +0000
+++ survey/wizard/survey_answer.py 2011-03-10 05:43:00 +0000
@@ -447,7 +447,6 @@
@param self: The object pointer
@param cr: the current row, from the database cursor,
- @param uid: the current userâs ID for security checks,
@param res_ids: List of survey answer IDs,
@param report_name: name of the report,
@param file_name: To give file name of the report,
@@ -458,7 +457,7 @@
return (False, Exception('Report name and Resources ids are required !!!'))
try:
service = netsvc.LocalService(report_name);
- (result, format) = service.create(cr, uid, res_ids, {}, context)
+ (result, format) = service.create(cr, 1, res_ids, {}, context)
ret_file_name = addons.get_module_resource('survey', 'report') + file_name + '.pdf'
fp = open(ret_file_name, 'wb+');
fp.write(result);
Follow ups