Nimesh Contractor(Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-903060-nco into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #903060 in OpenERP Addons: "Shortcut menu and such actions should be 
disable for newly created share user otherwise it will gives "Access Error""
  https://bugs.launchpad.net/openobject-addons/+bug/903060

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-903060-nco/+merge/85608

hello,

     When share user is created it will update the context to 'noshortcut' : 
true
     and will not open the shorcut for the share user.

Thnks
NCO
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-903060-nco/+merge/85608
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-903060-nco.
=== modified file 'share/wizard/share_wizard.py'
--- share/wizard/share_wizard.py	2011-11-22 08:51:38 +0000
+++ share/wizard/share_wizard.py	2011-12-14 06:43:57 +0000
@@ -200,6 +200,7 @@
                 wizard_data.write({'result_line_ids': [(0,0,new_line)]})
                 continue
             new_pass = generate_random_pass()
+            context.update({'noshortcut':True})
             user_id = user_obj.create(cr, UID_ROOT, {
                     'login': new_user,
                     'password': new_pass,
@@ -208,7 +209,7 @@
                     'groups_id': [(6,0,[group_id])],
                     'share': True,
                     'company_id': current_user.company_id.id
-            })
+            },context)
             new_line = { 'user_id': user_id,
                          'password': new_pass,
                          'newly_created': True}

_______________________________________________
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