Ravi Gohil (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-server/6.1-opw-576863-rgo into 
lp:openobject-server/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/6.1-opw-576863-rgo/+merge/116221

Hello,

Using OpenERP plugin for OpenOffice, the 'Send to the server' functionality 
doesn't show the report at destination model.

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) Create a report, and upload it to destination model in server using 'Send to 
the server',
5) 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 server side and this fix is dependent on another fix at 
branch: 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576863-rgo

Kindly review it.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/6.1-opw-576863-rgo/+merge/116221
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/6.1-opw-576863-rgo.
=== modified file 'openerp/addons/base/security/base_security.xml'
--- openerp/addons/base/security/base_security.xml	2011-12-02 16:14:56 +0000
+++ openerp/addons/base/security/base_security.xml	2012-07-23 09:14:19 +0000
@@ -70,7 +70,7 @@
         <record model="ir.rule" id="ir_values_default_rule">
             <field name="name">Defaults: alter personal values only</field>
             <field name="model_id" ref="model_ir_values"/>
-            <field name="domain_force">[('key','=','default'),('user_id','=',user.id)]</field>
+            <field name="domain_force">[('key','in',('default','action')),('user_id','=',user.id)]</field>
             <field name="perm_read" eval="False"/>
         </record>
 

_______________________________________________
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