# Alllow to execute an action based on domain

**URL:** <https://discuss.tryton.org/t/alllow-to-execute-an-action-based-on-domain/4507>\
**Category:** Ideas\
**Created:** [August 2, 2021, 11:06am UTC](https://discuss.tryton.org/t/alllow-to-execute-an-action-based-on-domain/4507 "2021-08-02T11:06:04Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [August 2, 2021, 11:06am UTC](https://discuss.tryton.org/t/alllow-to-execute-an-action-based-on-domain/4507/1 "2021-08-02T11:06:04Z")

</div>

We recently added the possibility to [print reports for the listed records](https://bugs.tryton.org/issue10116), which was activated on some [Spanish reports required by our tax authorities](https://bugs.tryton.org/issue10230).

When testing this feature on a large database (nearly 2500 invoices for a fiscalyear) we just found that the search\_limit (1000 records) is applied to the search. This causes the report to be incomplete as we are missing some features.

Of course, the search limit can be increased but I’m not sure if forcing the user to increase the value is intuitive. As the user asked for a Report, we should give him the full report.

So I’m wondering if we should allow a third option, that behaves like [export\_data\_domain](https://hg.tryton.org/trytond/file/9826b7711f94/trytond/model/modelstorage.py#l696).

---

<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:** [August 2, 2021, 11:17am UTC](https://discuss.tryton.org/t/alllow-to-execute-an-action-based-on-domain/4507/2 "2021-08-02T11:17:04Z")

</div>

If there is a constraint on what should be included in a report than it should be set by a wizard.  
We can not remove limits to user actions.

---

<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:** [August 2, 2021, 11:25am UTC](https://discuss.tryton.org/t/alllow-to-execute-an-action-based-on-domain/4507/3 "2021-08-02T11:25:58Z")

</div>

> [@ced](#):
>
> If there is a constraint on what should be included in a report than it should be set by a wizard.

So you propose to execute the report with a wizard that performs the search?  
That will be a reasonable solution for me.

---

<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:** [August 2, 2021, 11:31am UTC](https://discuss.tryton.org/t/alllow-to-execute-an-action-based-on-domain/4507/4 "2021-08-02T11:31:13Z")

</div>

Yes if the report makes no sense for any other set of records.
