-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[16.0][MIG] base_multi_image #3010
Conversation
@thomaspaulb Here it is, thanks for the interest and quick turnaround is much appreciated |
@IJOL pre-commit is failing |
Yeahh seen it, not really very sure what this means, and how i can solve it, need some help to iron that.. |
I'm a little confused, so there are 2 competing PR sort of ? my approach was a little naive, saw the dead PR and no comments, so assumed the code was reviewed and approved was simply a matter of reposting the whole thing, but obviously there is much more to it than I initially saw.. |
@IJOL You added the files in |
93d5c64
to
de94425
Compare
I seen the code you pointed, i'm i think it is more mature, than what i posted initially i'm doing another force push integrating the whole thing in minutes, dont merge yet |
Yes I just looked at it as well, basically it's this commit that needs to be cherry-picked to the work here, conflicts resolved, and then pre-commit run again and the errors fixed. And then to do a new functional test. It's a bit of work, but of course the community would be grateful if you can do it. |
Thanks for the contribution. Please preserve commit history following technical method explained in https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0. If the jump is between several versions, you have to modify the source branch in the main command to accommodate it to this circumstance. |
82859e7
to
8339d29
Compare
I'm done i think, i need to do something alike to product-attribute/product_multi_image to test the whole thing |
This is not valid while it doesn't preserve the commit history |
Need some help to overcome this last hurdle, but after reading the docs you pointed previously I dont know which step i missed, well i missed most of them for sure, but i'm asking for a quick way if any to solve it.. |
You need to start from scratch (but saving the final work) and follow strictly the technical steps of the guide. |
@IJOL Yeah Pedro is right. First off, awesome that you did all this and are doing now a functional test together with To get this merged however, there's one more OCA hoop to jump through and that's preserving the commit history. In commands, that would look something like this:
For the commits to cherry-pick, you could look here: https://github.com/odof/server-tools/commits/16.0-base_multi_image
Or, what may be easier, is that you just checkout his branch, and then make your modifications again from there. |
Then again yes, you can also follow the steps in the guide again. That would also work, but then you have to commit odof's work on top. |
5c13946
to
cc3571f
Compare
testing the whole thing RN, will make some more commits here and in product_multi_image, i'll try to have the commit history clean so expect more force push in both sides |
Found hard showstopper in product_multi_image, and a worrisome one, its seems that the image_ids field that should be inherited from base_multi_image.owner, in https://github.com/BITVAX/product-attribute/blob/05b981993bf1c1ddb63be2ecd9f46c39cce4cb43/product_multi_image/models/product_template.py didnt exists in the post_init_hook already, any suggestion to keep the thing going? I know this should in the other repo, but they are actually connected so here if not directed otherwise |
First off we still have a minor problem in your migration commit because you've taken the changes from @clb-openfire but committed them under your own name, I guess a quick fix would be to About the showstopper - how do you mean that the |
I wil go for the amend is easiest, how i do it? simply add the handle for Cedric, in the commit message "Authored by @clb-openfire" or how ?
The hooks are called from product_multi_image, and in the hook context a post_init_hook it seems that the model is not already patched or something, because when the hook tries to add an image through the image_ids field and spit "field not found" that should exist as we are in the post init hook, but as it's a one2many field i will change the hook to add directly to the image table, and see if at the other side continues being a problem, |
Sounds strange, maybe also post the error here maybe it has another cause. |
cc3571f
to
373d4c6
Compare
Currently translated at 58.3% (28 of 48 strings) Translation: server-tools-15.0/server-tools-15.0-base_multi_image Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_multi_image/it/
Currently translated at 64.5% (31 of 48 strings) Translation: server-tools-15.0/server-tools-15.0-base_multi_image Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_multi_image/sl/
Currently translated at 58.3% (28 of 48 strings) Translation: server-tools-15.0/server-tools-15.0-base_multi_image Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_multi_image/it/
Currently translated at 58.3% (28 of 48 strings) Translation: server-tools-15.0/server-tools-15.0-base_multi_image Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_multi_image/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-tools-15.0/server-tools-15.0-base_multi_image Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_multi_image/
Currently translated at 100.0% (48 of 48 strings) Translation: server-tools-15.0/server-tools-15.0-base_multi_image Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_multi_image/es/
Currently translated at 100.0% (48 of 48 strings) Translation: server-tools-15.0/server-tools-15.0-base_multi_image Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_multi_image/es_AR/
Currently translated at 58.3% (28 of 48 strings) Translation: server-tools-15.0/server-tools-15.0-base_multi_image Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_multi_image/it/
Fecha: Fri Apr 11 13:31:40 2023 +0200 Autor: clb_openfire
…_for_submodules to not use image_ids
682fdae
to
b584186
Compare
Is there anything I could do to have this merged ASAP? |
It looks good to me. |
/ocabot migration base_multi_image |
Treating clb's approval as valid also, merging so that OCA/product-attribute#1707 can go green |
/ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
@IJOL Sorry for the delay, unfortunately these things take time. The only way to really speed things up is to try and do "review trading" with other programmers so that you review each other's code and both will benefit |
Congratulations, your PR was merged at f24cae8. Thanks a lot for contributing to OCA. ❤️ |
No description provided.