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

[IMP] BS4->BS5: performance #370

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

chienandalu
Copy link
Member

Avoid record values which html is empty using the same rules that odoo.tools.is_html_empty uses. This way we can simplify the call avoiding a default domain as well. In any case, we can use that domain to refine certain models.

cc @Tecnativa TT46020

please check @pedrobaeza

Avoid record values which html is empty using the same rules that
odoo.tools.is_html_empty uses. This way we can simplify the call
avoiding a default domain as well. In any case, we can use that domain
to refine certain models.

TT46020
Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

nice improvment.

@pedrobaeza pedrobaeza merged commit 97bd387 into OCA:master Jun 10, 2024
2 checks passed
@pedrobaeza pedrobaeza deleted the imp-convert_field_bootstrap_4to5 branch June 10, 2024 18:14
@hhgabelgaard
Copy link

@chienandalu @pedrobaeza What's the Python version compability requirements for OpenUpgradelib?
2.7 according to setup.py https://github.com/OCA/openupgradelib/blob/master/setup.py#L53

So please avoid f-strings - Some of us are using OpenUpgrade on older Odoo/Python versions

@pedrobaeza
Copy link
Member

We are using them too in old versions, but look that this is something exclusively for version 16.0. Where are the problem?

@StefanRijnhart
Copy link
Member

StefanRijnhart commented Jun 11, 2024

@pedrobaeza this is the problem

>>> from openupgradelib import openupgrade_tools
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "openupgradelib/openupgrade_tools.py", line 415
    )"""
       ^
SyntaxError: invalid syntax

@StefanRijnhart
Copy link
Member

Maybe we should bump the version with a major and drop compatibility with Python 2.x.

@pedrobaeza
Copy link
Member

OK, I think we can remove the f-string, as it's not strictly needed. @chienandalu can you?

@chienandalu
Copy link
Member Author

No problem

@chienandalu
Copy link
Member Author

Addressing fixes here: #371

@hhgabelgaard
Copy link

@chienandalu Thanks!

This community rocks!

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

Successfully merging this pull request may close these issues.

6 participants