Search 1.9 billion lines of Odoo code on GitHub

mrp_workorder_lot

Author: Vauxoo
License: no license
Branch: revert-296-8.0-vx#3619-kty
Repository: AizenL/addons-vauxoo
Dependencies: mrp, mrp_consume_produce, mrp_operations, and mrp_product_capacity
Languages: HTML (608, 23.2%), PO File (326, 12.4%), Python (955, 36.5%), XML (556, 21.2%), and reStructuredText (175, 6.7%)
Other branches: 7.0, and revert-512-revert-296-8.0-vx#3619-kty
Other repositories: 111sree/addons-vauxoo, 3dfxmadscientist/addons-vauxoo, AbdelghaniDr/addons-vauxoo, Abdullah-Alghoul/addons-vauxoo, Aivenho/addons-vauxoo, BusinessTec/addons-vauxoo, ClearCorp/vauxoo-addons-vauxoo, CrazyIFriT/addons-vauxoo, DITIntl/addons-vauxoo, Danisan/addons-vauxoo, DudhatShivam/addons-vauxoo, ERPLibre/addons-vauxoo, ElvenStudio/addons-vauxoo, FAY8PTELTD/addons-vauxoo, FelixAdler/addons-vauxoo, FernandoCarlosGarcia/addons-vauxoo, ForgeFlow/addons-vauxoo, FullBringEc/addons-vauxoo, GabbasovDinar/addons-vauxoo, GrupoAlvamex/addons-vauxoo, Guobower/addons-vauxoo, HarshalBhoir/addons-vauxoo, Ingeos/addons-vauxoo, InstaERP/addons-vauxoo, Iozoft/addons-vauxoo, Jarsa-dev/addons-vauxoo, JibenCL/addons-vauxoo, JorgeJuarezM/addons-vauxoo, JulioSerna/addons-vauxoo, KennyLeung/addons-vauxoo, Khwarizmiat/addons-vauxoo, Maanumx/addons-vauxoo, MadsackMediaStore/addons-vauxoo, Mahmoud-Alaa-Eldeen/addons-vauxoo, MandaTokiniaina/addons-vauxoo, Mwatchorn26/addons-vauxoo, NaSol/addons-vauxoo, NothingCtrl/addons-vauxoo, OdooBulgaria/addons-vauxoo, OutillageStEtienne/addons-vauxoo, QSoftCorporationEC/addons-vauxoo, RL-OtherApps/addons-vauxoo, Rona111/addons-vauxoo, SetRac/addons-vauxoo, StefanRijnhart/addons-vauxoo, Tecnativa/addons-vauxoo, TheCloneMaster/addons-vauxoo, Upsyd/addons-vauxoo, Vauxoo/addons-vauxoo, VbossEkat/addons-vauxoo, VitalPet/addons-vauxoo-1, VizThoughts/addons-vauxoo, YevhenPechurin/addons-vauxoo, aaltinisik/addons-vauxoo, abdelmaaboud/addons-vauxoo, adeel982010/addons-vauxoo, alanljj/addons-vauxoo, alexsandrohaag/addons-vauxoo, alonejustinone/addons-vauxoo, amendoncabh/addons-vauxoo, amrnegm/addons-vauxoo, andreaarce/addons-vauxoo, anodino-dev/addons-vauxoo, arasty/addons-vauxoo, archetipo/addons-vauxoo, atonaltzin/addons-vauxoo, aurestic/addons-vauxoo, awaistune/addons-vauxoo, bachmanna/addons-vauxoo, bgavarini/addons-vauxoo, bimajatiwijaya/addons-vauxoo, bjoliveau/addons-vauxoo, bluelinemx/addons-vauxoo, bmspy/addons-vauxoo, bmya/addons-vauxoo, boolit-team/addons-vauxoo, bopo/addons-vauxoo, brain-tec/addons-vauxoo, caber/addons-vauxoo, cameroun/addons-vauxoo, cbaltodano90/addons-vauxoo, cedvict/addons-vauxoo, cesarcruz/addons-vauxoo, chenjingxiong/addons-vauxoo, cholitoecuatoriano/addons-vauxoo, cialuo/addons-vauxoo, cjcruz/addons-vauxoo, ckardaras/addons-vauxoo, codequarters/addons-vauxoo, cogitool/addons-vauxoo, conectel-dev/addons-vauxoo, contactek/addons-vauxoo, corsisa/addons-vauxoo, cvinh/addons-vauxoo, daramousk/addons-vauxoo, ddico/addons-vauxoo, dhecar/addons-vauxoo, diagramsoftware/addons-vauxoo, digitalliuzg/addons-vauxoo, dio09/addons-vauxoo, dipendra-karki/addons-vauxoo, dochse/addons-vauxoo, doganaltunbay/addons-vauxoo, echeverrifm/addons-vauxoo, eddybc/addons-vauxoo, eksotama/addons-vauxoo, elmonitor/addons-vauxoo, ernesto-medina/addons-vauxoo, fanzalika/addons-vauxoo, fauzi-tsani/addons-vauxoo, fmarowski/addons-vauxoo, frahikLV/addons-vauxoo, friedi1/addons-vauxoo, funkring/addons-vauxoo, gameboy199/addons-vauxoo, gastonfeng/addons-vauxoo, gbertolani/addons-vauxoo, gearsforwork/addons-vauxoo, gfcapalbo/addons-vauxoo, giacomomagini/addons-vauxoo, gilbert-yuan/addons-vauxoo, gitmehedi/addons-vauxoo, gmlp/addons-vauxoo, gmoncada/addons-vauxoo, gobozgz/addons-vauxoo, grottas/addons-vauxoo, gsunjka/addons-vauxoo, guillermm/addons-vauxoo, gustavovalverde/addons-vauxoo, haryoran04/addons-vauxoo, hashirharis/addons-vauxoo, hbto/addons-vauxoo, hifly/addons-vauxoo, hotkee/addons-vauxoo, huzzy143/addons-vauxoo, iceship/addons-vauxoo, intellego-bi/addons-vauxoo, isos/addons-vauxoo, ivanporras/addons-vauxoo, izzihector/addons-vauxoo, jage22/addons-vauxoo, jairuque/addons-vauxoo, jason156/addons-vauxoo, jboyleca/addons-vauxoo, jesramirez/addons-vauxoo, jfpla/addons-vauxoo, jjsamayoa/addons-vauxoo, jlaloux/addons-vauxoo, johannbelet/addons-vauxoo, jonathanf/addons-vauxoo, jorsea/addons-vauxoo, josemoralesp/addons-vauxoo, jsabastizagal/addons-vauxoo, jusdng/addons-vauxoo, kingsleyuk2003/addons-vauxoo, kmee/addons-vauxoo, kmlew/addons-vauxoo, kossovo/addons-vauxoo, leodoooca/addons-vauxoo, levkar/addons-vauxoo, lfreeke/addons-vauxoo, likaiyuan/addons-vauxoo, lithint/addons-vauxoo, loctv/addons-vauxoo, lucagem/addons-vauxoo, luisfqba/addons-vauxoo, luistorresm/addons-vauxoo, maljac/addons-vauxoo, map0logo/addons-vauxoo, marcelomora/addons-vauxoo, marcelsavegnago/addons-vauxoo, marionumza/Vauxoo-addons-vauxoo, mbenyoub/addons-vauxoo, mbenyoub/server, mcmx/addons-vauxoo, mhdsyarif/addons-vauxoo, mightyfloare/addons-vauxoo, miguelparaiso/addons-vauxoo, mohamedhagag/addons-vauxoo, mohzein/addons-vauxoo, molandtoxx/addons-vauxoo, moulayrachidhachimi/addons-vauxoo, muguli22/addons-vauxoo, muk-projects/addons-vauxoo, n30chido/addons-vauxoo, nabiforks/addons-vauxoo, nhomar/addons-vauxoo, nick2474/addons-vauxoo, nikols/addons-vauxoo, nteej/addons-vauxoo, odic30/addons-vauxoo, odoobgorg/addons-vauxoo, odoocn/addons-vauxoo, odoofans/addons-vauxoo, odoousers2014/addons-vauxoo, one2pret/addons-vauxoo, onurugur/addons-vauxoo, opensert/addons-vauxoo, oreju/addons-vauxoo, oscarolar/addons-vauxoo, osiell/addons-vauxoo, oxidos/addons-vauxoo, pedroporras/addons-vauxoo, petypi/addons-vauxoo, qsoftcorporation/addons-vauxoo, rafnixg/addons-vauxoo, raycarnes/addons-vauxoo, rdmachadog/addons-vauxoo, rokealva83/addons-vauxoo, rossasa/vauxoo-addons, rralaiarimanga/addons-vauxoo, rschnapka/addons-vauxoo, rsosa423/addons-vauxoo, sadeqamin/addons-vauxoo, salahable/addons-vauxoo, saltonmassally/addons-vauxoo, samirthebti/addons-vauxoo, sangtt/addons-vauxoo, savoirfairelinux/addons-vauxoo, sc4you/addons-vauxoo, sdwhwfw/addons-vauxoo, shouyejing/addons-vauxoo, simmatica/addons-vauxoo, skmezanul/addons-vauxoo, sm2x/addons-vauxoo, sohaibrafiq/addons-vauxoo, stanisljevic/addons-vauxoo, stark182/addons-vauxoo, stundzia/addons-vauxoo, suhongrui/addons-vauxoo, sunny-odoo/addons-vauxoo, syci/addons-vauxoo, thopy/addons-vauxoo, tonihr/addons-vauxoo, topecz/addons-vauxoo, trinismooth/addons-vauxoo, trungvoi/addons-vauxoo, ubic135/addons-vauxoo, umair-gujjar/addons-vauxoo, valenciaricardos/addons-vauxoo, vexxloso/addons-vauxoo, vikramboyapati/addons-vauxoo, wahhid/addons-vauxoo, waltervargas/addons-vauxoo, wanfgh/addons-vauxoo, westlyou/addons-vauxoo, woakes070048/addons-vauxoo, x8bit/addons-vauxoo, xcorail/addons-vauxoo, xirobs/addons-vauxoo, xpansa/addons-vauxoo, xubiuit/addons-vauxoo, yasmanycastillo/addons-vauxoo, yelizariev/addons-vauxoo, ysantiago/addons-vauxoo, zhaohuaw/addons-vauxoo, and zlf4535/addons-vauxoo

<a name="mrp-workorder-lot"></a> <h2>MRP Workorder Lot</h2> <p>The <code>mrp_workorder_lot</code> module holds new work order lot concepts to split work orders taking into acccount the workcenters product capacity for those workcenters related to the manufacturing order routing operations.</p> <p>This module adds two features to the mrp module.</p> <a name="work-order-lot"></a> <h3>Work Order Lot</h3> <p><strong>First</strong>, create a new model named <code>Work Orders Lots</code> (WOL) that represents a block of Work Orders to be accomplished. The usual behavior in OpenERP when a Manufacturing Order is confirmed is generating automatically the Work Orders, one for every operation provided by the Routing set in the Manufacturing Order form. This module changes this behavior by creating not Work Orders per se but creating Work Order Lots. Every Work Order Lot holds a set of Work Orders needed to achieve every routing operation.</p> <p>The regular process to create the Work Orders has been modified too, instead of creating one Work Order by every routing operation, it also takes into account the product capacity in every relevant workcenters (workcenters related to the current routing operations) and the product quantities predisposed in every routing operation. This way a work order for a routing operation will be split in N pieces to fulfill the workcenter capacity condition like creating a batch procedure. For example:</p> <pre> <code>Manufacturing Order: Product: French Fries Qty to produce: 70 Units Raw Material: 1 kg Potatoes to produce 1 unit of French Fries In total 70 kgs of potatoes to process. Routing Operations for French Fries: 1. Clean potatoes at Dishwasher workcenter 2. Peel potatoes at Table workcenter 3. Nibble potatoes at Grinder Machine workcenter 4. Fry potatoes at Stove workcenter Workcenter Capacities: Dishwasher: 40 kgs of Potatoes Grinder Machine: 20 kgs of Potatoes Stove: 30 kgs of Potatoes Table: 300 kgs of Potatoes For this case the bootle neck for workcenter capacity is in the Grinder Machine workcenter for a maximum of 20 kgs of Potatoes. Knowing that we need to process 70 kg of potatoes then it is necessary to create four work order lots: three of 20 kg and one for 10 kg of potatoes.</code> </pre> <p>This new way to automatically create work order lots will also create as many work orders as needed to respect the workcenter capacity. However this capacity can be measured in two different criteria:</p> <ul> <li><p class="first"><strong>Avoid Production Bottleneck:</strong> Will create the batch work orders taking into account the minimum capacity of all workcenter maximun capacities (Like the example above).</p> </li> <li><p class="first"><strong>Maximize Workcenter Productivity / Minimizing Production Cost:</strong> For every workcenter will create a batch of works orders that always explotes the product capacity of the workcenter:</p> <pre> <code>In this case will create: - Two work order Lots for operation 1 (one Lot of 40 kg and one of 30 kg) - Four work order Lots for operation 2 (three Lots of 20 kg and one of 10 kg) - Tree work order Lots for operation 3 (two Lots of 30 kg and one of 10 Kg) - A work order lot of 70 Kg for operation 4 (300 Kg &gt; 70 Kg)</code> </pre> </li> </ul> <p>.</p> <blockquote> <strong>Note</strong>: The second criterion <strong>Maximize Workcenter Productivity / Minimizing Production Cost</strong> basis is not yet fully implemented but is a work in process.</blockquote> <p>This criterion needs to be set by the user. The default is <em>Avoid Production Bottleneck</em> option. To change this criterion set the <code>Production Batch Process Type</code> field either go to <code>Settings Menu &gt; Companies Sidebar Section &gt; Companies Menu &gt; (Select a Company from the list) &gt; In Configuration Tab &gt; At Logistics Section</code> or go to <code>Settings Menu &gt; Configuration Sidebar Section &gt; Manufacturing Menu &gt; Manufacturing Order Section &gt; Planning Section</code>.</p> <p>A Work Order Lot (<strong>WOL</strong>) is a new model that manage the work orders by a set of this elements calling with the name of Lot.</p> <p>This Lot is associated to the Manufacturing Order and its creation is automatic by taking into account the workcenter products capaicty boottle neck in a routing.</p> <ul class="simple"> <li>A Work Order Lot is in progress (active) when is in 'open' or 'pending' state.</li> <li>When a Work Order Lot is in 'draft', 'picking', 'ready', 'done' or 'cancel' state can its associated work orders can change of state.</li> </ul> <a name="menu"></a> <h3>Menu</h3> <ul class="simple"> <li>The <code>Ready to Picking</code> menu is visible for the warehouse/stock user.</li> <li>The <code>Active Work Order Lots</code> menu is visible for the production/manufacturing manager.</li> <li>The <code>Active Work Orders</code> menu is visible for</li> </ul> <a name="states"></a> <h3>States</h3> <ul class="simple"> <li><strong>New</strong> (<code>draft</code>): Te Lot have been created and is waiting to be activated.</li> <li><strong>Picking</strong> (<code>picking</code>): The Lot its active and ready start the consume.</li> <li><strong>In Progress</strong> (<code>open</code>): The Lot is already consumed and the work orders associated need to be started and finished.</li> <li><strong>Paused</strong> (<code>pending</code>): Its set when some work order that belongs to the work order lot is in pending state, so also the work order lot its in Paused state.</li> <li><strong>Done</strong> (<code>done</code>): The work order lot have produce a production lot.</li> <li><strong>Cancelled</strong> (<code>cancel</code>):</li> </ul> <a name="consume-and-produce-processes"></a> <h3>Consume and Produce Processes</h3> <p><strong>Second</strong>, With the new concept of Work Order Lots we are attaching the paradigm of consuming raw material in lots instead of consuming it in a swept. In order to achieve this feature we have integrated the MRP Consume Produce module to manage in a more real way the production processes. These consume and produce processes have been adapted to manage the Work Order Lots instead of raw material per se. This functionality renders to be helpful because in real life the processes did not happen all at once.</p> <blockquote> <strong>Note</strong>: The MRP Consume Produce module (<code>mrp_consume_produce</code>) can be found in lp:~vauxoo/addons-vauxoo/7.0</blockquote> <a name="produce-process"></a> <h3>Produce process</h3> <ul> <li><p class="first"><em>Case 1:</em> one2one relationship. One work order lot produce one production lot.</p> </li> <li><p class="first"><em>Case 2:</em> many2one relationship. More that one work order lot produce one production lot.</p> </li> <li><p class="first"><em>Case 3:</em> one2many relationship. One work order lot produce more the one production lots.</p> <blockquote> <div class="figure align-center"> <img alt="Payroll Modules" src="images/wol_produce_spl.png" /> <p class="caption">Módulos OpenERP para manejo de nómina</p> </div> </blockquote> </li> </ul> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">This module only implements the case 1 of produce process with work order lots.</p> </div> <a name="configuration"></a> <h2>Configuration</h2> <p>If you install this module you need to active some settings:</p> <p>At <code>Settings &gt; Configuration &gt; Warehouse &gt; Traceability</code> active next options to show the product serial numbers:</p> <ul class="simple"> <li><code>Track serial number on products</code></li> <li><code>Expiry date on serial numbers</code></li> <li><code>Track serial number on logistic units (pallets)</code></li> </ul> <p>At <code>Settings &gt; Configuration &gt; Warehouse &gt; Location &amp; Warehouse</code> active this options:</p> <ul class="simple"> <li><code>Manage multiple locations and warehouses</code></li> </ul> <p>At <code>Settings &gt; Configuration &gt; Manufacturing &gt; Planning</code> active this options:</p> <ul class="simple"> <li><code>Allow detailed planning of work order</code>: This will install the <code>mrp_operations</code> model.</li> <li>set <code>Production Batch Process Type</code> options to Avoid Production Bottleneck</li> </ul> <p>At Users <code>Settings Menu &gt; Users Sidebar Section &gt; Users Menu &gt; (Select a User) &gt; User Form Access Rights Tab &gt; Technical Settings Section</code> active the next options to show Workcenter and Routing menu, to active the groups permission to invidually consume and produce:</p> <ul class="simple"> <li>Manage Multiple Units of Measure</li> <li>Manage Routings</li> <li>Manage Serial Numbers</li> <li>Manage Logistic Serial Numbers</li> <li>Manage Multiple Locations and Warehouses</li> <li>MRP / Button Consume-Produce</li> </ul> <a name="products-management"></a> <h2>Products Management</h2> <p>It agregate a 'product lines' model that contain information of the compatible products for the workcenters, indicating the max capacity that product that can be recive in the workcenter.</p> <ul class="simple"> <li>Products Capacity:</li> <li>Products Quantity: at workcenter operation</li> </ul> <a name="workflow"></a> <h3>WorkFlow</h3> <ol class="arabic"> <li><p class="first">Create a Manufacturing Order with its need fields.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">the product associated to your Manufacturing Order need to have a routing associated</p> </div> </li> <li><p class="first">Confirm the recently created Manufacturing Order.</p> </li> <li><p class="first">Change Manufacturing Order State to <code>Production Started</code></p> </li> <li><p class="first">Active the Work Order Lots by clicking the <code>Consumed</code> button and fillin the wizard required fields.</p> </li> <li><p class="first">Go to <code>Manufacturing &gt; Planning &gt; Work Orders by Active Lot</code> and start to consume an active Work Order Lot by clicking its Consume button (at the kaban card of the work order lot).</p> </li> <li><p class="first">Now you need to process the the Work Orders in your Work Order Lot. For that you need to get every work order in your lot to a 'Finish' state. This will trigger a change to the Work Order Lot to <code>Ready to Finish</code> state.</p> </li> <li><p class="first">At youre Manufacturing Order you need to click in the <code>Products Produced</code> button and fill in the required fields and finalize clicking the <code>Products Produced</code> button. This will set the Work Order Lot form <code>Ready to Finish</code> state to <code>Done</code> state indicating that the Work Order Lot have been Finished and will create the move of the Manufacturing Order final product that remains in the <code>Manufacturing Order Form &gt; Finished Products Page &gt;</code> <code>Produced Products section</code> There you will see the complete information of the current produce product.</p> </li> </ol>