Skip to content
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

Open
wants to merge 16 commits into
base: 18.0
Choose a base branch
from

Conversation

ramiadavid
Copy link
Contributor

No description provided.

etobella and others added 16 commits October 10, 2024 08:37
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.
@ramiadavid ramiadavid mentioned this pull request Oct 10, 2024
13 tasks
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))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants