Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Sale Order packaging without specify products
by
Francesco Ballerini
Update:
Forgive me I have mistaken "packaging" and "package" business logic.
I think that if I want to provide this feature and keep a decent level of scalability/extensibility I need to:
1 - make possible for backend user to generate n° stock.quant.package objects from a sale order (simply adding a one2many relation with stock.quant.package, in Sale Order)
2 - use stock_quant_package_dimension to allow setting dimensions and automatic volume calculation from the Sale Order as well
3 - when the outgoing picking is generated by confirming order (as I previously said we have a really simplified picking process but this part will still probably be a bit tricky in case of picking and/or order cancel)
3a) all sale order packages will be automatically attached to the outgoing picking by setting them on "picking.package_ids"
3b) all the products will automatically be put in a single pack, the other packs will be "fake packs" in the sense that they will not store any products but still has dimensions
This will not provide huge advantages by itself, but definitely better than having separate model to manage "shipping packs" delivery rate and tracking. Tracking will not be really accurate as it doesn't target products, but the rate we need to get is always based on taxable weight, so it should be a decent solution. I'm still not sure if it's worth to manage "package_id" on stock.quant.package, if I am not wrong that's needed in order to print shipping label.
If you have any kind of suggestions that comes from experience in developing similar workflows (TLDR generating packages from sale order without having to specify the pack content) it will be helpful for sure.
Thanks,
Francesco Ballerini
Il giorno dom 10 dic 2023 alle ore 23:27 Francesco Ballerini <francescobl.lavoro@gmail.com> ha scritto:
Hello,TLTRI am searching (for Odoo v14) a module which add a one2many on sale order, linking SO with multiple product packaging objects.More detailsLong time ago I've been asked to make implementations for a workflow when we need to define product packaging objects in a Sale Order so that we can store packaging dimensions, compute the proper rate and send some info to the carrier.We don't want to define any package on sale order line, or link specific products to a packaging: we just need to define an X number of packaging objects related to the sale order.Also, we want to do it from sale order because we adjust product lines accordingly to the "on hand quantity" directly on sale order, before picking generation, plus we don't manage backorder in the classic Odoo way, so picking is basically only "validate" for us.I already have developed the workflow, but it's not properly integrated with some Odoo modules/models so I want to make some refactors and possibly integrate it with some OCA modules like product_packaging_dimension to use already implemented features when possible.But I did not find anything covering this, possibly did I miss it?ThanksFrancesco Ballerini
Reference
-
Sale Order packaging without specify products
byFrancesco Ballerini-
Re: Sale Order packaging without specify products
byClosingAp Open Source Integrators Europe, LDA, Daniel Reis