mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[MIG] base_suspend_security to 10.0 (#586)
This commit is contained in:
committed by
Holger Brunn
parent
1a5194c152
commit
e719bc627e
@@ -17,14 +17,12 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
from openerp import exceptions
|
||||
from openerp.tests.common import TransactionCase
|
||||
from odoo import exceptions
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestBaseSuspendSecurity(TransactionCase):
|
||||
def test_base_suspend_security(self):
|
||||
# tests are called before register_hook
|
||||
self.env['ir.rule']._register_hook()
|
||||
user_id = self.env.ref('base.user_demo').id
|
||||
other_company = self.env['res.company'].create({
|
||||
'name': 'other company',
|
||||
|
||||
Reference in New Issue
Block a user