Skip to content
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

[14.0][MIG] delivery_carrier_label_batch - Migration to 14.0 #468

Merged
merged 39 commits into from
Mar 24, 2022

Conversation

khoivo1601
Copy link

@khoivo1601 khoivo1601 commented Mar 17, 2022

yvaucher and others added 30 commits March 4, 2022 17:57
- change name to batch to match with change of `picking_dispatch` name to
`stock_batch_picking`
- mode description in README.rst
- move files in models and views directories
- change headers to small license header
- use api 8.0
- fix and improve tests
the field has been renamed in the base module
Probably due to usage of multiple environment and cache. datas can't be
read from shipping.label but it can be read from ir.attachment
When there is more than 1 pack in a picking, 2 or more thread worker
might be in concurrence on the same picking, which makes one of the
transaction fails, resulting in the abort of the whole label generation.

The solution implemented is to change the way of passing the tasks to
the thread workers. Instead of passing a label at a time, we pass a
group of label. A group of label actually contains all the labels to
generate for one picking.
Co-Authored-By: Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
The support of picking without packages has been dropped following the RFC OCA#192

Since ffaab97 commit `base_delivery_carrier_label` force the usage of
packages.
@oca-clabot
Copy link

Hey @khoivo1601, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@khoivo1601
Copy link
Author

khoivo1601 commented Mar 17, 2022

This PR to replace the PR #452. One small update is change the action_generate_carrier_label method to the send_to_shipper method (I have a problem with 2FA. So, I can't login to update the PR #452 directly. Sorry for the inconvenience)

@rousseldenis
Copy link
Sponsor Contributor

/ocabot migration delivery_carrier_label_batch

@OCA-git-bot OCA-git-bot mentioned this pull request Mar 17, 2022
21 tasks
@sebalix
Copy link
Contributor

sebalix commented Mar 23, 2022

@khoivo1601 dependency has been merged, can you remove [TMP] commit?

@khoivo1601 khoivo1601 force-pushed the 14.0-mig-delivery_carrier_label_batch branch from f831c4e to 939b8aa Compare March 24, 2022 01:45
@khoivo1601
Copy link
Author

khoivo1601 commented Mar 24, 2022

Hi @sebalix, the commit [TMP] has been removed.

@sebalix
Copy link
Contributor

sebalix commented Mar 24, 2022

@khoivo1601 thanks!

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-468-by-sebalix-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 3f49f4f into OCA:14.0 Mar 24, 2022
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 92eb49d. 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.

None yet