Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Manufacturing advice needed - materials of measured units being consumed partially
by
        
            MoaHub, Graeme Gellatly
        
        
        
    
        
        Hi,
Yes. It is a well known problem. The 2D PaperCutting Problem, a lot less complex than the 3D one, aka Travelling Salesperson.
As for where it goes. I don't know. As I say, I solved differently. Using Unbuild style you start from the raw material so it was never an issue. But to start you can just use a rule of thumb.
On Thu, Jan 27, 2022 at 9:37 PM Radovan Skolnik <radovan@skolnik.info> wrote:
Graeme,
this is what I was looking for and sort of confirms my suspicion that without 
special handling Odoo would sum contents of all lots of same kind into one 
(which perfectly makes sense when dealing with units, weights, volumes and 
such that can be added/joined).
Question though if I may: where should that pseudo-code fit in? Is that 
supposed to be extension somewhere in MRP BoM process where appropriate 
materials are being looked for when manufacturing the final product? Dumb 
question maybe but haven't had much experience with MRP yet.
Your algorithm actually reminds me very much of a thing I was doing just not a 
year ago as a favour to a friend who builds pergolas using alluminium joists 
of certain fixed size. From the design you receive required cutting sizes and 
you need to optimize how to cut the source material with the least waste.
But that was written in Excel and Visual Basic :-) However it is basically the 
same as what you have outlined.
Best regards
	Radovan
P.S.: BTW, have you had a chance to have a look at my comment regarding 
variant_seller_ids for product.[template|product]? Is till consider that thing 
broken and not following the desired design...
On štvrtok 27. januára 2022 9:17:06 CET Graeme Gellatly wrote:
Reference
- 
                Manufacturing advice needed - materials of measured units being consumed partiallybyData Dance s.r.o., Radovan Skolnik- 26/01/2022 21:30:46 - 0- 
                Re: Manufacturing advice needed - materials of measured units being consumed partiallybyMoaHub, Graeme Gellatly- 27/01/2022 10:04:31 - 0
- 
                Re: Manufacturing advice needed - materials of measured units being consumed partiallybyData Dance s.r.o., Radovan Skolnik- 27/01/2022 09:35:38 - 0
- 
                Re: Manufacturing advice needed - materials of measured units being consumed partiallybyMoaHub, Graeme Gellatly- 27/01/2022 09:15:41 - 0
- 
                Re: Manufacturing advice needed - materials of measured units being consumed partiallybyData Dance s.r.o., Radovan Skolnik- 27/01/2022 07:06:18 - 0
- 
                Re: Manufacturing advice needed - materials of measured units being consumed partiallybyponkhi403- 27/01/2022 04:53:37 - 0
- 
                Re: Manufacturing advice needed - materials of measured units being consumed partiallybyLuNel, Inc, James Dominy- 27/01/2022 00:15:18 - 0
- 
                Re: Manufacturing advice needed - materials of measured units being consumed partiallybyLandis Arnold- 26/01/2022 23:54:02 - 0
- 
                Re: Manufacturing advice needed - materials of measured units being consumed partiallybyData Dance s.r.o., Radovan Skolnik- 26/01/2022 22:55:32 - 0
- 
                Re: Manufacturing advice needed - materials of measured units being consumed partiallybyClosingAp Open Source Integrators Europe, LDA., Daniel Reis- 26/01/2022 21:43:08 - 0
 
-