Coder Social home page Coder Social logo

Questions on package_ids about delivery-carrier HOT 4 CLOSED

oca avatar oca commented on September 18, 2024
Questions on package_ids

from delivery-carrier.

Comments (4)

guewen avatar guewen commented on September 18, 2024

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.

hparfr avatar hparfr commented on September 18, 2024

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.

guewen avatar guewen commented on September 18, 2024

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.

hparfr avatar hparfr commented on September 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.