Compare commits

...

1 Commits

Author SHA1 Message Date
Denis Ledoux
d653b868a6 [IMP] developer/reference: move model view related methods out of orm
The model method `get_views` and `get_view` are moved
from `odoo/models.py` to `odoo/addons/base/models/ir_ui_view.py`.

The documentation is updated accordingly,
to put the documentation related to `get_views` in the
views chapter of the documentation.
2022-10-03 17:58:16 +02:00
2 changed files with 17 additions and 7 deletions

View File

@@ -83,7 +83,6 @@ value::
.. autoattribute:: _parent_name
.. autoattribute:: _parent_store
.. autoattribute:: _date_name
.. autoattribute:: _fold_name
AbstractModel
@@ -856,15 +855,11 @@ Search/Read
.. automethod:: Model.read_group
Fields/Views
''''''''''''
Fields
''''''
.. automethod:: Model.fields_get
.. automethod:: Model.get_view
.. automethod:: Model.fields_view_get
.. _reference/orm/domains:
Search domains

View File

@@ -336,6 +336,21 @@ A view's specs are applied sequentially.
views: ``hasclass(*classes)`` matches if the context node has
all the specified classes
Model Commons
====================
.. currentmodule:: odoo.addons.base.models.ir_ui_view
Attributes
----------
.. autoattribute:: Model._date_name
Methods
-------
.. automethod:: Model.get_views
.. automethod:: Model.get_view
.. _reference/views/types:
View types