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

template locale is by default user locale instead of fr_FR

parent 9de103770235
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@
18.0.1.7.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
......
......@@ -123,7 +123,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