Comments (4)
Hi,
The use case is: you want to generate labels for only some of the packages of a picking, and generate labels for the remaining packages later.
The API has changed a bit since, but in 7.0 it was used here: https://github.com/OCA/carrier-delivery/blob/467c5cc2d60c43b1ef3037ae6b83d375b99d3b72/delivery_carrier_label_dispatch/wizard/generate_labels.py#L108-L111 (it generates the labels of the packages which are in the picking dispatch only).
from delivery-carrier.
Thanks for this answer.
In the code you refere, you have always 1 picking and 0 or 1 pack.
But it can lead to issues if there is call with 2 pickings and 1 pack.
from delivery-carrier.
I see your point, is it something that might happen? having a package cross-pickings? If yes, then yes it should be handled better...
from delivery-carrier.
In terms of code quality, it's always better if the API is obvious or well documented for starters like me.
About the business cases :
- a package cross-picking -> we have this need for some of our clients. They have customer who buys on a regulary basis, and they want put in the same package goods from differents sale orders.
- multiple package for one picking -> never encoutered yet, but I was thinking of this use case when you want different levels of services (insurance, urgent, fragile, voluminous) for the same order.
Like part of the sale order by aircraft for the small items and the rest by cargo.
from delivery-carrier.
Related Issues (20)
- [12.0] Field duplicated: number_of_packages HOT 2
- delivery-carrier: sudo() missing on retrieving postlogistics_client_id and postlogistics_client_secret HOT 1
- 13.0 delivery_postlogistics - generate postlogistic label failed with rollback HOT 1
- [14.0] [RunBot] Can't make Colissimo (delivery_roulier_laposte_fr) work HOT 11
- Migration to version 15.0 HOT 7
- partner_delivery_zone: Zone auto attribution to partner depending on zip/city HOT 2
- [14.0] Can't get producto price to add Correos delivery method in sale order () HOT 1
- [13.0]base_delivery_carrier_label unit tests failed cause travis to fail on dependencies HOT 3
- [14.0]delivery_free_fee_removal doesnt work if sale order is locked HOT 2
- Schenker TLS V1.2 HOT 2
- Migrating delivery_carrier_multi_zip to 14.0 HOT 2
- Migration to version 16.0 HOT 8
- Split base_delivery_carrier_label HOT 4
- Transfer validation error with TNT module 14.0 HOT 1
- [14.0] fix delivery_cttexpress tests HOT 9
- TNT Italy HOT 8
- delivery_package_number bug module when creating a backorder HOT 12
- Migration to version 17.0 HOT 7
- CTT Express module HOT 3
- [16.0] server_environment_delivery: Tests as rebel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delivery-carrier.