Hi friends, I am using binary field for attaching documents.After I attach a document, It comes as a link(download(size)).But I need a file name after I attached a document instead of link(download(size)).
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
1
Cevapla
4228
Görünümler
Hi
Try this code
Add in .py file
'datas_fname': fields.char('File Name',size=256),
'file': fields.binary('File'),
Add in .xml file
<field name="file" filename="datas_fname'"/>
<field name="datas_fname" invisible="1" class="oe_inline oe_right"/>
Thanks
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Ol
using Document Management System module can attach document with file name.