From eded3fdd47c47ee01676427c3eebf1f509020ebb Mon Sep 17 00:00:00 2001 From: AlexanderAcysos <100213934+alexanderacysos@users.noreply.github.com> Date: Tue, 22 Feb 2022 17:15:00 +0100 Subject: [PATCH] [MIG] report_qweb_parameter: Migration to 15.0 --- report_qweb_parameter/__manifest__.py | 2 +- report_qweb_parameter/models/ir_qweb.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/report_qweb_parameter/__manifest__.py b/report_qweb_parameter/__manifest__.py index 365b59514..0b57c29d8 100644 --- a/report_qweb_parameter/__manifest__.py +++ b/report_qweb_parameter/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Report QWeb Parameter", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "license": "AGPL-3", "summary": """ Add new parameters for qweb templates in order to reduce field length diff --git a/report_qweb_parameter/models/ir_qweb.py b/report_qweb_parameter/models/ir_qweb.py index 51e9dfc36..348ac97b2 100644 --- a/report_qweb_parameter/models/ir_qweb.py +++ b/report_qweb_parameter/models/ir_qweb.py @@ -16,7 +16,7 @@ class IrQWeb(models.AbstractModel): raise ValidationError(_("Length cannot be more than %s") % str(max_length)) return value - def _compile_directive_esc(self, el, options): + def _compile_directive_esc(self, el, options, indent): min_value = el.attrib.pop("t-minlength", False) max_value = el.attrib.pop("t-maxlength", False) if min_value or max_value: @@ -32,9 +32,9 @@ class IrQWeb(models.AbstractModel): if "t-length" in el.attrib: tlength = el.attrib.pop("t-length") el.attrib["t-esc"] = "(" + el.attrib["t-esc"] + ")[:" + tlength + "]" - return super()._compile_directive_esc(el, options) + return super()._compile_directive_esc(el, options, indent) - def _compile_directive_raw(self, el, options): + def _compile_directive_raw(self, el, options, indent): min_value = el.attrib.pop("t-minlength", False) max_value = el.attrib.pop("t-maxlength", False) if min_value or max_value: @@ -50,4 +50,4 @@ 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 + "]" - return super()._compile_directive_raw(el, options) + return super()._compile_directive_raw(el, options, indent)