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 #452

Closed
wants to merge 40 commits into from

Conversation

kv1612
Copy link

@kv1612 kv1612 commented Dec 22, 2021

yvaucher and others added 30 commits December 20, 2021 15:33
- 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.
@kv1612 kv1612 marked this pull request as ready for review December 22, 2021 03:58
@kv1612 kv1612 mentioned this pull request Dec 22, 2021
21 tasks
@kv1612 kv1612 force-pushed the 14.0-mig-delivery_carrier_label_batch branch from 5fe54ff to 29b7bdb Compare December 23, 2021 09:26
Copy link

@leemannd leemannd left a comment

Choose a reason for hiding this comment

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

Technical review

Copy link

@ivantodorovich ivantodorovich left a comment

Choose a reason for hiding this comment

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

Don't forget to remove 29b7bdb before merging

@khoivo1601
Copy link

This PR is replaced by the PR #468. 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 this PR directly. Sorry for the inconvenience)

@rousseldenis
Copy link
Sponsor Contributor

@khoivo1601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet