diff options
| author | Florent de Labarre <florent.mirieu@gmail.com> | 2019-10-02 18:00:50 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-10-03 07:33:17 +0000 |
| commit | 7e6e9df12fcb567dcc7e72cc21cb9dd8e8123a76 (patch) | |
| tree | e58191203b418c026a97bd9081b05315614148d8 /doc | |
| parent | 393a9a6d272cde788c7573b6b600691dbf7d823c (diff) | |
[IMP] doc: add missing attributes
Add documentation about model attributes
_parent_name
_date_name
_fold_name
_translate
Forward port of #32559 to 13.0
closes odoo/odoo#37840
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/reference/orm.rst | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/reference/orm.rst b/doc/reference/orm.rst index 4cdbf78f65c..0263058a26e 100644 --- a/doc/reference/orm.rst +++ b/doc/reference/orm.rst @@ -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,34 @@ 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 |
