I want to write a module in which you can upload a file (an excel file in my case) and after uploading, I want to do some processing using the file's data. I couldn't find any tutorials for uploading a file in odoo in a custom modules. anyone can help?
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ờ
You can use Binary Field to feed uploads.
logo = fields.Binary('Website Logo', default=_default_logo, help="Display this logo on the website.")
above field defined to upload logos. Same can be used to feed any files.
How can I process the file that I uploaded? in my case its an excel file
Whenever you upload a file, it will automatically processed by odoo in default and save in ir_attachment field. If you need to do more operations then you can access the file from current object or from ir_attachment table
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 | |
---|---|---|---|---|
|
3
thg 11 23
|
7005 | ||
|
2
thg 6 24
|
4269 | ||
|
2
thg 8 22
|
5984 | ||
|
1
thg 7 24
|
1202 | ||
|
4
thg 5 24
|
2355 |
to upload file you can use binary field, than on button click read that file and process further
@Sehrish can you be more specific? or send me a link so I can check it out.