# Dottet notation in PYSON Eval

**URL:** <https://discuss.tryton.org/t/dottet-notation-in-pyson-eval/1987>\
**Category:** Developer\
**Created:** [November 22, 2019, 10:25am UTC](https://discuss.tryton.org/t/dottet-notation-in-pyson-eval/1987 "2019-11-22T10:25:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)\
**Post date:** [November 22, 2019, 10:25am UTC](https://discuss.tryton.org/t/dottet-notation-in-pyson-eval/1987/1 "2019-11-22T10:25:35Z")

</div>

In version 5.4 there is a dottet notation added for Eval (see [http://docs.tryton.org/projects/server/en/5.4/ref/pyson.html#trytond.pyson.Eval](http://docs.tryton.org/projects/server/en/5.4/ref/pyson.html#trytond.pyson.Eval)). The problem is however that dottet notation worked before, but on fields in the **same** table. Maybe it wasn’t intended to work that way, but it did.  
So this works for Tryton \< 5.4

```auto
Eval('master_parent.type') == 'project'

```

Where `master_parent` is a `Many2One` field (in the same table) and I want to have the field `type` of that record.  
How can this be accomplished in Tryton \>= 5.4 ?

---

<div class="post-metadata">

**Author:** ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)\
**Post date:** [November 22, 2019, 10:37am UTC](https://discuss.tryton.org/t/dottet-notation-in-pyson-eval/1987/2 "2019-11-22T10:37:10Z")

</div>

Oh no 😢 answering myself here. Changing to

```auto
Eval('_parent_master_parent.type') == 'project'

```

Works like expected.

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [December 22, 2019, 10:37am UTC](https://discuss.tryton.org/t/dottet-notation-in-pyson-eval/1987/3 "2019-12-22T10:37:19Z")

</div>

Closed on December 22, 2019, 10:37am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
