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

class customer_attachment(osv.Model): _name = 'bank.customer_attachment' _description = 'Bank customer attachment file'

_columns = {
    'datas_fname': fields.char('File Name',size=256),
    'file': fields.binary('File'),
}
defaults = {
'file': 'test_filname.pdf',

}

This is my class for attachment. Thanks in advance for help.... I want change the file name while download the attached file

Please Help me

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

Hi,

This link may help you.

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