[IMP] use another xml_menu_id that leads directly to the tests wizard
bzr revid: abo@openerp.com-20130220145613-2tnid02oatds2gmy
This commit is contained in:
parent
1f269d0d93
commit
13afc3b9e2
|
@ -20,7 +20,8 @@ class m(openerp.osv.osv.Model):
|
|||
raise openerp.exceptions.Warning('description')
|
||||
|
||||
def generate_redirect_warning(self, cr, uid, ids, context=None):
|
||||
raise openerp.exceptions.RedirectWarning('description', self.pool.get('ir.model.data').get_object_reference(cr, uid, 'base', 'menu_action_res_users'), 'go to the redirection')
|
||||
dummy, action_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'test_exceptions', 'action_test_exceptions')
|
||||
raise openerp.exceptions.RedirectWarning('description', action_id, 'go to the redirection')
|
||||
|
||||
def generate_access_denied(self, cr, uid, ids, context=None):
|
||||
raise openerp.exceptions.AccessDenied()
|
||||
|
|
Loading…
Reference in New Issue