Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
1
report_pdf_zip_download/models/__init__.py
Normal file
1
report_pdf_zip_download/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import ir_actions_report
|
||||
16
report_pdf_zip_download/models/ir_actions_report.py
Normal file
16
report_pdf_zip_download/models/ir_actions_report.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# Copyright 2024 Quartile (https://www.quartile.co)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class IrActionsReport(models.Model):
|
||||
_inherit = "ir.actions.report"
|
||||
|
||||
zip_download = fields.Boolean(
|
||||
help="If enabled, the report will be downloaded as a zip "
|
||||
"file for multiple records."
|
||||
)
|
||||
|
||||
def _get_readable_fields(self):
|
||||
return super()._get_readable_fields() | {"zip_download"}
|
||||
Reference in New Issue
Block a user