-
-
Notifications
You must be signed in to change notification settings - Fork 807
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.
Hi @ramiadavid please add this commit: |
df665c2
to
fae20e5
Compare
done |
fae20e5
to
34729b9
Compare
34729b9
to
ff0fbe8
Compare
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.
minor adjustment
but LGTM
) | ||
if max_length and len(value) > max_length: | ||
raise ValidationError( | ||
self.env._("Length cannot be more than %s") % str(max_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.
self.env._("Length cannot be more than %s") % str(max_length) | |
self.env._("Length cannot be more than %s", max_length) |
"""No use staticmethod because self is needed to translate exception messages""" | ||
if min_length and len(value) < min_length: | ||
raise ValidationError( | ||
self.env._("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.
self.env._("Length cannot be less than %s") % str(min_length) | |
self.env._("Length cannot be less than %s", min_length) |
No description provided.