# Improve report name

**URL:** https://discuss.tryton.org/t/improve-report-name/2528
**Category:** Ideas
**Created:** [April 2, 2020, 2:36pm UTC](https://discuss.tryton.org/t/improve-report-name/2528 "2020-04-02T14:36:24Z")
**Posts on this page:** 1
**Showing post:** 13

<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: [April 3, 2020, 10:29am UTC](https://discuss.tryton.org/t/improve-report-name/2528/13 "2020-04-03T10:29:46Z")

</div>

> [@ced](#):
>
> But as the report name is part of the returned value, for me we do not need to blow up the `Report` class.

I agree that we do not need a new method. Currently its easy to extend a report name. Here is an example:

```python
    @classmethod
    def execute(cls, ids, data): 
        pool = Pool()
        Product = pool.get('product.product')
        result = super().execute(ids, data) 
        if len(ids) == 1:
            product, = Product.browse(ids)
            if product.name:
                result = result[:3] + (product.name,)
        return result

```

> [@ced](#):
>
> The desktop client _slugify_ the filename but I do not know how the web browser manage them (but I guess they handle it).

I remember having issues with zip files when the sequence contained the / character. And probably this is related to both clients.

---

_[View the full topic](https://discuss.tryton.org/t/improve-report-name/2528)._
