diff --git a/fastapi/README.rst b/fastapi/README.rst index 6a3092a84..f5913a47d 100644 --- a/fastapi/README.rst +++ b/fastapi/README.rst @@ -1518,21 +1518,23 @@ Changelog 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. The ir.rule 'Fastapi: Running user rule' uses a field - (authenticate_partner_id) that comes from the context. This 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 ``\ \_) + domain. So now it is set to False by default. + (``#410 ``*) 16.0.1.2.3 (2023-12-21) ----------------------- -**Bugfixes** +Bugfixes +~~~~~~~~ - In case of exception in endpoint execution, close the database cursor after rollback. @@ -1544,7 +1546,8 @@ Changelog 16.0.1.2.2 (2023-12-12) ----------------------- -**Bugfixes** +Bugfixes +~~~~~~~~ - When using the 'FastAPITransactionCase' class, allows to specify a specific override of the 'authenticated_partner_impl' method into the @@ -1561,7 +1564,8 @@ Changelog 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. @@ -1573,7 +1577,8 @@ Changelog 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 diff --git a/fastapi/readme/HISTORY.md b/fastapi/readme/HISTORY.md index c28f9f81d..8020796fd 100644 --- a/fastapi/readme/HISTORY.md +++ b/fastapi/readme/HISTORY.md @@ -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 `_) + 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 `*) ## 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)) diff --git a/fastapi/static/description/index.html b/fastapi/static/description/index.html index baf717da9..25be6ebba 100644 --- a/fastapi/static/description/index.html +++ b/fastapi/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -: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 @@

Odoo FastAPI

  • Known issues / Roadmap
  • Changelog @@ -1774,21 +1790,24 @@

    Known issues / Roadmap

    Changelog

    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.

      The ir.rule ‘Fastapi: Running user rule’ uses a field -(authenticate_partner_id) that comes from the context. This field +(authenticatepartner_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>_)

      +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

    +

    16.0.1.2.3 (2023-12-21)

    +
    +

    Bugfixes

    • In case of exception in endpoint execution, close the database cursor after rollback.

      @@ -1798,9 +1817,11 @@

      16.0.1.2.3 (2023-12-21)

    +
    -

    16.0.1.2.2 (2023-12-12)

    -

    Bugfixes

    +

    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 @@ -1815,9 +1836,11 @@

      16.0.1.2.2 (2023-12-12)

      (#396)
    +
    -

    16.0.1.2.1 (2023-11-03)

    -

    Bugfixes

    +

    16.0.1.2.1 (2023-11-03)

    +
    +

    Bugfixes

    • Fix a typo in the Field declaration of the ‘count’ attribute of the ‘PagedCollection’ schema.

      @@ -1827,9 +1850,11 @@

      16.0.1.2.1 (2023-11-03)

    +
    -

    16.0.1.2.0 (2023-10-13)

    -

    Features

    +

    16.0.1.2.0 (2023-10-13)

    +
    +

    Features

    • The field total in the PagedCollection schema is replaced by the field count. The field total is now deprecated and will be @@ -1843,8 +1868,9 @@

      16.0.1.2.0 (2023-10-13)

    +
    -

    Bug Tracker

    +

    Bug Tracker

    Bugs are tracked on GitHub Issues. 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 @@ -1852,23 +1878,25 @@

    Bug Tracker

    Do not contact contributors directly about support or help with technical issues.

    -

    Credits

    +

    Credits

    -

    Authors

    +

    Authors

    • ACSONE SA/NV
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    -Odoo Community Association + +Odoo Community Association +

    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.