mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 11:31:59 +02:00
10 lines
276 B
Python
10 lines
276 B
Python
# Copyright 2022 ACSONE SA/NV
|
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/LGPL).
|
|
|
|
# define context vars to hold the odoo env
|
|
|
|
from contextvars import ContextVar
|
|
|
|
from odoo.api import Environment
|
|
|
|
odoo_env_ctx: ContextVar[Environment] = ContextVar("odoo_env_ctx")
|