Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-576118-msh into
lp:openobject-client-web.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-576118-msh/+merge/112298
Hello,
Fixed the issue of context not passed in unlink method.
Demo :- Login with the user who doesn't have rights to delete records of any
object and delete the record, it will give you the message that you don't have
rights but that message is not translated because context is not passed in
unlink method.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-576118-msh/+merge/112298
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-576118-msh.
=== modified file 'addons/openerp/static/javascript/listgrid.js'
--- addons/openerp/static/javascript/listgrid.js 2012-06-08 11:43:34 +0000
+++ addons/openerp/static/javascript/listgrid.js 2012-06-27 09:09:41 +0000
@@ -49,6 +49,7 @@
this.view_id = jQuery('[id="'+prefix + '_terp_view_id'+'"]').get() ? jQuery('[id="'+prefix + '_terp_view_id'+'"]').val() : null;
this.view_mode = jQuery('[id*="'+prefix + '_terp_view_mode'+'"]').get() ? jQuery('[id*="'+prefix + '_terp_view_mode'+'"]').val() : null;
this.view_type = jQuery('[id*="'+prefix + '_terp_view_type'+'"]').get() ? jQuery('[id*="'+prefix + '_terp_view_type'+'"]').val() : null;
+ this.context = jQuery('[id*="'+prefix + '_terp_context'+'"]').get() ? jQuery('[id*="'+prefix + '_terp_context'+'"]').val() : {};
// if o2m
@@ -673,6 +674,7 @@
args['_terp_ids'] = $terp_ids.val()
args['_terp_model'] = this.model;
args['_terp_id'] = ids;
+ args['_terp_context'] = this.context
var req = openobject.http.postJSON('/openerp/listgrid/remove', args);
req.addCallback(function(obj) {
_______________________________________________
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