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

How to rename or change format of downloading file in openerp

By
muhammed
on 4/29/14, 5:05 AM 865 views

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

0

Nehal

--Nehal--
2090
| 5 2 8
Ahmadabad, India
--Nehal--
Nehal
On 4/29/14, 5:33 AM

Hi,

This link may help you.

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

0 follower(s)

Stats

Asked: 4/29/14, 5:05 AM
Seen: 865 times
Last updated: 3/16/15, 8:10 AM