-
-
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
[IMP] rename_models: rename the models in the reference fields #175
[IMP] rename_models: rename the models in the reference fields #175
Conversation
e3b124e
to
6355f67
Compare
Why an extra method instead of being part of existing |
Please put the other fix in a separate PR |
Because the need of the Maybe we can expand def rename_models(cr, model_spec, env=False): what do you think? |
But I think we can avoid the use of the env. Let's search directly on |
But how I obtain the |
Yeah, good point... Now you know why I always want to pass |
6355f67
to
5fccd32
Compare
I think this method should remain separated and not merged into the |
5fccd32
to
60b4f15
Compare
I have updated the PR. Now the |
60b4f15
to
5d91ffe
Compare
5d91ffe
to
88fd38a
Compare
Now it's handled this way. Very simple. |
This new method renames the models in the reference fields.
Also fixes _change_reference_refs_sql method.