Skip to content

Conversation

StephaneMangin
Copy link
Contributor

@StephaneMangin StephaneMangin commented Feb 10, 2025

Includes:

  • reusing of "delivery.carrier.template.option" from OCA module "delivery_carrier_option"
  • reusing of "shipping.label" from OCA module "delivery_carrier_shipping_label" instead of custom "postlogistics.shipping.label"
  • Add a default package type to fullfill postlogistics_send_shipping requirements (Using ECO default shipping pricing)

Depends on:

Due to some modules overrding the web service and as this implementation doesn't allow to properly chain modules (that could not be chained). An API refactoring has occur to allow to override from the picking instead of the webservice (some prepare methods)

@StephaneMangin
Copy link
Contributor Author

Superseeds #940

@yankinmax
Copy link
Contributor

hello @StephaneMangin
There is an issue in migration. You're overriding the selection of the type field declared for delivery.carrier.template.option model in delivery_carrier_option module.
Here is Odoo logs:

WARNING testdb odoo.fields: delivery.carrier.template.option.type: selection=[('label_layout', 'Label Layout'), ('output_format', 'Output Format'), ('resolution', 'Output Resolution'), ('basic', 'Basic Service'), ('additional', 'Additional Service'), ('delivery', 'Delivery Instructions'), ('partner_option', 'Partner Option')] overrides existing selection; use selection_add instead

@rousseldenis
Copy link
Contributor

/ocabot migration delivery_postlogistics

@StephaneMangin
Copy link
Contributor Author

hello @StephaneMangin There is an issue in migration. You're overriding the selection of the type field declared for delivery.carrier.template.option model in delivery_carrier_option module. Here is Odoo logs:

WARNING testdb odoo.fields: delivery.carrier.template.option.type: selection=[('label_layout', 'Label Layout'), ('output_format', 'Output Format'), ('resolution', 'Output Resolution'), ('basic', 'Basic Service'), ('additional', 'Additional Service'), ('delivery', 'Delivery Instructions'), ('partner_option', 'Partner Option')] overrides existing selection; use selection_add instead

Yes it is transitional, because these values are added in a dependency. Updating...

@StephaneMangin StephaneMangin force-pushed the 18.0-mig-delivery_postlogistics branch 4 times, most recently from 3fe8f87 to 78c780f Compare February 18, 2025 14:15
@StephaneMangin StephaneMangin force-pushed the 18.0-mig-delivery_postlogistics branch 2 times, most recently from 0f171db to 894894d Compare February 21, 2025 14:29
@StephaneMangin StephaneMangin force-pushed the 18.0-mig-delivery_postlogistics branch 3 times, most recently from e9dc13c to 0b24d58 Compare February 26, 2025 13:58
"external_dependencies": {
"python": [
"openupgradelib",
"vcrpy",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yankinmax vcrpy IS NOT a dep. It's needed only for tests.
Also, please try to respect the commit msg guidelines.
I'm fixing these issues now and merge. I'm also dropping the change on the index.html file.
TIP for devs: export SKIP=oca-gen-addon-readme to disable pre-commit readme update.

@leemannd commit msg issue applies to you as well 😉

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @simahawk, I've added vcrpy, because another PR build was failing without this dependency.
I'll check the commit message guideline. I thought I was respecting it.
Thanks for your help on this.

@simahawk
Copy link
Contributor

I'm also removing the fix for test dep because it came from the other PR for postlogistics. 10676c6

bizzappdev and others added 4 commits April 28, 2025 16:01
Avoid loss when several unchained modules implements new behaviors in
it.
Package type should be required attribute to be sent to the PostLogistics API.
@simahawk simahawk force-pushed the 18.0-mig-delivery_postlogistics branch from fb1f316 to 849b999 Compare April 28, 2025 14:01
@simahawk
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-974-by-simahawk-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Apr 28, 2025
Signed-off-by simahawk
@OCA-git-bot
Copy link
Contributor

@simahawk your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-974-by-simahawk-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@simahawk
Copy link
Contributor

simahawk commented May 6, 2025

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-974-by-simahawk-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request May 6, 2025
Signed-off-by simahawk
@OCA-git-bot
Copy link
Contributor

@simahawk your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-974-by-simahawk-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@simahawk
Copy link
Contributor

simahawk commented May 7, 2025

Sounds like there's an issue w/ a PO file. @leemannd or @bizzappdev (as you are working on #941 ) would you be able to check what's wrong?

@bizzappdev
Copy link
Contributor

@simahawk yes sure we will check soon

@simahawk
Copy link
Contributor

simahawk commented May 8, 2025

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-974-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 54db769 into OCA:18.0 May 8, 2025
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at ce999a8. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.