# Help with "ir.attachment"

**URL:** https://discuss.tryton.org/t/help-with-ir-attachment/4576
**Category:** Developer
**Tags:** ir
**Created:** [August 31, 2021, 1:00am UTC](https://discuss.tryton.org/t/help-with-ir-attachment/4576 "2021-08-31T01:00:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mgcandia](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@mgcandia](https://discuss.tryton.org/u/mgcandia)
#### Post date: [August 31, 2021, 1:00am UTC](https://discuss.tryton.org/t/help-with-ir-attachment/4576/1 "2021-08-31T01:00:33Z")

</div>

How could I access the files that are already attached, access the names so as not to repeat files?

thanks

---

<div class="post-metadata">

### Author: ![dotbit](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dotbit/32/2093_2.png) [@dotbit](https://discuss.tryton.org/u/dotbit)
#### Post date: [August 31, 2021, 7:28am UTC](https://discuss.tryton.org/t/help-with-ir-attachment/4576/2 "2021-08-31T07:28:08Z")

</div>

Hi,

You have to tell us where you want to access attachment names from. Proteus?

\<attachment\_object\>.name?

Can you get the attachment object?

---

<div class="post-metadata">

### Author: ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)
#### Post date: [August 31, 2021, 8:46am UTC](https://discuss.tryton.org/t/help-with-ir-attachment/4576/3 "2021-08-31T08:46:21Z")

</div>

> [@mgcandia](#):
>
> How could I access the files that are already attached

Go to `Administration -> Models -> Attachments` there you will see all the attachments linked to a record.

> [@mgcandia](#):
>
> …, access the names so as not to repeat files?

An attachment is uniquely linked to a record, so you cannot have multiple records linked to one attachment.

---

<div class="post-metadata">

### Author: ![mgcandia](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@mgcandia](https://discuss.tryton.org/u/mgcandia)
#### Post date: [August 31, 2021, 1:14pm UTC](https://discuss.tryton.org/t/help-with-ir-attachment/4576/4 "2021-08-31T13:14:28Z")

</div>

Hi, yes proteus. I have been able to find matches with the following line:  
Attachment.find([(‘name’,‘=’,contenido)])
