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 | etc.
Now when we open an attachment, we can download the file on clicking on his link.
Is there a way to download the file directly with a button from the list? Just create a button on the list view and when we click on it, it downloads the file directly without having to open the form view then click on the link.
I Have a related example with me.
Example: Need to download Perticular file in stock_picking_out tree view depend on company.
1. i need to download a file from the tree view depend on company.
create a binary field in "res.company" and from binary field select the file which u want to download.
2. create related field in stock_picking and stockpicking_out
'attachment' : fields.related('company_id','attachment',type='binary',store=False,string="Attachmnet",readonly=True),
now we can use the attachment field in stock_picking_out tree/list view to download a file selected in res.company "attachment" binary field
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/29/14, 6:48 AM|
|Seen: 1058 times|
|Last updated: 3/16/15, 8:10 AM|