This module lets you call a wizard to download any file.
Table of contents
Usage
To use this module, you need to:
Create a model that inherits from file.download.model.
Override the following functions:
`get_filename`: Return the desired file name.
`get_content`: Return the binary string file to download. For example:
from io import StringIO def get_content(self): output = StringIO() file.save(output) output.seek(0) return output.read()
After this, create a wizard with a button that calls the function set_file. This function will open a new wizard with the downloadable file.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Valentín Vinagre
Ángel García de la Chica Herrera
Maintainers
This module is part of the sygel-technology/sy-server-backend project on GitHub.
You are welcome to contribute.
Metadata
Release files for odoo-addon-file-download 18.0.1.0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| odoo_addon_file_download-18.0.1.0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / odoo_addon_file_download-18.0.1.0.0.1-py3-none-any.whl
| Download URL | odoo_addon_file_download-18.0.1.0.0.1-py3-none-any.whl |
|---|---|
| Size | 37.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40f48544c9db14ec07ba22b21b20440745867afab177bce35440c7a4f8dc8bd9
|
|
BLAKE2b-256 checksum How to use checksums |
642667cd344a940e401868a615be6cb0e50021b4dffca27023708c15f7369372
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|