[MIG] base_suspend_security: Migration to 11.0

This commit is contained in:
Frédéric Garbely
2018-06-08 10:41:48 +02:00
committed by Holger Brunn
parent 07592ea5bd
commit 61ca98ebe3
11 changed files with 18 additions and 19 deletions

View File

@@ -28,7 +28,7 @@ Known issues / Roadmap
Bug Tracker Bug Tracker
=========== ===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-backend/issues>`_.
In case of trouble, please check there if your issue has already been reported. In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
@@ -40,6 +40,7 @@ Contributors
* Holger Brunn <hbrunn@therp.nl> * Holger Brunn <hbrunn@therp.nl>
* Laurent Mignon <laurent.mignon@acsone.eu> * Laurent Mignon <laurent.mignon@acsone.eu>
* Frédéric Garbely <frederic.garbely@braintec-group.com>
Maintainer Maintainer
---------- ----------

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# This module copyright (C) 2015 Therp BV <http://therp.nl>. # This module copyright (C) 2015 Therp BV <http://therp.nl>.

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# This module copyright (C) 2015 Therp BV <http://therp.nl>. # This module copyright (C) 2015 Therp BV <http://therp.nl>.
@@ -19,8 +18,8 @@
############################################################################## ##############################################################################
{ {
"name": "Suspend security", "name": "Suspend security",
"version": "10.0.1.0.0", "version": "11.0.1.0.0",
"author": "Therp BV, Odoo Community Association (OCA)", "author": "Therp BV, brain-tec AG, Odoo Community Association (OCA)",
"license": "AGPL-3", "license": "AGPL-3",
"category": "Hidden/Dependency", "category": "Hidden/Dependency",
"summary": "Suspend security checks for a call", "summary": "Suspend security checks for a call",

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# This module copyright (C) 2015 Therp BV <http://therp.nl>. # This module copyright (C) 2015 Therp BV <http://therp.nl>.
@@ -17,6 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################## ##############################################################################
from odoo.tools import pycompat
class BaseSuspendSecurityUid(int): class BaseSuspendSecurityUid(int):
@@ -24,9 +24,12 @@ class BaseSuspendSecurityUid(int):
return self return self
def __eq__(self, other): def __eq__(self, other):
if isinstance(other, (int, long)): if isinstance(other, pycompat.integer_types):
return False return False
return super(BaseSuspendSecurityUid, self).__int__() == other return super(BaseSuspendSecurityUid, self).__int__() == other
def __hash__(self):
return super(BaseSuspendSecurityUid, self).__hash__()
def __iter__(self): def __iter__(self):
yield super(BaseSuspendSecurityUid, self).__int__() yield super(BaseSuspendSecurityUid, self).__int__()

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# This module copyright (C) 2015 Therp BV <http://therp.nl>. # This module copyright (C) 2015 Therp BV <http://therp.nl>.
@@ -17,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################## ##############################################################################
from . import ir_rule
from . import ir_model_access
from . import res_users
from . import base from . import base
from . import ir_model_access
from . import ir_rule
from . import res_users

View File

@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# Copyright 2016 ACSONE SA/NV # Copyright 2016 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models from odoo import api, models
from ..base_suspend_security import BaseSuspendSecurityUid from ..base_suspend_security import BaseSuspendSecurityUid

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# This module copyright (C) 2015 Therp BV (<http://therp.nl>). # This module copyright (C) 2015 Therp BV (<http://therp.nl>).
@@ -17,7 +16,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################## ##############################################################################
from odoo import models, api, tools from odoo import api, models, tools
from ..base_suspend_security import BaseSuspendSecurityUid from ..base_suspend_security import BaseSuspendSecurityUid

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# This module copyright (C) 2015 Therp BV (<http://therp.nl>). # This module copyright (C) 2015 Therp BV (<http://therp.nl>).
@@ -17,7 +16,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################## ##############################################################################
from odoo import models, api from odoo import api, models
from ..base_suspend_security import BaseSuspendSecurityUid from ..base_suspend_security import BaseSuspendSecurityUid

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# This module copyright (C) 2015 Therp BV (<http://therp.nl>). # This module copyright (C) 2015 Therp BV (<http://therp.nl>).
@@ -18,6 +17,7 @@
# #
############################################################################## ##############################################################################
from odoo import models from odoo import models
from ..base_suspend_security import BaseSuspendSecurityUid from ..base_suspend_security import BaseSuspendSecurityUid

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# This module copyright (C) 2015 Therp BV <http://therp.nl>. # This module copyright (C) 2015 Therp BV <http://therp.nl>.

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# This module copyright (C) 2015 Therp BV (<http://therp.nl>). # This module copyright (C) 2015 Therp BV (<http://therp.nl>).