summaryrefslogtreecommitdiff
path: root/doc/reference/orm.rst
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-10-09 02:08:17 +0200
committerChristophe Simonis <chs@odoo.com>2019-10-09 02:08:17 +0200
commitd74b4518052066446e2a1975a91ce53c745ca75a (patch)
treec08180f88a512d15e37fbec628931f02b3825f65 /doc/reference/orm.rst
parentec162dd0cb5622ab6e56db1a63dab5f531a96f4a (diff)
parentf4105eb9c7010f8693e5d2fd20c0bd9d9cc2e483 (diff)
[MERGE] forward port branch 13.0 up to f4105eb9c70
Diffstat (limited to 'doc/reference/orm.rst')
-rw-r--r--doc/reference/orm.rst32
1 files changed, 30 insertions, 2 deletions
diff --git a/doc/reference/orm.rst b/doc/reference/orm.rst
index 4cdbf78f65c..66f5b27f99a 100644
--- a/doc/reference/orm.rst
+++ b/doc/reference/orm.rst
@@ -608,7 +608,7 @@ Model Reference
.. currentmodule:: odoo.models
-.. autoclass:: odoo.models.Model
+.. autoclass:: Model
.. rubric:: Structural attributes
@@ -697,6 +697,7 @@ Model Reference
:type: bool
+
.. attribute:: _check_company_auto
On write and create, call ``_check_company`` to ensure companies
@@ -704,6 +705,33 @@ Model Reference
as attribute.
(default: ``False``)
+ .. attribute:: _parent_name
+
+ Alternative field to use as parent, used by indexed storage of the tree structure of records
+ (default: ``'parent_id'``)
+
+ :type: str
+
+ .. attribute:: _date_name
+
+ Alternative field to use for default calendar view (default: ``'date'``)
+
+ :type: str
+
+ .. attribute:: _fold_name
+
+ Alternative field to determine folded groups in kanban views
+ (default: ``'fold'``)
+
+ :type: str
+
+ .. attribute:: _translate
+
+ False disables translations export for this model
+ (default: ``True``)
+
+ :type: bool
+
.. rubric:: CRUD
.. automethod:: create
@@ -840,7 +868,7 @@ Method decorators
=================
.. automodule:: odoo.api
- :members: model, depends, constrains, onchange, returns,
+ :members: model, depends, constrains, onchange, returns
.. _reference/orm/fields: