mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 23:32:02 +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
10
odoo-bringout-oca-rest-framework-fastapi/fastapi/context.py
Normal file
10
odoo-bringout-oca-rest-framework-fastapi/fastapi/context.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue