Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Redner Odoo Module
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo modules
Redner Odoo Module
Commits
36d9f92d05b7
Commit
36d9f92d05b7
authored
1 month ago
by
Axel Prel
Browse files
Options
Downloads
Patches
Plain Diff
template locale is by default user locale instead of fr_FR
parent
9de103770235
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NEWS.rst
+2
-0
2 additions, 0 deletions
NEWS.rst
models/redner_report.py
+1
-1
1 addition, 1 deletion
models/redner_report.py
models/redner_template.py
+4
-1
4 additions, 1 deletion
models/redner_template.py
with
7 additions
and
2 deletions
NEWS.rst
+
2
−
0
View file @
36d9f92d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
models/redner_report.py
+
1
−
1
View file @
36d9f92d
...
...
@@ -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
],
...
...
This diff is collapsed.
Click to expand it.
models/redner_template.py
+
4
−
1
View file @
36d9f92d
...
...
@@ -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
"
,
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment