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 17 commits into
base: 18.0
Choose a base branch
from

Conversation

ramiadavid
Copy link
Contributor

No description provided.

etobella and others added 14 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
14 tasks
@ValentinVinagre
Copy link
Contributor

Hi @ramiadavid please add this commit:
375c9f8

@ramiadavid ramiadavid force-pushed the 18.0-mig-report_qweb_parameter branch from df665c2 to fae20e5 Compare January 23, 2025 20:02
@ramiadavid
Copy link
Contributor Author

Hi @ramiadavid please add this commit: 375c9f8

done

@ramiadavid ramiadavid force-pushed the 18.0-mig-report_qweb_parameter branch from fae20e5 to 34729b9 Compare January 23, 2025 20:03
@ramiadavid ramiadavid force-pushed the 18.0-mig-report_qweb_parameter branch from 34729b9 to ff0fbe8 Compare January 23, 2025 20:08
xaviedoanhduy

This comment was marked as outdated.

Copy link

@xaviedoanhduy xaviedoanhduy left a 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)

Choose a reason for hiding this comment

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

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

Choose a reason for hiding this comment

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

Suggested change
self.env._("Length cannot be less than %s") % str(min_length)
self.env._("Length cannot be less than %s", min_length)

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.

10 participants