From 10fe81816e8012e5d6d4c871e8f5a94868873a1f Mon Sep 17 00:00:00 2001 From: tarteo Date: Tue, 14 May 2024 10:36:38 +0200 Subject: [PATCH] Revert "l10n_nl_rgs_xaf_auditfile_export: Make auditfile_template non-primary instead" This reverts commit 5b823538b60c04f2c96982f0fd4ed1d9123c583f. --- l10n_nl_rgs_xaf_auditfile_export/__init__.py | 1 + l10n_nl_rgs_xaf_auditfile_export/models/__init__.py | 3 +++ .../models/xaf_auditfile_export.py | 10 ++++++++++ l10n_nl_rgs_xaf_auditfile_export/views/templates.xml | 2 +- 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 l10n_nl_rgs_xaf_auditfile_export/models/__init__.py create mode 100644 l10n_nl_rgs_xaf_auditfile_export/models/xaf_auditfile_export.py diff --git a/l10n_nl_rgs_xaf_auditfile_export/__init__.py b/l10n_nl_rgs_xaf_auditfile_export/__init__.py index e69de29..0650744 100644 --- a/l10n_nl_rgs_xaf_auditfile_export/__init__.py +++ b/l10n_nl_rgs_xaf_auditfile_export/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_nl_rgs_xaf_auditfile_export/models/__init__.py b/l10n_nl_rgs_xaf_auditfile_export/models/__init__.py new file mode 100644 index 0000000..0dfa9a8 --- /dev/null +++ b/l10n_nl_rgs_xaf_auditfile_export/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import xaf_auditfile_export diff --git a/l10n_nl_rgs_xaf_auditfile_export/models/xaf_auditfile_export.py b/l10n_nl_rgs_xaf_auditfile_export/models/xaf_auditfile_export.py new file mode 100644 index 0000000..2f9e7dd --- /dev/null +++ b/l10n_nl_rgs_xaf_auditfile_export/models/xaf_auditfile_export.py @@ -0,0 +1,10 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo import models + + +class XafAuditfileExport(models.Model): + _inherit = "xaf.auditfile.export" + + def _get_auditfile_template(self): + """return the qweb template to be rendered""" + return "l10n_nl_rgs_xaf_auditfile_export.auditfile_template" diff --git a/l10n_nl_rgs_xaf_auditfile_export/views/templates.xml b/l10n_nl_rgs_xaf_auditfile_export/views/templates.xml index 9df7344..7fe7f82 100644 --- a/l10n_nl_rgs_xaf_auditfile_export/views/templates.xml +++ b/l10n_nl_rgs_xaf_auditfile_export/views/templates.xml @@ -1,7 +1,7 @@ -