[MIG] base_suspend_security to 10.0 (#586)

This commit is contained in:
Adrien Peiffer (ACSONE)
2016-10-28 10:00:45 +02:00
committed by Frédéric Garbely
parent a34ecbfb0e
commit c36c7e4f0e
9 changed files with 33 additions and 39 deletions

View File

@@ -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',