mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] report_qweb_parameter: out and raw doesn't work with conditionals
This commit is contained in:
@@ -49,7 +49,7 @@ class IrQWeb(models.AbstractModel):
|
||||
)
|
||||
if "t-length" in el.attrib:
|
||||
tlength = el.attrib.pop("t-length")
|
||||
el.attrib["t-out"] = el.attrib["t-out"] + "[:" + tlength + "]"
|
||||
el.attrib["t-out"] = "(" + el.attrib["t-out"] + ")[:" + tlength + "]"
|
||||
return super()._compile_directive_out(el, compile_context, level)
|
||||
|
||||
def _compile_directive_raw(self, el, compile_context, level):
|
||||
@@ -68,5 +68,5 @@ class IrQWeb(models.AbstractModel):
|
||||
)
|
||||
if "t-length" in el.attrib:
|
||||
tlength = el.attrib.pop("t-length")
|
||||
el.attrib["t-raw"] = el.attrib["t-raw"] + "[:" + tlength + "]"
|
||||
el.attrib["t-raw"] = "(" + el.attrib["t-raw"] + ")[:" + tlength + "]"
|
||||
return super()._compile_directive_raw(el, compile_context, level)
|
||||
|
||||
Reference in New Issue
Block a user