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):
|
with self.assertRaises(exceptions.AccessError):
|
||||||
model.sudo(user_without_access).search([])
|
model.sudo(user_without_access).search([])
|
||||||
# this tests the 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
|
# be sure we can search suspended uids like ints
|
||||||
partners = self.env['res.partner'].with_context(
|
partners = self.env['res.partner'].with_context(
|
||||||
active_test=False,
|
active_test=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user