This commit is contained in:
gsinghpal
2026-03-13 12:38:28 -04:00
parent db4b9aa278
commit fc3c966484
2975 changed files with 1614 additions and 498 deletions

View File

@@ -0,0 +1,18 @@
# Fusion Accounting - Accounting Report Download Action
# Technical abstract model exposing the 'data' field for report downloads
from odoo import models
class FusionReportDownloadAction(models.AbstractModel):
"""Abstract model that extends the readable field set of
``ir.actions.actions`` to include 'data', enabling the
accounting report download mechanism."""
_name = 'ir_actions_account_report_download'
_description = 'Technical model for accounting report downloads'
def _get_readable_fields(self):
"""Merge the standard readable fields with the 'data' key
required by the report export controller."""
return self.env['ir.actions.actions']._get_readable_fields() | {'data'}