Skip to content
Snippets Groups Projects
Commit e76fc22b authored by Axel Prel's avatar Axel Prel
Browse files

template locale is by default user locale instead of fr_FR

parent 8f446bd1
No related branches found
Tags 18.0.1.1.0
No related merge requests found
......@@ -5,6 +5,8 @@
17.0.1.10.0
----------
Template locale is by default user locale, not fr_FR
Update Redner config parameter names in the README
Add more export formats from Typst
......
......@@ -116,7 +116,7 @@
with ZipFile(result_path, "w", ZIP_DEFLATED) as zf:
cpt = 0
for report in reports_path:
fname = "%s_%d.%s" % (
fname = "{}_{}.{}".format(
zfname_prefix,
cpt,
report.split(".")[-1],
......
......@@ -161,7 +161,10 @@
string="Locale",
help="Optional translation language (ISO code).",
readonly=False,
default=lambda self: self.env.ref("base.lang_fr").id,
required=True,
default=lambda self: self.env["res.lang"]
.search([("code", "=", self.env.user.lang)], limit=1)
.id,
compute="_compute_template",
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment