-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
[12.0][REF] extract delivery_carrier_info from base_delivery_carrier_label #283
Conversation
Hello, it's me again for bothering you 😝 This refactoring is good, but this breaks existing installation that don't include the new module in their addons definition. For avoiding this problem, you can:
What do you think about this proposal? |
Well, it's a question of keeping the stability the most we can. That's why
I talk about adding fields dynamically in views through `fields_view_get`.
I know it seems an annoyance, but with this, we avoid such issues.
I'm not specially affected (only one instance with this module installed
that I can handle manually), but others with odoo.sh or deployments with
limited addons will be affected as well.
Regards.
|
Hi @pedrobaeza as you know when anybody update a branch to a recent commit, you may need to make some adjustments on your installation. Then, each conscientious integrator'll check that before to put in production (sh has a staging branch too). |
Well, it's not the same changing data structure, than can be adjusted through migration scripts, than changing dependencies. For me that's the red line, but if others don't think so, go ahead. |
After playing a little, I do not think it a major issue as the split is in the same commit and same repo. Indeed if you deploy on odoo.sh them the whole repo will be updated (they clone the branch) Then if you run a update
The module delivery_carrier_info will be installed The only issue you can have is if you download the module on apps odoo and some copy paste, but in that case if you do it manually you should manually take care of the dependency What do you think? |
Thanks for the extensive investigation. On doodba we restrict the available addons through addons.yaml for not allowing to install undesired addons, but it's OK as we only have this module in one instance and we have CI for detecting it. If Odoo.sh is not a problem as well, go ahead. |
Thanks for your pragmatism @pedrobaeza |
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at a665f91. Thanks a lot for contributing to OCA. ❤️ |
Just a little update: Pedro's warning was justified as this PR did break Pip installs. |
In e-commerce case you need some extract info on carrier (code, description) installing the module base_delivery_carrier_label is too much for having this two field, so I have split the module to reduce the dependency
@florian-dacosta @bealdav @guewen
Merge with nobump I have updated the version manually