Skip to content

Commit b423f3a

Browse files
committed
sync with OCA
1 parent 13166a3 commit b423f3a

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

fastapi/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Odoo FastAPI
1111
!! This file is generated by oca-gen-addon-readme !!
1212
!! changes will be overwritten. !!
1313
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14-
!! source digest: sha256:131313b5c1951c5bc88afff7454fce8fee59b641e2c9fa58a9549a31dc70c74c
14+
!! source digest: sha256:0699617a8fae724d3a2b528f98943c9f2393c434f3d9d21d6d04645ff7e831d3
1515
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1616
1717
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png

fastapi/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Odoo FastAPI",
66
"summary": """
77
Odoo FastAPI endpoint""",
8-
"version": "18.0.1.2.0",
8+
"version": "18.0.1.2.1",
99
"license": "LGPL-3",
1010
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
1111
"maintainers": ["lmignon"],

fastapi/fastapi_dispatcher.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,10 @@ def _manage_odoo_env(self, uid=None):
115115
token = odoo_env_ctx.set(env)
116116
try:
117117
yield
118+
# Flush here to ensure all pending computations are being executed with
119+
# authenticated fastapi user before exiting this context manager, as it
120+
# would otherwise be done using the public user on the commit of the DB
121+
# cursor, what could potentially lead to inconsistencies or AccessError.
122+
env.flush_all()
118123
finally:
119124
odoo_env_ctx.reset(token)

fastapi/static/description/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ <h1>Odoo FastAPI</h1>
372372
!! This file is generated by oca-gen-addon-readme !!
373373
!! changes will be overwritten. !!
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375-
!! source digest: sha256:131313b5c1951c5bc88afff7454fce8fee59b641e2c9fa58a9549a31dc70c74c
375+
!! source digest: sha256:0699617a8fae724d3a2b528f98943c9f2393c434f3d9d21d6d04645ff7e831d3
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377377
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/rest-framework/tree/18.0/fastapi"><img alt="OCA/rest-framework" src="https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/rest-framework-18-0/rest-framework-18-0-fastapi"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>This addon provides the basis to smoothly integrate the

0 commit comments

Comments
 (0)