Tower: upload rpc_helper 16.0.1.0.0 (via marketplace)

This commit is contained in:
2026-04-27 08:46:56 +00:00
parent 6e4be30e3a
commit def74bd656

View File

@@ -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()