mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-19 11:32:06 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright 2022 Camptocamp SA
|
||||
# @author: Simone Orsi <simone.orsi@camptocamp.com>
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
||||
|
||||
import logging
|
||||
|
||||
from odoo.service import model
|
||||
|
||||
from .patch import protected__execute_cr
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def patch__model_execute_cr():
|
||||
"""Patch rpc model handler."""
|
||||
protected__execute_cr._orig__execute_cr = model.execute_cr
|
||||
model.execute_cr = protected__execute_cr
|
||||
_logger.info("PATCHED odoo.service.model.execute")
|
||||
|
||||
|
||||
def post_load_hook():
|
||||
patch__model_execute_cr()
|
||||
Loading…
Add table
Add a link
Reference in a new issue