mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
@@ -55,7 +55,7 @@ class TestBaseSuspendSecurity(TransactionCase):
|
||||
with self.assertRaises(exceptions.AccessError):
|
||||
model.sudo(user_without_access).search([])
|
||||
# this tests the search
|
||||
model.sudo(user_without_access).suspend_security().search([])
|
||||
model.sudo(user_without_access).suspend_security().search([])
|
||||
# be sure we can search suspended uids like ints
|
||||
partners = self.env['res.partner'].with_context(
|
||||
active_test=False,
|
||||
|
||||
Reference in New Issue
Block a user