# Add flag indication to tree views where form buttons have rules engaged and perhaps issue email notifications

**URL:** https://discuss.tryton.org/t/add-flag-indication-to-tree-views-where-form-buttons-have-rules-engaged-and-perhaps-issue-email-notifications/6041
**Category:** Ideas
**Created:** [March 24, 2023, 9:30am UTC](https://discuss.tryton.org/t/add-flag-indication-to-tree-views-where-form-buttons-have-rules-engaged-and-perhaps-issue-email-notifications/6041 "2023-03-24T09:30:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![risto3](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/a87d85/32.png) [@risto3](https://discuss.tryton.org/u/risto3)
#### Post date: [March 24, 2023, 9:30am UTC](https://discuss.tryton.org/t/add-flag-indication-to-tree-views-where-form-buttons-have-rules-engaged-and-perhaps-issue-email-notifications/6041/1 "2023-03-24T09:30:45Z")

</div>

as indicated here ([add counter (flag indication) to tree views where form buttons have rules engaged (#10113) · Issues · Tryton / Tryton · GitLab](https://foss.heptapod.net/tryton/tryton/-/issues/10113)) we’ve been using button rules to give only certain users the privilege to complete some operations such as posting invoices or confirming customer orders.  
Unfortunately left at that, one gets no feedback that operations are pending before opening individually the form and _noticing_ a counter on the button on the bottom of the form.

Minimally we’d like to experiment with email\_notification to inform the ‘privileged’ users that which operations are outstanding.

It doesn’t seem immediately intuitive as to how such notification would be set up.

Additionally, it would be useful to indicate on the tree view which records are awaiting completion, either by a flag, or perhaps by a colour, but it isn’t readily evident how to ‘find’ such records with ir.model.button\*

Thanks in advance for some insight, cheers

ps: probably the same problematic exists for _record_ rules

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [March 24, 2023, 9:35am UTC](https://discuss.tryton.org/t/add-flag-indication-to-tree-views-where-form-buttons-have-rules-engaged-and-perhaps-issue-email-notifications/6041/2 "2023-03-24T09:35:23Z")

</div>

I’m wondering if it will be a good idea to add a visual indicator on records that have a click record in for the same state as they are.

But as buttons are not linked to the state, this is not possible. So we need a flexible way to link the button with the state.

---

<div class="post-metadata">

### Author: ![risto3](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/a87d85/32.png) [@risto3](https://discuss.tryton.org/u/risto3)
#### Post date: [March 24, 2023, 9:50am UTC](https://discuss.tryton.org/t/add-flag-indication-to-tree-views-where-form-buttons-have-rules-engaged-and-perhaps-issue-email-notifications/6041/3 "2023-03-24T09:50:52Z")

</div>

I should mention that we use the button rules as it seemed (at the time) the easiest way to implement approvals at that level.

Unfortunately, as indicated on [protecting 'credit' on invoices (#12048) · Issues · Tryton / Tryton · GitLab](https://foss.heptapod.net/tryton/tryton/-/issues/12048), there are other operations (actions) that are not form buttons that could use the rules as well.

Perhaps there is a different approach to accomplish these tasks with a more robust means to ensure the operations cross user communication…
