123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730 |
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <data noupdate="1">
- <record id="base.user_demo" model="res.users">
- <field eval="[(4, ref('group_mrp_user'))]" name="groups_id"/>
- </record>
- <!-- Resource: res.company -->
- <record id="stock.res_company_1" model="res.company">
- <field eval="1.0" name="manufacturing_lead"/>
- </record>
- <!-- Resource: mrp.workcenter -->
- <record id="mrp_workcenter_3" model="mrp.workcenter">
- <field name="name">Assembly Line 1</field>
- <field name="resource_calendar_id" ref="resource.resource_calendar_std"/>
- </record>
- <record id="mrp_workcenter_1" model="mrp.workcenter">
- <field name="name">Drill Station 1</field>
- <field name="resource_calendar_id" ref="resource.resource_calendar_std"/>
- </record>
- <record id="mrp_workcenter_2" model="mrp.workcenter">
- <field name="name">Assembly Line 2</field>
- <field name="resource_calendar_id" ref="resource.resource_calendar_std"/>
- </record>
- <!-- Resource: mrp.bom -->
- <record id="product.product_product_3_product_template" model="product.template">
- <field name="route_ids" eval="[(6, 0, [ref('stock.route_warehouse0_mto'), ref('mrp.route_warehouse0_manufacture')])]"/>
- </record>
- <record id="mrp_bom_manufacture" model="mrp.bom">
- <field name="product_tmpl_id" ref="product.product_product_3_product_template"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- </record>
- <record id="mrp_routing_workcenter_0" model="mrp.routing.workcenter">
- <field name="bom_id" ref="mrp_bom_manufacture"/>
- <field name="active">False</field>
- <field name="workcenter_id" ref="mrp_workcenter_3"/>
- <field name="name">Manual Assembly</field>
- <field name="time_cycle">60</field>
- <field name="sequence">5</field>
- <field name="worksheet_type">pdf</field>
- <field name="worksheet" type="base64" file="mrp/static/img/assebly-worksheet.pdf"/>
- </record>
- <record id="mrp_bom_manufacture_line_1" model="mrp.bom.line">
- <field name="product_id" ref="product.product_product_12"/>
- <field name="product_qty">1</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">5</field>
- <field name="bom_id" ref="mrp_bom_manufacture"/>
- </record>
- <record id="mrp_bom_manufacture_line_2" model="mrp.bom.line">
- <field name="product_id" ref="product.product_product_13"/>
- <field name="product_qty">1</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">5</field>
- <field name="bom_id" ref="mrp_bom_manufacture"/>
- </record>
- <record id="mrp_bom_manufacture_line_3" model="mrp.bom.line">
- <field name="product_id" ref="product.product_product_16"/>
- <field name="product_qty">1</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">5</field>
- <field name="bom_id" ref="mrp_bom_manufacture"/>
- </record>
- <record id="mrp_production_1" model="mrp.production">
- <field name="product_id" ref="product.product_product_3"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="product_qty">3</field>
- <field name="bom_id" ref="mrp_bom_manufacture"/>
- </record>
- <!-- Table -->
- <record id="product_product_computer_desk" model="product.product">
- <field name="name">Table</field>
- <field name="categ_id" ref="product.product_category_5"/>
- <field name="standard_price">290</field>
- <field name="list_price">520</field>
- <field name="detailed_type">product</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="description">Solid wood table.</field>
- <field name="default_code">FURN_9666</field>
- <field name="tracking">serial</field>
- <field name="image_1920" type="base64" file="mrp/static/img/table.png"/>
- </record>
- <record id="stock_warehouse_orderpoint_table" model="stock.warehouse.orderpoint">
- <field name="product_max_qty">0.0</field>
- <field name="product_min_qty">0.0</field>
- <field name="product_uom" ref="uom.product_uom_unit"/>
- <field name="company_id" ref="base.main_company"/>
- <field name="warehouse_id" ref="stock.warehouse0"/>
- <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
- <field name="product_id" ref="product_product_computer_desk"/>
- </record>
- <record id="product_product_computer_desk_head" model="product.product">
- <field name="name">Table Top</field>
- <field name="categ_id" ref="product.product_category_5"/>
- <field name="standard_price">240</field>
- <field name="list_price">380</field>
- <field name="detailed_type">product</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="description">Solid wood is a durable natural material.</field>
- <field name="default_code">FURN_8522</field>
- <field name="tracking">serial</field>
- <field name="image_1920" type="base64" file="mrp/static/img/table_top.png"/>
- </record>
- <record id="product_product_computer_desk_leg" model="product.product">
- <field name="name">Table Leg</field>
- <field name="categ_id" ref="product.product_category_5"/>
- <field name="standard_price">10</field>
- <field name="list_price">50</field>
- <field name="detailed_type">product</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="description">18″ x 2½″ Square Leg</field>
- <field name="default_code">FURN_2333</field>
- <field name="tracking">lot</field>
- <field name="image_1920" type="base64" file="mrp/static/img/table_leg.png"/>
- </record>
- <record id="product_product_computer_desk_bolt" model="product.product">
- <field name="name">Bolt</field>
- <field name="categ_id" ref="product.product_category_consumable"/>
- <field name="standard_price">0.5</field>
- <field name="list_price">0.5</field>
- <field name="detailed_type">consu</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="description">Stainless steel screw full (dia - 5mm, Length - 10mm)</field>
- <field name="default_code">CONS_89957</field>
- <field name="image_1920" type="base64" file="mrp/static/img/product_product_computer_desk_bolt.png"/>
- </record>
- <record id="product_product_computer_desk_screw" model="product.product">
- <field name="name">Screw</field>
- <field name="categ_id" ref="product.product_category_consumable"/>
- <field name="standard_price">0.1</field>
- <field name="list_price">0.2</field>
- <field name="detailed_type">consu</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="description">Stainless steel screw</field>
- <field name="default_code">CONS_25630</field>
- <field name="image_1920" type="base64" file="mrp/static/img/product_product_computer_desk_screw.png"/>
- </record>
- <record id="product_product_wood_ply" model="product.product">
- <field name="name">Ply Layer</field>
- <field name="categ_id" ref="product.product_category_5"/>
- <field name="standard_price">10</field>
- <field name="list_price">10</field>
- <field name="detailed_type">product</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="description">Layers that are stick together to assemble wood panels.</field>
- <field name="default_code">FURN_7111</field>
- <field name="image_1920" type="base64" file="mrp/static/img/product_product_wood_ply.png"/>
- </record>
- <record id="product_product_wood_wear" model="product.product">
- <field name="name">Wear Layer</field>
- <field name="categ_id" ref="product.product_category_5"/>
- <field name="standard_price">10</field>
- <field name="list_price">10</field>
- <field name="detailed_type">product</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="description">Top layer of a wood panel.</field>
- <field name="default_code">FURN_8111</field>
- <field name="image_1920" type="base64" file="mrp/static/img/product_product_wood_wear.png"/>
- </record>
- <record id="product_product_ply_veneer" model="product.product">
- <field name="name">Ply Veneer</field>
- <field name="categ_id" ref="product.product_category_5"/>
- <field name="standard_price">10</field>
- <field name="list_price">10</field>
- <field name="detailed_type">product</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="default_code">FURN_9111</field>
- <field name="image_1920" type="base64" file="mrp/static/img/product_product_ply_veneer.png"/>
- </record>
- <record id="product_product_wood_panel" model="product.product">
- <field name="name">Wood Panel</field>
- <field name="categ_id" ref="product.product_category_5"/>
- <field name="standard_price">80</field>
- <field name="list_price">100</field>
- <field name="detailed_type">product</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="default_code">FURN_7023</field>
- <field name="image_1920" type="base64" file="mrp/static/img/product_product_wood_panel.png"/>
- </record>
- <record id="product_product_plastic_laminate" model="product.product">
- <field name="name">Plastic Laminate</field>
- <field name="categ_id" ref="product.product_category_5"/>
- <field name="standard_price">3000</field>
- <field name="list_price">1000</field>
- <field name="detailed_type">product</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="default_code">FURN_8621</field>
- <field name="image_1920" type="base64" file="mrp/static/img/product_product_plastic_laminate.png"/>
- </record>
- <record id="product_product_computer_desk_product_template" model="product.template">
- <field name="route_ids" eval="[(6, 0, [ref('stock.route_warehouse0_mto'), ref('mrp.route_warehouse0_manufacture')])]"/>
- </record>
- <record id="mrp_bom_desk" model="mrp.bom">
- <field name="product_tmpl_id" ref="product_product_computer_desk_product_template"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">3</field>
- <field name="consumption">flexible</field>
- </record>
- <record id="mrp_routing_workcenter_5" model="mrp.routing.workcenter">
- <field name="bom_id" ref="mrp_bom_desk"/>
- <field name="active">False</field>
- <field name="workcenter_id" ref="mrp_workcenter_3"/>
- <field name="time_cycle">120</field>
- <field name="sequence">10</field>
- <field name="name">Assembly</field>
- <field name="worksheet_type">pdf</field>
- <field name="worksheet" type="base64" file="mrp/static/img/cutting-worksheet.pdf"/>
- </record>
- <record id="mrp_bom_desk_line_1" model="mrp.bom.line">
- <field name="product_id" ref="product_product_computer_desk_head"/>
- <field name="product_qty">1</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- <field name="bom_id" ref="mrp_bom_desk"/>
- <field name="operation_id" ref="mrp.mrp_routing_workcenter_5"/>
- </record>
- <record id="mrp_bom_desk_line_2" model="mrp.bom.line">
- <field name="product_id" ref="product_product_computer_desk_leg"/>
- <field name="product_qty">4</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">2</field>
- <field name="bom_id" ref="mrp_bom_desk"/>
- <field name="operation_id" ref="mrp.mrp_routing_workcenter_5"/>
- </record>
- <record id="mrp_bom_desk_line_3" model="mrp.bom.line">
- <field name="product_id" ref="product_product_computer_desk_bolt"/>
- <field name="product_qty">4</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">3</field>
- <field name="bom_id" ref="mrp_bom_desk"/>
- </record>
- <record id="mrp_bom_desk_line_4" model="mrp.bom.line">
- <field name="product_id" ref="product_product_computer_desk_screw"/>
- <field name="product_qty">10</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">4</field>
- <field name="bom_id" ref="mrp_bom_desk"/>
- </record>
- <!-- Table MO -->
- <record id="mrp_production_3" model="mrp.production">
- <field name="product_id" ref="product_product_computer_desk"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="product_qty">1</field>
- <field name="date_planned_start" eval="(DateTime.today() + relativedelta(days=1)).strftime('%Y-%m-%d %H:%M')"/>
- <field name="bom_id" ref="mrp_bom_desk"/>
- </record>
- <record id="mrp_bom_table_top" model="mrp.bom">
- <field name="product_tmpl_id" ref="product_product_computer_desk_head_product_template"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- </record>
- <record id="mrp_routing_workcenter_0" model="mrp.routing.workcenter">
- <field name="bom_id" ref="mrp_bom_table_top"/>
- <field name="active">False</field>
- <field name="workcenter_id" ref="mrp_workcenter_3"/>
- <field name="name">Manual Assembly</field>
- <field name="time_cycle">60</field>
- <field name="sequence">5</field>
- <field name="worksheet_type">pdf</field>
- <field name="worksheet" type="base64" file="mrp/static/img/assebly-worksheet.pdf"/>
- </record>
- <record id="mrp_bom_line_wood_panel" model="mrp.bom.line">
- <field name="product_id" ref="product_product_wood_panel"/>
- <field name="product_qty">2</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- <field name="bom_id" ref="mrp_bom_table_top"/>
- </record>
- <record id="mrp_bom_line_plastic_laminate" model="mrp.bom.line">
- <field name="product_id" ref="product_product_plastic_laminate"/>
- <field name="product_qty">4</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">2</field>
- <field name="bom_id" ref="mrp_bom_table_top"/>
- </record>
- <record id="mrp_bom_plastic_laminate" model="mrp.bom">
- <field name="product_tmpl_id" ref="product_product_plastic_laminate_product_template"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- </record>
- <record id="mrp_routing_workcenter_1" model="mrp.routing.workcenter">
- <field name="bom_id" ref="mrp_bom_plastic_laminate"/>
- <field name="active">False</field>
- <field name="workcenter_id" ref="mrp_workcenter_3"/>
- <field name="name">Long time assembly</field>
- <field name="time_cycle">180</field>
- <field name="sequence">15</field>
- <field name="worksheet_type">pdf</field>
- <field name="worksheet" type="base64" file="mrp/static/img/cutting-worksheet.pdf"/>
- </record>
- <record id="mrp_routing_workcenter_3" model="mrp.routing.workcenter">
- <field name="bom_id" ref="mrp_bom_plastic_laminate"/>
- <field name="active">False</field>
- <field name="workcenter_id" ref="mrp_workcenter_3"/>
- <field name="name">Testing</field>
- <field name="time_cycle">60</field>
- <field name="sequence">10</field>
- <field name="worksheet_type">pdf</field>
- <field name="worksheet" type="base64" file="mrp/static/img/assebly-worksheet.pdf"/>
- </record>
- <record id="mrp_routing_workcenter_4" model="mrp.routing.workcenter">
- <field name="bom_id" ref="mrp_bom_plastic_laminate"/>
- <field name="active">False</field>
- <field name="workcenter_id" ref="mrp_workcenter_1"/>
- <field name="name">Packing</field>
- <field name="time_cycle">30</field>
- <field name="sequence">5</field>
- <field name="worksheet_type">pdf</field>
- <field name="worksheet" type="base64" file="mrp/static/img/cutting-worksheet.pdf"/>
- </record>
- <record id="mrp_bom_line_plastic_laminate" model="mrp.bom.line">
- <field name="product_id" ref="product_product_ply_veneer"/>
- <field name="product_qty">1</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- <field name="bom_id" ref="mrp_bom_plastic_laminate"/>
- </record>
- <record id="mrp_bom_wood_panel" model="mrp.bom">
- <field name="product_tmpl_id" ref="product_product_wood_panel_product_template"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- </record>
- <record id="mrp_bom_line_wood_panel_ply" model="mrp.bom.line">
- <field name="product_id" ref="product_product_wood_ply"/>
- <field name="product_qty">3</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- <field name="bom_id" ref="mrp_bom_wood_panel"/>
- </record>
- <record id="mrp_bom_line_wood_panel_wear" model="mrp.bom.line">
- <field name="product_id" ref="product_product_wood_wear"/>
- <field name="product_qty">1</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- <field name="bom_id" ref="mrp_bom_wood_panel"/>
- </record>
- <!-- Table Top MO -->
- <record id="mrp_production_4" model="mrp.production">
- <field name="product_id" ref="product_product_computer_desk_head"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="product_qty">2</field>
- <field name="location_src_id" ref="stock.stock_location_stock"/>
- <field name="location_dest_id" ref="stock.stock_location_stock"/>
- <field name="bom_id" ref="mrp_bom_table_top"/>
- </record>
- <!-- Table Kit -->
- <record id="product_product_table_kit" model="product.product">
- <field name="name">Table Kit</field>
- <field name="categ_id" ref="product.product_category_5"/>
- <field name="standard_price">600.0</field>
- <field name="list_price">147.0</field>
- <field name="detailed_type">consu</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="description">Table kit</field>
- <field name="default_code">FURN_78236</field>
- <field name="image_1920" type="base64" file="mrp/static/img/product_product_table_kit.png"/>
- </record>
- <record id="product_product_table_kit_product_template" model="product.template">
- <field name="route_ids" eval="[(6, 0, [ref('mrp.route_warehouse0_manufacture')])]"/>
- </record>
- <record id="mrp_bom_kit" model="mrp.bom">
- <field name="product_tmpl_id" ref="product_product_table_kit_product_template"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">2</field>
- <field name="type">phantom</field>
- </record>
- <record id="mrp_bom_kit_line_1" model="mrp.bom.line">
- <field name="product_id" ref="product_product_wood_panel"/>
- <field name="product_qty">1</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="bom_id" ref="mrp_bom_kit"/>
- </record>
- <record id="mrp_bom_kit_line_2" model="mrp.bom.line">
- <field name="product_id" ref="product_product_computer_desk_bolt"/>
- <field name="product_qty">4</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="bom_id" ref="mrp_bom_kit"/>
- </record>
- <!-- Manufacturing Order Demo With Lots-->
- <record id="product_product_drawer_drawer" model="product.product">
- <field name="name">Drawer Black</field>
- <field name="categ_id" ref="product.product_category_5"/>
- <field name="tracking">lot</field>
- <field name="standard_price">20.0</field>
- <field name="list_price">24.0</field>
- <field name="detailed_type">product</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="description">Drawer on casters for great usability.</field>
- <field name="default_code">FURN_2100</field>
- <field name="barcode">601647855646</field>
- <field name="image_1920" type="base64" file="mrp/static/img/product_product_drawer_black.png"/>
- </record>
- <record id="product_product_drawer_case" model="product.product">
- <field name="name">Drawer Case Black</field>
- <field name="categ_id" ref="product.product_category_5"/>
- <field name="tracking">lot</field>
- <field name="standard_price">10</field>
- <field name="list_price">20</field>
- <field name="detailed_type">product</field>
- <field name="weight">0.01</field>
- <field name="uom_id" ref="uom.product_uom_unit"/>
- <field name="uom_po_id" ref="uom.product_uom_unit"/>
- <field name="default_code">FURN_5623</field>
- <field name="barcode">601647855647</field>
- <field name="image_1920" type="base64" file="mrp/static/img/product_product_drawer_case_black.png"/>
- </record>
- <record id="product.product_product_27" model="product.product">
- <field name="tracking">lot</field>
- </record>
- <record id="lot_product_27_0" model="stock.lot">
- <field name="name">0000000000030</field>
- <field name="product_id" ref="product.product_product_27"/>
- <field name="company_id" ref="base.main_company"/>
- </record>
- <record id="lot_product_27_1" model="stock.lot">
- <field name="name">0000000000031</field>
- <field name="product_id" ref="product.product_product_27"/>
- <field name="company_id" ref="base.main_company"/>
- </record>
- <record id="lot_product_product_drawer_drawer_0" model="stock.lot">
- <field name="name">0000000010001</field>
- <field name="product_id" ref="product_product_drawer_drawer"/>
- <field name="company_id" ref="base.main_company"/>
- </record>
- <record id="lot_product_product_drawer_case_0" model="stock.lot">
- <field name="name">0000000020045</field>
- <field name="product_id" ref="product_product_drawer_case"/>
- <field name="company_id" ref="base.main_company"/>
- </record>
- <!-- Initital Inventory -->
- <record id="stock_inventory_drawer_lot0" model="stock.quant">
- <field name="product_id" ref="product.product_product_27"/>
- <field name="inventory_quantity">50.0</field>
- <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
- <field name="lot_id" ref="lot_product_27_0"/>
- </record>
- <record id="stock_inventory_drawer_lot1" model="stock.quant">
- <field name="product_id" ref="product.product_product_27"/>
- <field name="inventory_quantity">40.0</field>
- <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
- <field name="lot_id" ref="lot_product_27_1"/>
- </record>
- <record id="stock_inventory_product_drawer_drawer" model="stock.quant">
- <field name="product_id" ref="product_product_drawer_drawer"/>
- <field name="inventory_quantity">50.0</field>
- <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
- <field name="lot_id" ref="lot_product_product_drawer_drawer_0"/>
- </record>
- <record id="stock_inventory_product_drawer_case" model="stock.quant">
- <field name="product_id" ref="product_product_drawer_case"/>
- <field name="inventory_quantity">50.0</field>
- <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
- <field name="lot_id" ref="lot_product_product_drawer_case_0"/>
- </record>
- <record id="stock_inventory_product_wood_panel" model="stock.quant">
- <field name="product_id" ref="product_product_wood_panel"/>
- <field name="inventory_quantity">50.0</field>
- <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
- </record>
- <record id="stock_inventory_product_ply" model="stock.quant">
- <field name="product_id" ref="product_product_wood_ply"/>
- <field name="inventory_quantity">20.0</field>
- <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
- </record>
- <record id="stock_inventory_product_wear" model="stock.quant">
- <field name="product_id" ref="product_product_wood_wear"/>
- <field name="inventory_quantity">30.0</field>
- <field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
- </record>
- <function model="stock.quant" name="action_apply_inventory">
- <function eval="[[('id', 'in', (ref('stock_inventory_drawer_lot0'),
- ref('stock_inventory_drawer_lot1'),
- ref('stock_inventory_product_drawer_drawer'),
- ref('stock_inventory_product_drawer_case'),
- ref('stock_inventory_product_wood_panel'),
- ref('stock_inventory_product_ply'),
- ref('stock_inventory_product_wear'),
- ))]]" model="stock.quant" name="search"/>
- </function>
- <!-- BoM -->
- <record id="mrp_bom_drawer" model="mrp.bom">
- <field name="product_tmpl_id" ref="product.product_product_27_product_template"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- <field name="code">PRIM-ASSEM</field>
- </record>
- <record id="mrp_bom_drawer_line_1" model="mrp.bom.line">
- <field name="product_id" ref="product_product_drawer_drawer"/>
- <field name="product_qty">1</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- <field name="bom_id" ref="mrp_bom_drawer"/>
- </record>
- <record id="mrp_bom_drawer_line_2" model="mrp.bom.line">
- <field name="product_id" ref="product_product_drawer_case"/>
- <field name="product_qty">1</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">2</field>
- <field name="bom_id" ref="mrp_bom_drawer"/>
- </record>
- <record id="mrp_bom_drawer_rout" model="mrp.bom">
- <field name="product_tmpl_id" ref="product.product_product_27_product_template"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">2</field>
- <field name="code">SEC-ASSEM</field>
- </record>
- <record id="mrp_routing_workcenter_1" model="mrp.routing.workcenter">
- <field name="bom_id" ref="mrp_bom_drawer_rout"/>
- <field name="active">False</field>
- <field name="workcenter_id" ref="mrp_workcenter_3"/>
- <field name="name">Long time assembly</field>
- <field name="time_cycle">180</field>
- <field name="sequence">15</field>
- <field name="worksheet_type">pdf</field>
- <field name="worksheet" type="base64" file="mrp/static/img/cutting-worksheet.pdf"/>
- </record>
- <record id="mrp_routing_workcenter_3" model="mrp.routing.workcenter">
- <field name="bom_id" ref="mrp_bom_drawer_rout"/>
- <field name="active">False</field>
- <field name="workcenter_id" ref="mrp_workcenter_3"/>
- <field name="name">Testing</field>
- <field name="time_cycle">60</field>
- <field name="sequence">10</field>
- <field name="worksheet_type">pdf</field>
- <field name="worksheet" type="base64" file="mrp/static/img/assebly-worksheet.pdf"/>
- </record>
- <record id="mrp_routing_workcenter_4" model="mrp.routing.workcenter">
- <field name="bom_id" ref="mrp_bom_drawer_rout"/>
- <field name="active">False</field>
- <field name="workcenter_id" ref="mrp_workcenter_1"/>
- <field name="name">Packing</field>
- <field name="time_cycle">30</field>
- <field name="sequence">5</field>
- <field name="worksheet_type">pdf</field>
- <field name="worksheet" type="base64" file="mrp/static/img/cutting-worksheet.pdf"/>
- </record>
- <record id="mrp_bom_drawer_rout_line_1" model="mrp.bom.line">
- <field name="product_id" ref="product_product_drawer_drawer"/>
- <field name="product_qty">1</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">1</field>
- <field name="bom_id" ref="mrp_bom_drawer_rout"/>
- </record>
- <record id="mrp_bom_drawer_rout_line_2" model="mrp.bom.line">
- <field name="product_id" ref="product_product_drawer_case"/>
- <field name="product_qty">1</field>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="sequence">2</field>
- <field name="bom_id" ref="mrp_bom_drawer_rout"/>
- </record>
- <record id="product.product_product_27" model="product.product">
- <field name="detailed_type">product</field>
- </record>
- <record id="mrp_production_drawer" model="mrp.production">
- <field name="product_id" ref="product.product_product_27"/>
- <field name="product_uom_id" ref="uom.product_uom_unit"/>
- <field name="product_qty">5</field>
- <field name="location_src_id" ref="stock.stock_location_stock"/>
- <field name="location_dest_id" ref="stock.stock_location_stock"/>
- <field name="bom_id" ref="mrp_bom_drawer"/>
- </record>
- <!-- Run Scheduler -->
- <function model="procurement.group" name="run_scheduler"/>
- <!-- OEE -->
- <record id="mrp_workcenter_efficiency_0" model="mrp.workcenter.productivity">
- <field name="workcenter_id" ref="mrp_workcenter_3"/>
- <field name="loss_id" ref="block_reason7"/>
- <field name="date_start" eval="(datetime.now() - relativedelta(days=5)).strftime('%Y-%m-%d %H:%M:%S')"/>
- <field name="date_end" eval="(datetime.now() - relativedelta(days=2)).strftime('%Y-%m-%d %H:%M:%S')"/>
- </record>
- <record id="mrp_workcenter_efficiency_1" model="mrp.workcenter.productivity">
- <field name="workcenter_id" ref="mrp_workcenter_3"/>
- <field name="loss_id" ref="block_reason0"/>
- <field name="date_start" eval="(datetime.now() - timedelta(hours=5)).strftime('%Y-%m-%d %H:%M:%S')"/>
- <field name="date_end" eval="(datetime.now() - timedelta(hours=3)).strftime('%Y-%m-%d %H:%M:%S')"/>
- </record>
- <record id="mrp_workcenter_efficiency_2" model="mrp.workcenter.productivity">
- <field name="workcenter_id" ref="mrp_workcenter_3"/>
- <field name="loss_id" ref="block_reason1"/>
- <field name="date_start" eval="(datetime.now() - timedelta(days=5, hours=4)).strftime('%Y-%m-%d %H:%M:%S')"/>
- <field name="date_end" eval="(datetime.now() - timedelta(days=5, hours=3)).strftime('%Y-%m-%d %H:%M:%S')"/>
- </record>
- <record id="mrp_workcenter_efficiency_3" model="mrp.workcenter.productivity">
- <field name="workcenter_id" ref="mrp_workcenter_1"/>
- <field name="loss_id" ref="block_reason7"/>
- <field name="date_start" eval="(datetime.now() - relativedelta(days=5)).strftime('%Y-%m-%d %H:%M:%S')"/>
- <field name="date_end" eval="(datetime.now() - relativedelta(days=3)).strftime('%Y-%m-%d %H:%M:%S')"/>
- </record>
- <record id="mrp_workcenter_efficiency_4" model="mrp.workcenter.productivity">
- <field name="workcenter_id" ref="mrp_workcenter_1"/>
- <field name="loss_id" ref="block_reason0"/>
- <field name="date_start" eval="(datetime.now() - timedelta(days=5,hours=5)).strftime('%Y-%m-%d %H:%M:%S')"/>
- <field name="date_end" eval="(datetime.now() - timedelta(days=5,hours=1)).strftime('%Y-%m-%d %H:%M:%S')"/>
- </record>
- <record id="mrp_workcenter_efficiency_5" model="mrp.workcenter.productivity">
- <field name="workcenter_id" ref="mrp_workcenter_1"/>
- <field name="loss_id" ref="block_reason1"/>
- <field name="date_start" eval="(datetime.now() - timedelta(hours=1)).strftime('%Y-%m-%d %H:%M:%S')"/>
- </record>
- <function model="mrp.production" name="action_confirm" eval="[[
- ref('mrp.mrp_production_3'),
- ref('mrp.mrp_production_4'),
- ref('mrp.mrp_production_drawer'),
- ]]"/>
- <function model="mrp.production" name="button_plan">
- <value eval="[ref('mrp.mrp_production_3')]"/>
- </function>
- <function model="mrp.production" name="write">
- <value eval="[ref('mrp.mrp_production_drawer')]"/>
- <value eval="{'qty_producing': 5, 'lot_producing_id': ref('mrp.lot_product_27_0')}"/>
- </function>
- <function model="mrp.production" name="action_assign">
- <value eval="[ref('mrp.mrp_production_drawer')]"/>
- </function>
- <function model="stock.move" name="write">
- <value model="stock.move" eval="obj().env['stock.move'].search([('raw_material_production_id', '=', obj().env.ref('mrp.mrp_production_drawer').id)]).ids"/>
- <value eval="{'quantity_done': 5}"/>
- </function>
- <function model="mrp.production" name="button_mark_done">
- <value eval="[ref('mrp.mrp_production_drawer')]"/>
- </function>
- <!-- set 'create component' as True for the demo manufacturing picking type
- while leaving the default value to False for the others -->
- <function model="stock.warehouse" name="write">
- <value model="stock.warehouse" eval="obj().env['stock.warehouse'].search([]).ids"/>
- <value eval="{'manufacture_to_resupply': True}"/>
- </function>
- <function model="stock.picking.type" name="write">
- <value model="stock.picking.type" eval="obj().env['stock.picking.type'].search([('code', '=', 'mrp_operation')]).ids"/>
- <value eval="{'use_create_components_lots': True}"/>
- </function>
- </data>
- </odoo>
|