-
-
Notifications
You must be signed in to change notification settings - Fork 386
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] account_reconcile_model_oca: Migration to 18.0 #738
base: 18.0
Are you sure you want to change the base?
[18.0][MIG] account_reconcile_model_oca: Migration to 18.0 #738
Conversation
Currently translated at 100.0% (2 of 2 strings) Translation: account-reconcile-17.0/account-reconcile-17.0-account_reconcile_model_oca Translate-URL: https://translation.odoo-community.org/projects/account-reconcile-17-0/account-reconcile-17-0-account_reconcile_model_oca/it/
Due to latest copier template with all the checks.
Currently translated at 100.0% (2 of 2 strings) Translation: account-reconcile-17.0/account-reconcile-17.0-account_reconcile_model_oca Translate-URL: https://translation.odoo-community.org/projects/account-reconcile-17-0/account-reconcile-17-0-account_reconcile_model_oca/zh_CN/
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.
I'm not sure this is the right moment for cosmetic improvements.
LG though
SQL( | ||
rf""" | ||
{unaccent("%s")} ~* ('^' || ( | ||
SELECT STRING_AGG(CONCAT('(?=.*\m', chunk[1], '\M)'), '') | ||
FROM regexp_matches({unaccent('partner.name')}, '\w{{3,}}', 'g') | ||
AS chunk | ||
)) | ||
""", | ||
text_value, | ||
) |
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.
Why not adding the wrapping parenthesis here, in order to avoid the ugly extra parenthesis in the query parts every where else:
query = "[...] ("
final = ") [...]"
parts = ") OR (".join(subqueries)
which IMO is more complicated to read/understand.
Are we not missing some commits from 17.0 https://github.com/OCA/account-reconcile/commits/17.0/account_reconcile_oca ? |
hi @TDu, Maybe you a little confused about between |
account_reconcile_model_oca/models/account_bank_statement_line.py
Outdated
Show resolved
Hide resolved
c4d1fad
to
ab10b31
Compare
ab10b31
to
0d217b9
Compare
change in v18
get_sql
has removed in odoo/odoo@5c397d5account_journal_payment_credit_account_id
has removed in odoo/odoo@01b87f1depend on