-
-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by lmignon
- Loading branch information
Showing
3 changed files
with
105 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,58 @@ | ||
## 16.0.1.2.5 (2024-01-17) | ||
|
||
**Bugfixes** | ||
### Bugfixes | ||
|
||
- Odoo has done an update and now, it checks domains of ir.rule on creation and modification. | ||
- Odoo has done an update and now, it checks domains of ir.rule on creation and | ||
modification. | ||
|
||
The ir.rule 'Fastapi: Running user rule' uses a field (authenticate_partner_id) that comes from the context. | ||
This field wasn't always set and this caused an error when Odoo checked the domain. | ||
So now it is set to *False* by default. (`#410 <https://github.com/OCA/rest-framework/issues/410>`_) | ||
The ir.rule 'Fastapi: Running user rule' uses a field (authenticate*partner_id) that | ||
comes from the context. This field wasn't always set and this caused an error when | ||
Odoo checked the domain. So now it is set to *False* by default. | ||
(`#410 <https://github.com/OCA/rest-framework/issues/410>`*) | ||
|
||
## 16.0.1.2.3 (2023-12-21) | ||
|
||
**Bugfixes** | ||
### Bugfixes | ||
|
||
- In case of exception in endpoint execution, close the database cursor | ||
after rollback. | ||
- In case of exception in endpoint execution, close the database cursor after rollback. | ||
|
||
This is to ensure that the *retrying* method in *service/model.py* | ||
does not try to flush data to the database. | ||
This is to ensure that the _retrying_ method in _service/model.py_ does not try to | ||
flush data to the database. | ||
([\#405](https://github.com/OCA/rest-framework/issues/405)) | ||
|
||
## 16.0.1.2.2 (2023-12-12) | ||
|
||
**Bugfixes** | ||
|
||
- When using the 'FastAPITransactionCase' class, allows to specify a | ||
specific override of the 'authenticated_partner_impl' method into the | ||
list of overrides to apply. Before this change, the | ||
'authenticated_partner_impl' override given in the 'overrides' | ||
parameter was always overridden in the '\_create_test_client' method | ||
of the 'FastAPITransactionCase' class. It's now only overridden if the | ||
'authenticated_partner_impl' method is not already present in the list | ||
of overrides to apply and no specific partner is given. If a specific | ||
partner is given at same time of an override for the | ||
'authenticated_partner_impl' method, an error is raised. | ||
### Bugfixes | ||
|
||
- When using the 'FastAPITransactionCase' class, allows to specify a specific override | ||
of the 'authenticated_partner_impl' method into the list of overrides to apply. Before | ||
this change, the 'authenticated_partner_impl' override given in the 'overrides' | ||
parameter was always overridden in the '\_create_test_client' method of the | ||
'FastAPITransactionCase' class. It's now only overridden if the | ||
'authenticated_partner_impl' method is not already present in the list of overrides to | ||
apply and no specific partner is given. If a specific partner is given at same time of | ||
an override for the 'authenticated_partner_impl' method, an error is raised. | ||
([\#396](https://github.com/OCA/rest-framework/issues/396)) | ||
|
||
## 16.0.1.2.1 (2023-11-03) | ||
|
||
**Bugfixes** | ||
### Bugfixes | ||
|
||
- Fix a typo in the Field declaration of the 'count' attribute of the | ||
'PagedCollection' schema. | ||
- Fix a typo in the Field declaration of the 'count' attribute of the 'PagedCollection' | ||
schema. | ||
|
||
Misspelt parameter was triggering a deprecation warning due to recent | ||
versions of Pydantic seeing it as an arbitrary parameter. | ||
Misspelt parameter was triggering a deprecation warning due to recent versions of | ||
Pydantic seeing it as an arbitrary parameter. | ||
([\#389](https://github.com/OCA/rest-framework/issues/389)) | ||
|
||
## 16.0.1.2.0 (2023-10-13) | ||
|
||
**Features** | ||
### Features | ||
|
||
- The field *total* in the *PagedCollection* schema is replaced by the | ||
field *count*. The field *total* is now deprecated and will be removed | ||
in the next major version. This change is backward compatible. The | ||
json document returned will now contain both fields *total* and | ||
*count* with the same value. In your python code the field *total*, if | ||
used, will fill the field *count* with the same value. You are | ||
encouraged to use the field *count* instead of *total* and adapt your | ||
code accordingly. | ||
- The field _total_ in the _PagedCollection_ schema is replaced by the field _count_. | ||
The field _total_ is now deprecated and will be removed in the next major version. | ||
This change is backward compatible. The json document returned will now contain both | ||
fields _total_ and _count_ with the same value. In your python code the field _total_, | ||
if used, will fill the field _count_ with the same value. You are encouraged to use | ||
the field _count_ instead of _total_ and adapt your code accordingly. | ||
([\#380](https://github.com/OCA/rest-framework/issues/380)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,11 @@ | |
|
||
/* | ||
:Author: David Goodger ([email protected]) | ||
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ | ||
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ | ||
:Copyright: This stylesheet has been placed in the public domain. | ||
|
||
Default cascading style sheet for the HTML output of Docutils. | ||
Despite the name, some widely supported CSS2 features are used. | ||
|
||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to | ||
customize this style sheet. | ||
|
@@ -274,7 +275,7 @@ | |
margin-left: 2em ; | ||
margin-right: 2em } | ||
|
||
pre.code .ln { color: grey; } /* line numbers */ | ||
pre.code .ln { color: gray; } /* line numbers */ | ||
pre.code, code { background-color: #eeeeee } | ||
pre.code .comment, code .comment { color: #5C6576 } | ||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } | ||
|
@@ -300,7 +301,7 @@ | |
span.pre { | ||
white-space: pre } | ||
|
||
span.problematic { | ||
span.problematic, pre.problematic { | ||
color: red } | ||
|
||
span.section-subtitle { | ||
|
@@ -436,18 +437,33 @@ <h1 class="title">Odoo FastAPI</h1> | |
</li> | ||
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-21">Known issues / Roadmap</a></li> | ||
<li><a class="reference internal" href="#changelog" id="toc-entry-22">Changelog</a><ul> | ||
<li><a class="reference internal" href="#section-1" id="toc-entry-23">16.0.1.2.5 (2024-01-17)</a></li> | ||
<li><a class="reference internal" href="#section-2" id="toc-entry-24">16.0.1.2.3 (2023-12-21)</a></li> | ||
<li><a class="reference internal" href="#section-3" id="toc-entry-25">16.0.1.2.2 (2023-12-12)</a></li> | ||
<li><a class="reference internal" href="#section-4" id="toc-entry-26">16.0.1.2.1 (2023-11-03)</a></li> | ||
<li><a class="reference internal" href="#section-5" id="toc-entry-27">16.0.1.2.0 (2023-10-13)</a></li> | ||
<li><a class="reference internal" href="#section-1" id="toc-entry-23">16.0.1.2.5 (2024-01-17)</a><ul> | ||
<li><a class="reference internal" href="#bugfixes" id="toc-entry-24">Bugfixes</a></li> | ||
</ul> | ||
</li> | ||
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-28">Bug Tracker</a></li> | ||
<li><a class="reference internal" href="#credits" id="toc-entry-29">Credits</a><ul> | ||
<li><a class="reference internal" href="#authors" id="toc-entry-30">Authors</a></li> | ||
<li><a class="reference internal" href="#contributors" id="toc-entry-31">Contributors</a></li> | ||
<li><a class="reference internal" href="#maintainers" id="toc-entry-32">Maintainers</a></li> | ||
<li><a class="reference internal" href="#section-2" id="toc-entry-25">16.0.1.2.3 (2023-12-21)</a><ul> | ||
<li><a class="reference internal" href="#bugfixes-1" id="toc-entry-26">Bugfixes</a></li> | ||
</ul> | ||
</li> | ||
<li><a class="reference internal" href="#section-3" id="toc-entry-27">16.0.1.2.2 (2023-12-12)</a><ul> | ||
<li><a class="reference internal" href="#bugfixes-2" id="toc-entry-28">Bugfixes</a></li> | ||
</ul> | ||
</li> | ||
<li><a class="reference internal" href="#section-4" id="toc-entry-29">16.0.1.2.1 (2023-11-03)</a><ul> | ||
<li><a class="reference internal" href="#bugfixes-3" id="toc-entry-30">Bugfixes</a></li> | ||
</ul> | ||
</li> | ||
<li><a class="reference internal" href="#section-5" id="toc-entry-31">16.0.1.2.0 (2023-10-13)</a><ul> | ||
<li><a class="reference internal" href="#features" id="toc-entry-32">Features</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-33">Bug Tracker</a></li> | ||
<li><a class="reference internal" href="#credits" id="toc-entry-34">Credits</a><ul> | ||
<li><a class="reference internal" href="#authors" id="toc-entry-35">Authors</a></li> | ||
<li><a class="reference internal" href="#contributors" id="toc-entry-36">Contributors</a></li> | ||
<li><a class="reference internal" href="#maintainers" id="toc-entry-37">Maintainers</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
|
@@ -1774,21 +1790,24 @@ <h1><a class="toc-backref" href="#toc-entry-21">Known issues / Roadmap</a></h1> | |
<h1><a class="toc-backref" href="#toc-entry-22">Changelog</a></h1> | ||
<div class="section" id="section-1"> | ||
<h2><a class="toc-backref" href="#toc-entry-23">16.0.1.2.5 (2024-01-17)</a></h2> | ||
<p><strong>Bugfixes</strong></p> | ||
<div class="section" id="bugfixes"> | ||
<h3><a class="toc-backref" href="#toc-entry-24">Bugfixes</a></h3> | ||
<ul> | ||
<li><p class="first">Odoo has done an update and now, it checks domains of ir.rule on | ||
creation and modification.</p> | ||
<p>The ir.rule ‘Fastapi: Running user rule’ uses a field | ||
(authenticate_partner_id) that comes from the context. This field | ||
(authenticate<em>partner_id) that comes from the context. This field | ||
wasn’t always set and this caused an error when Odoo checked the | ||
domain. So now it is set to <em>False</em> by default. | ||
(<tt class="docutils literal">#410 <span class="pre"><https://github.com/OCA/rest-framework/issues/410></span></tt>_)</p> | ||
domain. So now it is set to False by default. | ||
(``#410 <https://github.com/OCA/rest-framework/issues/410>``</em>)</p> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="section" id="section-2"> | ||
<h2><a class="toc-backref" href="#toc-entry-24">16.0.1.2.3 (2023-12-21)</a></h2> | ||
<p><strong>Bugfixes</strong></p> | ||
<h2><a class="toc-backref" href="#toc-entry-25">16.0.1.2.3 (2023-12-21)</a></h2> | ||
<div class="section" id="bugfixes-1"> | ||
<h3><a class="toc-backref" href="#toc-entry-26">Bugfixes</a></h3> | ||
<ul> | ||
<li><p class="first">In case of exception in endpoint execution, close the database cursor | ||
after rollback.</p> | ||
|
@@ -1798,9 +1817,11 @@ <h2><a class="toc-backref" href="#toc-entry-24">16.0.1.2.3 (2023-12-21)</a></h2> | |
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="section" id="section-3"> | ||
<h2><a class="toc-backref" href="#toc-entry-25">16.0.1.2.2 (2023-12-12)</a></h2> | ||
<p><strong>Bugfixes</strong></p> | ||
<h2><a class="toc-backref" href="#toc-entry-27">16.0.1.2.2 (2023-12-12)</a></h2> | ||
<div class="section" id="bugfixes-2"> | ||
<h3><a class="toc-backref" href="#toc-entry-28">Bugfixes</a></h3> | ||
<ul class="simple"> | ||
<li>When using the ‘FastAPITransactionCase’ class, allows to specify a | ||
specific override of the ‘authenticated_partner_impl’ method into the | ||
|
@@ -1815,9 +1836,11 @@ <h2><a class="toc-backref" href="#toc-entry-25">16.0.1.2.2 (2023-12-12)</a></h2> | |
(<a class="reference external" href="https://github.com/OCA/rest-framework/issues/396">#396</a>)</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="section" id="section-4"> | ||
<h2><a class="toc-backref" href="#toc-entry-26">16.0.1.2.1 (2023-11-03)</a></h2> | ||
<p><strong>Bugfixes</strong></p> | ||
<h2><a class="toc-backref" href="#toc-entry-29">16.0.1.2.1 (2023-11-03)</a></h2> | ||
<div class="section" id="bugfixes-3"> | ||
<h3><a class="toc-backref" href="#toc-entry-30">Bugfixes</a></h3> | ||
<ul> | ||
<li><p class="first">Fix a typo in the Field declaration of the ‘count’ attribute of the | ||
‘PagedCollection’ schema.</p> | ||
|
@@ -1827,9 +1850,11 @@ <h2><a class="toc-backref" href="#toc-entry-26">16.0.1.2.1 (2023-11-03)</a></h2> | |
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="section" id="section-5"> | ||
<h2><a class="toc-backref" href="#toc-entry-27">16.0.1.2.0 (2023-10-13)</a></h2> | ||
<p><strong>Features</strong></p> | ||
<h2><a class="toc-backref" href="#toc-entry-31">16.0.1.2.0 (2023-10-13)</a></h2> | ||
<div class="section" id="features"> | ||
<h3><a class="toc-backref" href="#toc-entry-32">Features</a></h3> | ||
<ul class="simple"> | ||
<li>The field <em>total</em> in the <em>PagedCollection</em> schema is replaced by the | ||
field <em>count</em>. The field <em>total</em> is now deprecated and will be | ||
|
@@ -1843,32 +1868,35 @@ <h2><a class="toc-backref" href="#toc-entry-27">16.0.1.2.0 (2023-10-13)</a></h2> | |
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="section" id="bug-tracker"> | ||
<h1><a class="toc-backref" href="#toc-entry-28">Bug Tracker</a></h1> | ||
<h1><a class="toc-backref" href="#toc-entry-33">Bug Tracker</a></h1> | ||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/rest-framework/issues">GitHub Issues</a>. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
<a class="reference external" href="https://github.com/OCA/rest-framework/issues/new?body=module:%20fastapi%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> | ||
<p>Do not contact contributors directly about support or help with technical issues.</p> | ||
</div> | ||
<div class="section" id="credits"> | ||
<h1><a class="toc-backref" href="#toc-entry-29">Credits</a></h1> | ||
<h1><a class="toc-backref" href="#toc-entry-34">Credits</a></h1> | ||
<div class="section" id="authors"> | ||
<h2><a class="toc-backref" href="#toc-entry-30">Authors</a></h2> | ||
<h2><a class="toc-backref" href="#toc-entry-35">Authors</a></h2> | ||
<ul class="simple"> | ||
<li>ACSONE SA/NV</li> | ||
</ul> | ||
</div> | ||
<div class="section" id="contributors"> | ||
<h2><a class="toc-backref" href="#toc-entry-31">Contributors</a></h2> | ||
<h2><a class="toc-backref" href="#toc-entry-36">Contributors</a></h2> | ||
<ul class="simple"> | ||
<li>Laurent Mignon <<a class="reference external" href="mailto:laurent.mignon@acsone.eu">laurent.mignon@acsone.eu</a>></li> | ||
</ul> | ||
</div> | ||
<div class="section" id="maintainers"> | ||
<h2><a class="toc-backref" href="#toc-entry-32">Maintainers</a></h2> | ||
<h2><a class="toc-backref" href="#toc-entry-37">Maintainers</a></h2> | ||
<p>This module is maintained by the OCA.</p> | ||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> | ||
<a class="reference external image-reference" href="https://odoo-community.org"> | ||
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /> | ||
</a> | ||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use.</p> | ||
|