Mayur Maheshwari(OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-opw-576863-port-mma into lp:openobject-addons.
Requested reviews: OpenERP Core Team (openerp) For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-576863-port-mma/+merge/135350 Hello, Using OpenERP plugin for OpenOffice, the 'Send to the server' functionality doesn't show the report at destination model if used by user other then Administrator(uid=1). Steps to Reproduce issue: 1) Create a DB and install base_report_designer module, 2) Configure report_designer_plugin.zip for OpenOffice, 3) Create a user and give him all access as Administrator has, 4) Logged in with this user and create a OpenOffice report, and upload it to destination model in server using 'Send to the server', 5) In OpenERP client, go to destination model and you will not find the uploaded report. Note: You will notice message, "Operation prohibited by access rules, or performed on an already deleted document (Operation: create, Document type: ir.values)." The cause of the issue is, plugin sends data with 'key': 'action' and no user information for 'user_id' field of 'ir.values' model and the access rules(orm's def check_access_rule(...)) checks for 'key'='default' and 'user_id'=<current logged in user> which forces the check_access_rule(...) to raise this warning. I have fixed this issue and this fix is dependent on another fix at branch: https://code.launchpad.net/~openerp-dev/openobject-server/trunk-opw-576863-port-mma code is forward port from 6.1 Thanks, Mayur -- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-576863-port-mma/+merge/135350 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-opw-576863-port-mma.
=== modified file 'base_report_designer/plugin/openerp_report_designer.zip' Binary files base_report_designer/plugin/openerp_report_designer.zip 2011-06-17 14:10:24 +0000 and base_report_designer/plugin/openerp_report_designer.zip 2012-11-21 10:11:37 +0000 differ === modified file 'base_report_designer/plugin/openerp_report_designer/bin/script/SendToServer.py' --- base_report_designer/plugin/openerp_report_designer/bin/script/SendToServer.py 2012-10-02 10:29:15 +0000 +++ base_report_designer/plugin/openerp_report_designer/bin/script/SendToServer.py 2012-11-21 10:11:37 +0000 @@ -166,7 +166,8 @@ '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 :
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp