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
Merge requests
!63
Add python-magic as external dependency and fix print-paper-size metadata
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add python-magic as external dependency and fix print-paper-size metadata
topic/17.0/fsb
into
branch/17.0
Overview
0
Commits
2
Pipelines
0
Changes
4
Merged
oury.balde
requested to merge
topic/17.0/fsb
into
branch/17.0
4 months ago
Overview
0
Commits
2
Pipelines
0
Changes
4
Expand
Added python-magic to external dependencies in
manifest
.py
Fixed metadata formatting for print-paper-size in ir_actions_report.py
--HG-- branch : 17.0
0
0
Merge request reports
Compare
branch/17.0
version 1
37bbac9b
4 months ago
branch/17.0 (base)
and
latest version
latest version
63b711b6
2 commits,
4 months ago
version 1
37bbac9b
1 commit,
4 months ago
4 files
+
11
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
models/ir_actions_report.py
+
3
−
3
Options
@@ -146,12 +146,12 @@ class IrActionsReport(models.Model):
# Get print-paper-size values
if
pf
.
format
and
pf
.
orientation
:
metadata_values
[
"
print-paper-size
"
,
]
=
f
"
{
pf
.
format
}
{
pf
.
orientation
}
"
metadata_values
[
"
print-paper-size
"
]
=
f
"
{
pf
.
format
}
{
pf
.
orientation
}
"
elif
pf
.
format
and
not
pf
.
orientation
:
metadata_values
[
"
print-paper-size
"
,
]
=
f
"
{
pf
.
format
}
"
metadata_values
[
"
print-paper-size
"
]
=
f
"
{
pf
.
format
}
"
# Get print-paper-margin values: top | right | bottom | left
metadata_values
[
"
print-paper-margin
"
,
]
=
(
metadata_values
[
"
print-paper-margin
"
]
=
(
f
"
{
pf
.
margin_top
}
{
pf
.
margin_right
}
{
pf
.
margin_bottom
}
{
pf
.
margin_left
}
"
)
Loading