# Example of Reference field domain

**URL:** https://discuss.tryton.org/t/example-of-reference-field-domain/5234
**Category:** Developer
**Created:** [May 3, 2022, 5:55pm UTC](https://discuss.tryton.org/t/example-of-reference-field-domain/5234 "2022-05-03T17:55:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bala4901](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@bala4901](https://discuss.tryton.org/u/bala4901)
#### Post date: [May 3, 2022, 5:55pm UTC](https://discuss.tryton.org/t/example-of-reference-field-domain/5234/1 "2022-05-03T17:55:22Z")

</div>

Hi @ced,

Do you have the example for reference fields?

> [@Tryton Release 6.4](https://discuss.tryton.org/t/tryton-release-6-4/5180/1):
>
> The `Reference` fields uses dictionary for `domain` and `search_order`. The keys are the name of the target model.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [May 3, 2022, 9:06pm UTC](https://discuss.tryton.org/t/example-of-reference-field-domain/5234/2 "2022-05-03T21:06:51Z")

</div>

like in account statement line: [https://hg.tryton.org/modules/account\_statement/file/7a31f174d145/statement.py#l747](https://hg.tryton.org/modules/account_statement/file/7a31f174d145/statement.py#l747)

---

<div class="post-metadata">

### Author: ![bala4901](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@bala4901](https://discuss.tryton.org/u/bala4901)
#### Post date: [May 4, 2022, 6:39am UTC](https://discuss.tryton.org/t/example-of-reference-field-domain/5234/3 "2022-05-04T06:39:16Z")

</div>

Hi @ced ,

Thank you for fast respond.

Is it possible to have some syntax example for search\_order?

I could not found this in the documentation.

Best regards
