mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] report_qr: New QR Library does not contain the old failure
This commit is contained in:
committed by
Kiplangat Dan
parent
f5bb3fac4b
commit
0031b7c8b1
@@ -17,9 +17,8 @@ class IrActionsReport(models.Model):
|
|||||||
"svg-fragment": svg.SvgFragmentImage,
|
"svg-fragment": svg.SvgFragmentImage,
|
||||||
"svg-path": svg.SvgPathImage,
|
"svg-path": svg.SvgPathImage,
|
||||||
}
|
}
|
||||||
# Color parameters seem to be inverted in the library
|
back_color = kwargs.pop("back_color", "white")
|
||||||
back_color = kwargs.pop("back_color", "black")
|
fill_color = kwargs.pop("fill_color", "black")
|
||||||
fill_color = kwargs.pop("fill_color", "white")
|
|
||||||
try:
|
try:
|
||||||
# Defaults to png if the argument is unknown
|
# Defaults to png if the argument is unknown
|
||||||
image_factory = factories.get(factory, pil.PilImage)
|
image_factory = factories.get(factory, pil.PilImage)
|
||||||
|
|||||||
Reference in New Issue
Block a user