[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. closes odoo/documentation#2760 Related: odoo/odoo#101200 Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
This commit is contained in:
parent
733501a186
commit
0bdf714112
@ -83,7 +83,6 @@ value::
|
|||||||
.. autoattribute:: _parent_name
|
.. autoattribute:: _parent_name
|
||||||
.. autoattribute:: _parent_store
|
.. autoattribute:: _parent_store
|
||||||
|
|
||||||
.. autoattribute:: _date_name
|
|
||||||
.. autoattribute:: _fold_name
|
.. autoattribute:: _fold_name
|
||||||
|
|
||||||
AbstractModel
|
AbstractModel
|
||||||
@ -856,15 +855,11 @@ Search/Read
|
|||||||
|
|
||||||
.. automethod:: Model.read_group
|
.. automethod:: Model.read_group
|
||||||
|
|
||||||
Fields/Views
|
Fields
|
||||||
''''''''''''
|
''''''
|
||||||
|
|
||||||
.. automethod:: Model.fields_get
|
.. automethod:: Model.fields_get
|
||||||
|
|
||||||
.. automethod:: Model.get_view
|
|
||||||
|
|
||||||
.. automethod:: Model.fields_view_get
|
|
||||||
|
|
||||||
.. _reference/orm/domains:
|
.. _reference/orm/domains:
|
||||||
|
|
||||||
Search domains
|
Search domains
|
||||||
|
@ -336,6 +336,21 @@ A view's specs are applied sequentially.
|
|||||||
views: ``hasclass(*classes)`` matches if the context node has
|
views: ``hasclass(*classes)`` matches if the context node has
|
||||||
all the specified classes
|
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:
|
.. _reference/views/types:
|
||||||
|
|
||||||
View types
|
View types
|
||||||
|
Loading…
Reference in New Issue
Block a user