Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7591 Lượt xem

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,

 

 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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

Other idea for Odoo v8?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 18
3890
0
thg 9 22
3498
0
thg 2 19
4600
3
thg 10 24
17994
0
thg 10 21
2629