# Make reports configurable by company

**URL:** https://discuss.tryton.org/t/make-reports-configurable-by-company/5527
**Category:** Ideas
**Created:** [September 12, 2022, 12:06pm UTC](https://discuss.tryton.org/t/make-reports-configurable-by-company/5527 "2022-09-12T12:06:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![juanjogp](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/c68b51/32.png) [@juanjogp](https://discuss.tryton.org/u/juanjogp)
#### Post date: [September 12, 2022, 12:06pm UTC](https://discuss.tryton.org/t/make-reports-configurable-by-company/5527/1 "2022-09-12T12:06:24Z")

</div>

Sometimes, we found different companies in tryton needs different reports (for example, we need two different invoice reports for two different companies).

Right now, the reports are the same for all the companies and if you create a new report for a specific company, all the companies can see it. Besides that, the reports that we create, (e.g. invoices) will not be used when they are saved in the cache, it would also be necessary to use the report configured for each company here.

I think it will be an interesting feature to be able to choose which companies can see/ use a specific report. The current operation can be maintained if no company is indicated in a report.

Thoughts?

---

<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 12, 2022, 12:21pm UTC](https://discuss.tryton.org/t/make-reports-configurable-by-company/5527/2 "2022-09-12T12:21:51Z")

</div>

I do not think it is useful but more over it will create ambiguous behavior. For example what happens if a report is executed with records from different companies? Or how do you define the company of a record (outside the obvious case of having a company field).

Indeed having different layout depending on a property of a record is already doable by putting a big _Choose_ statement at the start of the record loop.

---

<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: [September 12, 2022, 12:32pm UTC](https://discuss.tryton.org/t/make-reports-configurable-by-company/5527/3 "2022-09-12T12:32:38Z")

</div>

> [@ced](#):
>
> Indeed having different layout depending on a property of a record is already doable by putting a big _Choose_ statement at the start of the record loop

I think this is the simpler solution, even you can reuse some parts of the report if just some changes (for example using diferent logo o different information)
