-
Notifications
You must be signed in to change notification settings - Fork 54
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] util/misc: dynamic literal_replace #231
Open
aj-fuentes
wants to merge
2
commits into
odoo:master
Choose a base branch
from
odoo-dev:master-imp_literal_replace2-afu
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upgradeci retry with always only hr |
KangOl
reviewed
Mar 11, 2025
KangOl
reviewed
Mar 11, 2025
6cdae5f
to
889bd3e
Compare
upgradeci retry |
All green \o/ |
I will squash the commits |
889bd3e
to
2ddbdd8
Compare
Still all green :D |
2ddbdd8
to
4cba112
Compare
Allow to match in a glob-like fashion and produce the replacement node dynamically. Improvements: * Do not replace if no update happens (allows to write less to the DB.) * Do not buble syntax errors, log instead. * Most valid nodes for Python expressions in the ORM are covered. * Implement node matching in same order as the reference below. * Much higher test coverage. * Adapt tests for Python3.6 (Odoo 13 and 14) See: https://greentreesnakes.readthedocs.io/en/latest/nodes.html
4cba112
to
db4217a
Compare
Before it was impossible to handle domains defined as `context.get('key') and [<dom1>] or [<dom2>]` Example: ``` context.get('default_move_type') in ('out_invoice', 'out_refund', 'out_receipt') and [('sale_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)] or [('purchase_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)] ```
db4217a
to
5ca2131
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allow to match in a glob-like fashion and produce the replacement node
dynamically.
Improvements: