[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:
parent
c5bf2164f9
commit
2fcafbfca9
@ -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
|
||||
|
@ -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
|
||||
========================
|
||||
|
Loading…
Reference in New Issue
Block a user