Skip to content
Snippets Groups Projects
Commit 37bbac9b authored by oury.balde's avatar oury.balde
Browse files

Add python-magic as external dependency and fix print-paper-size metadata

- Added python-magic to external dependencies in __manifest__.py
- Fixed metadata formatting for print-paper-size in ir_actions_report.py
parent 8171eeed
No related branches found
No related tags found
1 merge request!63Add python-magic as external dependency and fix print-paper-size metadata
This commit is part of merge request !63. Comments created here will be created in the context of that merge request.
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
Changelog Changelog
========= =========
17.0.1.1.1
----------
- Add python-magic as external dependency and fix print-paper-size metadata.
17.0.1.1.0 17.0.1.1.0
---------- ----------
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
{ {
"name": "Redner", "name": "Redner",
"license": "AGPL-3", "license": "AGPL-3",
"version": "17.0.1.1.0", "version": "17.0.1.1.1",
"category": "Reporting", "category": "Reporting",
"author": "XCG Consulting", "author": "XCG Consulting",
"website": "https://orbeet.io/", "website": "https://orbeet.io/",
...@@ -41,5 +41,5 @@ ...@@ -41,5 +41,5 @@
"web.assets_backend": ["redner/static/src/js/redner_report_action.esm.js"], "web.assets_backend": ["redner/static/src/js/redner_report_action.esm.js"],
}, },
"installable": True, "installable": True,
"external_dependencies": {"python": ["requests_unixsocket"]}, "external_dependencies": {"python": ["requests_unixsocket", "python-magic"]},
} }
...@@ -146,5 +146,5 @@ ...@@ -146,5 +146,5 @@
# Get print-paper-size values # Get print-paper-size values
if pf.format and pf.orientation: 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: elif pf.format and not pf.orientation:
...@@ -150,4 +150,4 @@ ...@@ -150,4 +150,4 @@
elif pf.format and not 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 # Get print-paper-margin values: top | right | bottom | left
...@@ -152,6 +152,6 @@ ...@@ -152,6 +152,6 @@
# Get print-paper-margin values: top | right | bottom | left # 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}" f"{pf.margin_top} {pf.margin_right} {pf.margin_bottom} {pf.margin_left}"
) )
......
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