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:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
4295
Lượt xem
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
using Document Management System module can attach document with file name.