-
-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[18.0][MIG] report_qweb_parameter: Migration to 18.0 #939
base: 18.0
Are you sure you want to change the base?
Conversation
If reusing existing records, there's the risk of conflicting tests, like modifying the VAT for the existing company and that company having a country with VAT check. We avoid it creating a new company instead.
…@T-raw WARNING devel odoo.addons.base.models.ir_qweb: Found deprecated directive @T-raw='docs.env["ir.qweb"].check_length(docs[0].vat, 10, False)[:10]' in template 237. Replace by @t-out, and explicitely wrap content in `Markup` if necessary (which likely is not the case) WARNING devel odoo.addons.base.models.ir_qweb: Found deprecated directive @T-raw='docs.env["ir.qweb"].check_length(docs[0].company_registry, False, 10)' in template 237. Replace by @t-out, and explicitely wrap content in `Markup` if necessary (which likely is not the case)
Execute pre-commit to remove the existing warning. WARNING prod py.warnings: /opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_module.py:178: DeprecationWarning: XML declarations in HTML module descriptions are deprecated since Odoo 17, report_qweb_parameter can just have a UTF8 description with not need for a declaration.
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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise ValidationError(_("Length cannot be less than %s") % str(min_length)) | |
raise ValidationError(self.env._("Length cannot be less than %s") % str(min_length)) |
could you apply this odoo/odoo@b794f0f
name="esc_length" | ||
t-minlength="10" | ||
t-length="10" | ||
t-esc="docs[0].street" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t-esc="docs[0].street" | |
t-out="docs[0].street" |
t-esc
and t-raw
are deprecated output directives: https://www.odoo.com/documentation/18.0/developer/reference/frontend/qweb.html
No description provided.