# Help to configure notification email

**URL:** <https://discuss.tryton.org/t/help-to-configure-notification-email/3190>\
**Category:** User\
**Tags:** notification\
**Created:** [September 4, 2020, 9:08pm UTC](https://discuss.tryton.org/t/help-to-configure-notification-email/3190 "2020-09-04T21:08:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)\
**Post date:** [September 4, 2020, 9:08pm UTC](https://discuss.tryton.org/t/help-to-configure-notification-email/3190/1 "2020-09-04T21:08:12Z")

</div>

Hi,

I need help to configure notification email. At the moment I have follow these steps:

1. Create a sale report in HTML format for model sale.sale
2. Create a new Notification Email record
3. In content select the sale report created.
4. Recipients select Party (party.party)
5. In attachments select Sale Report (create in sale module)
6. Create a trigger under with the follow info:
  - Name: Sale confirmed
  - Model: Sale
  - On Create: True
  - condition: true
  - Limit number: 25
  - Minimum delay 00:30
  - Action: Email Notification

At these point works fine when a new sale is created.

I need help with the condition of the trigger because I only want trigger is called when the follow condition is true:

Eval(‘self’, {}).get(‘state’) == ‘confirmed’

I tried to update the trigger with On Write: True and write the condition above but always the condition is invalid.

Thanks in advance.

---

<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:** [September 5, 2020, 8:56am UTC](https://discuss.tryton.org/t/help-to-configure-notification-email/3190/2 "2020-09-05T08:56:02Z")

</div>

I guess you are using the web client. Indeed it is [missing the Eval.get function](https://bugs.tryton.org/issue9576) so you have to type: `Equal(Get(Eval("self", {}), "state", ""), "confirmed")`.

---

<div class="post-metadata">

**Author:** ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)\
**Post date:** [September 6, 2020, 12:46am UTC](https://discuss.tryton.org/t/help-to-configure-notification-email/3190/3 "2020-09-06T00:46:54Z")

</div>

Thanks, the suggested conditions works!

I can not use the same condition on tryton version 5.6.4 neither sao.

---

<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:** [September 6, 2020, 7:53am UTC](https://discuss.tryton.org/t/help-to-configure-notification-email/3190/4 "2020-09-06T07:53:27Z")

</div>

> [@iehoshia](#):
>
> I can not use the same condition on tryton version 5.6.4 neither sao.

You can not use all the syntax sugar on the web client because Javascript does not allow overloading operators. But both clients reformat the PYSON in the same standardized syntax.

---

<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:** [October 6, 2020, 7:53am UTC](https://discuss.tryton.org/t/help-to-configure-notification-email/3190/5 "2020-10-06T07:53:28Z")

</div>

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