Iam using odoo 13
I want to download the given below file from pythonprint(attachment._full_path(attachment.store_fname))It returns
/home/fawad/.local/share/Odoo/filestore/CDNSDB/bf/bfd009f500c057195ffde66fae64f92fa5f59b72
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
2441
Views
with open(get_resource_path('attachment_pdf2image', 'images/') + "test.pdf", "wb") as f:
f.write(base64.b64decode(attachment.datas))
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
with open(get_resource_path('attachment_pdf2image', 'images/') + "test.pdf", "wb") as f:
f.write(base64.b64decode(attachment.datas))