Skip to content

Commit

Permalink
[MIG] l10n_nl_xaf_auditfile_export: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NL66278 authored and astirpe committed Jan 17, 2023
1 parent 7bf52ca commit 9e5b4c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions l10n_nl_xaf_auditfile_export/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2015 Therp BV <https://therp.nl>
# Copyright 2015-2022 Therp BV <https://therp.nl>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "XAF auditfile export",
"version": "14.0.1.3.0",
"version": "15.0.1.3.0",
"author": "Therp BV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-netherlands",
"license": "AGPL-3",
Expand Down
8 changes: 6 additions & 2 deletions l10n_nl_xaf_auditfile_export/models/xaf_auditfile_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _compute_fiscalyear_name(self):
auditfile_name = fields.Char(
"Auditfile filename", compute="_compute_auditfile_name", store=True
)
date_generated = fields.Datetime("Date generated", readonly=True, copy=False)
date_generated = fields.Datetime(readonly=True, copy=False)
company_id = fields.Many2one("res.company", required=True)

unit4 = fields.Boolean(
Expand All @@ -90,7 +90,11 @@ def default_get(self, fields_list):
if "name" in fields_list:
defaults.setdefault(
"name",
_("Auditfile %s %s") % (company.name, datetime.now().strftime("%Y")),
_("Auditfile %(company_name)s %(current_datetime)s")
% {
"company_name": company.name,
"current_datetime": datetime.now().strftime("%Y"),
},
)

return defaults
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Copyright 2018-2020 Onestein (<https://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
#

import base64
import os
Expand Down

0 comments on commit 9e5b4c0

Please sign in to comment.