The module for enhances the platform's client-side capabilities by enabling seamless file downloads triggered by client actions. This module is particularly useful for scenarios where users need to download files directly from the client interface without complex server-side processing.
Client-Side File Downloads: Facilitates direct file downloads from the client interface.
Trigger Mechanism: Allows file downloads to be initiated through client actions.
Customizable Actions: Enables customization of download actions to fit specific business needs.
Seamless Integration: Integrates smoothly with existing modules and workflows.
User-Friendly Interface: Provides an intuitive interface for configuring and managing download actions.
Enhanced User Experience: Streamlines the process of downloading files, improving user satisfaction.
Increased Efficiency: Reduces the need for complex server-side processing, speeding up file download operations.
Customization Flexibility: Offers flexibility to tailor download actions to specific business requirements.
Seamless Integration: Ensures smooth integration with existing modules and workflows.
Cost-Effective Solution: Provides a cost-effective solution for enhancing file handling capabilities.
Client Action File Download
"Triggers File Download from Server Action"
This module allows developers to trigger file download from server action.
Description
This module allows developers to trigger file download from server action.
Views
-
INHERIT assets_backend (qweb)
Dependencies
-
Web
Demonstration
◉ Sample Code ◉
Attachment record
action = { 'type' : 'ir.actions.client', 'tag' : 'file_download', 'params' : { 'id': attachment.id, 'download' : True } }
Attachment record
action = { 'type' : 'ir.actions.client', 'tag' : 'file_download', 'params' : { 'id': attachment.id, 'download' : True } }
Other binary field
action = { 'type': 'ir.actions.client', 'tag' : 'file_download', 'params' : { 'model' : self._name, 'field' : 'datas', 'id' : self.id, 'filename' : self.filename, 'filename_field' : 'filename', 'download' : True } }