Skip to content

Commit

Permalink
Revert "l10n_nl_rgs_xaf_auditfile_export: Make auditfile_template non…
Browse files Browse the repository at this point in the history
…-primary instead"

This reverts commit 5b82353.
  • Loading branch information
tarteo committed May 14, 2024
1 parent a61b4c4 commit 10fe818
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions l10n_nl_rgs_xaf_auditfile_export/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
3 changes: 3 additions & 0 deletions l10n_nl_rgs_xaf_auditfile_export/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import xaf_auditfile_export
10 changes: 10 additions & 0 deletions l10n_nl_rgs_xaf_auditfile_export/models/xaf_auditfile_export.py
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion l10n_nl_rgs_xaf_auditfile_export/views/templates.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

<template id="auditfile_template" inherit_id="l10n_nl_xaf_auditfile_export.auditfile_template">
<template id="auditfile_template" inherit_id="l10n_nl_xaf_auditfile_export.auditfile_template" primary="True">
<xpath expr="//*[local-name()='accTp']" position="after">
<leadReference><t t-esc="a.referentiecode" /></leadReference>
<!-- <leadCrossRef><t t-esc="a.referentieomslagcode" /></leadCrossRef> -->
Expand Down

0 comments on commit 10fe818

Please sign in to comment.