Initial commit
This commit is contained in:
18
Fusion Accounting/models/ir_actions.py
Normal file
18
Fusion Accounting/models/ir_actions.py
Normal 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'}
|
||||
Reference in New Issue
Block a user