Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 257 |
Technical Name |
comceptplus_pack_records |
License | AGPL-3 |
Website | https://comceptplus.com |
Versions | 13.0 11.0 12.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 257 |
Technical Name |
comceptplus_pack_records |
License | AGPL-3 |
Website | https://comceptplus.com |
Versions | 13.0 11.0 12.0 |
Pack records
Export record attachments into a compressed file
This is an easy way for you to export document attachments for one specific data model.
WARNING:
Make sure you have the right permissions to create files on disk.
This is a generic module that sets the feature but you'll need to call it by creating an action.
Here's an example, applied to sale orders:
<act_window id="sale_order_download_pack_action" name="Pack sale orders (ZIP)" res_model="ir.model.download_pack" binding_model="sale.order" view_mode="form" target="new" context="{'pack_folder_structure':'date_order|%Y,date_order|%m,date_order|%d,partner_id.name,name'}"/>
In context, you tell the program the folder structure you want to use. In this example, you're going to get something like this:
-
2018
-
10
-
05
-
KlausSchneider
- XPTO/0002
- XPTO/0123
-
JoãoSilva
- XPTO/0777
- XPTO/0755
-
KlausSchneider
-
05
-
10
Please log in to comment on this module