The proposal to merge lp:~openerp-dev/openobject-addons/6.1-opw-576863-rgo into 
lp:openobject-addons/6.1 has been updated.

Description changed to:

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/6.1-opw-576863-rgo

Kindly review it.

Thanks.

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576863-rgo/+merge/116222
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576863-rgo/+merge/116222
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-576863-rgo.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to