I need to store audio file from web url in binary field. now it's stored as unknown format. but, i need it's original file format like .mp3. can anyone show me the way?
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ờ
Pls. check this module: https://www.odoo.com/apps/modules/11.0/audio_field/
hope it will help you.
or you can add name of that file like abc.mp3 in file_name field.
Hi, can you provide a way in python if possible, because i'm not familiar with javascript. Thank you
when you are creating file from the code of python just add name in name field test.mp3
In .py file
attachment = fields.Binary(string="Attachment")
store_fname = fields.Char(string="File Name")
In .xml file
<field name="store_fname" invisible="1" />
<field name="attachment" filename="store_fname" />
Hope this helps you
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ýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 4 18
|
8259 | ||
|
2
thg 7 24
|
1597 | ||
|
1
thg 6 24
|
4136 | ||
|
1
thg 10 23
|
9566 | ||
|
1
thg 10 23
|
98 |