Odoo Help

0

How to rename or change format of downloading file in openerp

By
muhammed
on 4/29/14, 5:05 AM 1,107 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--
2108
| 5 2 8
Ahmadabad, India
--Nehal--
Nehal
On 4/29/14, 5:33 AM

Hi,

This link may help you.

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.

Register

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

0 follower(s)

Stats

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