Skip to content

Commit

Permalink
[IMP] doc: add missing attributes
Browse files Browse the repository at this point in the history
Add documentation about model attributes
_parent_name
_date_name
_fold_name
_translate

Forward port of odoo#32559 to 13.0

closes odoo#37840

Signed-off-by: Nicolas Martinelli (nim) <[email protected]>
  • Loading branch information
fmdl authored and mart-e committed Oct 3, 2019
1 parent 393a9a6 commit 7e6e9df
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions doc/reference/orm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -697,13 +697,42 @@ Model Reference

:type: bool


.. attribute:: _check_company_auto

On write and create, call ``_check_company`` to ensure companies
consistency on the relational fields having ``check_company=True``
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
Expand Down

0 comments on commit 7e6e9df

Please sign in to comment.