-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
[FIX] delete_record_translations: adapt to Odoo v16 #328
Conversation
2c8c0e7
to
ecc4724
Compare
cec7deb
to
d3e1e97
Compare
d3e1e97
to
b02158e
Compare
Nice @MiquelRForgeFlow |
As commented in OU, I'm seeing that this method is removing all translations for all fields, but there's a lot of times where this is not needed, so we should add a granularity for passing (as keyword argument), a field list for resetting translations. |
d6d251c
to
3014ca4
Compare
@pedrobaeza |
Last question: what happens in a DB with |
3014ca4
to
9a32aab
Compare
Yes. I just tested it. |
I know it's a bit picky, but |
I'm also wondering if we have done it correctly all this time, doing the |
But the update of the noupdate changed fields is done in post, so if you delete the translations in pre, during the load they will be wrongly set, as they don't have the noupdate changes yet. I mean, to do it in pre, you would also need to apply the noudate changes in pre, which is wrong. |
I don't think so, as the search is not done by the source term, but the comment. And now on v16 the rules change. It's not very important, as we all perform a second update after the migration itself for the cleanup, but it we let the system the best on the first round, it would be great. |
9a32aab
to
0d6ff82
Compare
I delete now all translations using NULL. Let's check in a simple migration if this works or if it messes up. |
Well, it's replacing the |
0d6ff82
to
aad3ed9
Compare
@pedrobaeza I fully tested it. It's ready and safe. |
aad3ed9
to
a0b002d
Compare
a0b002d
to
2f1be13
Compare
I see that you are still doing a select to fetch the column values, and that's exactly what I want to avoid on my concern: only do the |
2f1be13
to
e3f4105
Compare
Done! |
fdd88a4
to
641702d
Compare
641702d
to
0d7b36b
Compare
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.
OK, this seems good enough for now. Thanks for the efforts.
Hi @ALL thanks for this work. an existing script (in auth_signup) is now failing. Could you take a look ? Thanks !
|
@legalsylvain sorry, that breaking line was a last untested change. It is being fixed in #335. |
Needed.