Reviewers: , Description: trytond: Improve domain doc about deferencing to related models
Please review this at http://codereview.tryton.org/800002/ Affected files: M doc/topics/domain.rst Index: doc/topics/domain.rst =================================================================== --- a/doc/topics/domain.rst +++ b/doc/topics/domain.rst @@ -26,14 +26,22 @@ :ref:`pyson <topics-pyson>` statement, that evaluates to a string. - A field of type :class:`trytond.model.fields.Many2One` can be - dereferenced to related models. This is illustrated by the - following example:: + A field of type :class:`trytond.model.fields.Many2One` or + :class:`trytond.model.fields.Many2Many` or + :class:`trytond.model.fields.One2Many` or + :class:`trytond.model.fields.One2One` or + :class:`trytond.model.fields.Reference` can be dereferenced to related + models. This is illustrated by the following example:: domain = [('country.name', '=', 'Japan')] The number of *dots* in a clause is not limited. +.. warning:: + For :class:`trytond.model.fields.Reference`, an extra ending clause is + needed to define the target model to join. +.. + ``operator`` Is an operator out of `Domain Operators`_ or a :ref:`pyson <topics-pyson>` statement, that evaluates to
