mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[FIX] base_suspend_security: Reuse existing suspended envs
This commit is contained in:
@@ -5,6 +5,8 @@ from odoo.tools import pycompat
|
||||
|
||||
class BaseSuspendSecurityUid(int):
|
||||
def __eq__(self, other):
|
||||
if isinstance(other, BaseSuspendSecurityUid):
|
||||
return self * 1 == other * 1
|
||||
if isinstance(other, pycompat.integer_types):
|
||||
return False
|
||||
return super(BaseSuspendSecurityUid, self).__int__() == other
|
||||
|
||||
Reference in New Issue
Block a user