[IMP] core: api.private

New decorator for private methods. See #195402.

task-4505030

closes odoo/documentation#11944

Related: odoo/odoo#195402
Related: odoo/enterprise#77961
Signed-off-by: Krzysztof Magusiak (krma) <krma@odoo.com>
This commit is contained in:
Krzysztof Magusiak (krma) 2025-02-03 08:22:26 +00:00
parent c5bf2164f9
commit 2fcafbfca9
2 changed files with 4 additions and 1 deletions

View File

@ -649,11 +649,12 @@ Method decorators
=================
.. automodule:: odoo.api
:members: depends, depends_context, constrains, onchange, autovacuum, model, model_create_multi, ondelete
:members: depends, depends_context, constrains, onchange, autovacuum, model, model_create_multi, private, ondelete
.. .. currentmodule:: odoo.api
.. .. autodata:: model
.. .. autodata:: private
.. .. autodata:: depends
.. .. autodata:: constrains
.. .. autodata:: onchange

View File

@ -9,6 +9,8 @@ Odoo Online version 18.2
- `read_group` has been deprecated in favor of `_read_group` for backend usage and of
`formatted_read_group` as formatted public API. See `#163300 <https://github.com/odoo/odoo/pull/163300>`_.
- `@api.private` is added to distinguish public Python methods from methods exposed for RPC calls.
See `#195402 <https://github.com/odoo/odoo/pull/195402>`_.
Odoo Online version 18.1
========================