Odoo Help


Where in odoo does the file name get generated for attachments?

Matt Seymour
on 6/10/14, 12:09 PM 2,126 views

Hi there,

Looking at file storage and noticed that every file gets a unique rename upon attaching it to the system. 

Where in odoo does the attached file get its random name from?

 Where in the system is it generated?


Many Thanks,



Niels Huylebroeck
On 6/10/14, 12:18 PM

The code is located in base addon for model 'ir.attachment'


This file is in ..../addons/mails/ir_attachment.py in my Odoo v8 installation. Nowhere else.

Pascal Tremblay
on 1/6/15, 6:29 AM

Other idea for Odoo v8?

Pascal Tremblay
on 1/6/15, 6:36 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 6/10/14, 12:09 PM
Seen: 2126 times
Last updated: 3/16/15, 8:10 AM