mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
16 lines
382 B
Python
16 lines
382 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2016 ACSONE SA/NV
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import api, models
|
|
from ..base_suspend_security import BaseSuspendSecurityUid
|
|
|
|
|
|
class Base(models.AbstractModel):
|
|
|
|
_inherit = 'base'
|
|
|
|
@api.model
|
|
def suspend_security(self):
|
|
return self.sudo(user=BaseSuspendSecurityUid(self.env.uid))
|