Skip to content

Commit

Permalink
[MIG] report_qweb_parameter: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiadavid committed Oct 10, 2024
1 parent b9b22b3 commit df665c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion report_qweb_parameter/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Report QWeb Parameter",
"version": "17.0.1.0.1",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"summary": """
Add new parameters for qweb templates in order to reduce field length
Expand Down
4 changes: 2 additions & 2 deletions report_qweb_parameter/models/ir_qweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
class IrQWeb(models.AbstractModel):
_inherit = "ir.qweb"

@staticmethod
def check_length(value, min_length=False, max_length=False):
def check_length(self, value, min_length=False, max_length=False): # noqa
"""No use staticmethod because self is needed to translate exception messages"""
if min_length and len(value) < min_length:
raise ValidationError(_("Length cannot be less than %s") % str(min_length))
if max_length and len(value) > max_length:
Expand Down

0 comments on commit df665c2

Please sign in to comment.