Odoo Help

Welcome!

This community 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.

0

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

By
Matt Seymour
on 6/10/14, 12:09 PM 1,587 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,

 

 

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

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

https://github.com/odoo/odoo/blob/master/openerp/addons/base/ir/ir_attachment.py#L99

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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