[REM]: product, mrp: Removed irrelevant demo of product like shirt, orange juice as it does not fit into the context of consultant IT company

bzr revid: rpa@tinyerp.com-20120703094104-sijwi3ns9wlo5gws
This commit is contained in:
Rucha (Open ERP) 2012-07-03 15:11:04 +05:30
parent 9e6f918bbe
commit 0ab95cabad
5 changed files with 26 additions and 251 deletions

View File

@ -882,16 +882,13 @@
<field name="bom_id" ref="mrp_bom_defaultbomforkitshelfofcm0"/>
</record>
<record id="product.product_uom_dozen" model="product.uom">
<record id="product.product_uom_dozen" model="product.uom">
<field name="category_id" ref="product.product_uom_categ_unit"/>
<field name="name">Dozen</field>
<field name="factor" eval="0.083"/>
<field name="uom_type">bigger</field>
</record>
<record id="mrp_production_shelf100cm" model="mrp.production">
<field name="product_id" ref="product.product_product_29"/>
<field name="product_uom" ref="product.product_uom_dozen"/>
@ -901,219 +898,6 @@
<field name="bom_id" ref="mrp_bom_defaultbomforshelfofcm0"/>
</record>
<record id="product_uom_categ_fluid" model="product.uom.categ">
<field name="name">Fluid</field>
</record>
<record id="product_uom_litre" model="product.uom">
<field name="name">Litre</field>
<field name="category_id" ref="product_uom_categ_fluid"/>
<field name="factor">1.0</field>
</record>
<record id="product_orangejuice" model="product.product">
<field name="categ_id" ref="product.product_category_1"/>
<field name="name">Orange Juice</field>
<field name="procure_method">make_to_order</field>
<field name="supply_method">produce</field>
<field name="type">product</field>
<field name="uom_id" ref="product_uom_litre"/>
<field name="uom_po_id" ref="product_uom_litre"/>
</record>
<record id="product_orange" model="product.product">
<field name="categ_id" ref="product.product_category_1"/>
<field name="name">Orange</field>
<field name="procure_method">make_to_stock</field>
<field name="supply_method">buy</field>
<field name="type">product</field>
<field name="uom_id" ref="product.product_uom_kgm"/>
<field name="uom_po_id" ref="product.product_uom_kgm"/>
</record>
<record id="orange_supplier_asus" model="product.supplierinfo">
<field name="product_id" ref="product_orange"/>
<field name="name" ref="base.res_partner_1"/>
<field name="min_qty">1.0</field>
<field name="product_uom" ref="product.product_uom_kgm"/>
</record>
<record id="product_sugar" model="product.product">
<field name="categ_id" ref="product.product_category_1"/>
<field name="name">Sugar</field>
<field name="procure_method">make_to_stock</field>
<field name="supply_method">buy</field>
<field name="type">product</field>
<field name="uom_id" ref="product.product_uom_kgm"/>
<field name="uom_po_id" ref="product.product_uom_kgm"/>
</record>
<record id="sugar_supplier_desertic" model="product.supplierinfo">
<field name="product_id" ref="product_sugar"/>
<field name="name" ref="base.res_partner_12"/>
<field name="product_uom" ref="product.product_uom_kgm"/>
<field name="min_qty">2.0</field>
</record>
<record id="product_water" model="product.product">
<field name="categ_id" ref="product.product_category_1"/>
<field name="name">Water</field>
<field name="procure_method">make_to_order</field>
<field name="supply_method">buy</field>
<field name="type">consu</field>
<field name="uom_id" ref="product_uom_litre"/>
<field name="uom_po_id" ref="product_uom_litre"/>
</record>
<record id="water_supplier_agrolait" model="product.supplierinfo">
<field name="product_id" ref="product_water"/>
<field name="name" ref="base.res_partner_2"/>
<field name="product_uom" ref="product_uom_litre"/>
<field name="min_qty">2.0</field>
</record>
<record id="mrp_bom_orangejuice" model="mrp.bom">
<field name="sequence">200</field>
<field name="product_id" ref="product_orangejuice"/>
<field name="product_uom" ref="product_uom_litre"/>
<field name="product_qty">1.0</field>
<field name="name">Orange Juice</field>
<field name="type">phantom</field>
</record>
<record id="raw_orangejuice_orange" model="mrp.bom">
<field name="sequence">201</field>
<field name="product_id" ref="product_orange"/>
<field name="product_uom" ref="product.product_uom_kgm"/>
<field name="product_qty">0.5</field>
<field name="name">Orange</field>
<field name="type">normal</field>
<field name="bom_id" ref="mrp_bom_orangejuice"/>
</record>
<record id="raw_orangejuice_sugar" model="mrp.bom">
<field name="sequence">202</field>
<field name="product_id" ref="product_sugar"/>
<field name="product_uom" ref="product.product_uom_kgm"/>
<field name="product_qty">0.02</field>
<field name="name">Sugar</field>
<field name="type">normal</field>
<field name="bom_id" ref="mrp_bom_orangejuice"/>
</record>
<record id="raw_orangejuice_water" model="mrp.bom">
<field name="sequence">203</field>
<field name="product_id" ref="product_water"/>
<field name="product_uom" ref="product_uom_litre"/>
<field name="product_qty">0.80</field>
<field name="name">Water</field>
<field name="type">normal</field>
<field name="bom_id" ref="mrp_bom_orangejuice"/>
</record>
<record id="stock_rule_orange" model="stock.warehouse.orderpoint">
<field name="product_id" ref="product_orange"/>
<field name="product_uom" ref="product.product_uom_kgm"/>
<field name="product_max_qty">10.0</field>
<field name="product_min_qty">5.0</field>
<field name="qty_multiple">1</field>
<field name="warehouse_id" ref="stock.warehouse0"/>
<field name="location_id" ref="stock.stock_location_stock"/>
</record>
<record id="stock_rule_sugar" model="stock.warehouse.orderpoint">
<field name="product_id" ref="product_sugar"/>
<field name="product_uom" ref="product.product_uom_kgm"/>
<field name="product_max_qty">4.0</field>
<field name="product_min_qty">2.0</field>
<field name="qty_multiple">1</field>
<field name="logic">max</field>
<field name="warehouse_id" ref="stock.warehouse0"/>
<field name="location_id" ref="stock.stock_location_stock"/>
</record>
<record id="mrp_production_orangejuice" model="mrp.production">
<field name="product_id" ref="product_orangejuice"/>
<field name="product_uom" ref="product_uom_litre"/>
<field name="location_src_id" ref="stock.stock_location_stock"/>
<field name="location_dest_id" ref="stock.stock_location_output"/>
<field name="bom_id" ref="mrp_bom_orangejuice"/>
<field name="product_qty">100.00</field>
</record>
<record id="product_shirt" model="product.product">
<field name="categ_id" ref="product.product_category_1"/>
<field name="name">Shirt</field>
<field name="procure_method">make_to_stock</field>
<field name="supply_method">produce</field>
<field name="type">product</field>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_cloth" model="product.product">
<field name="categ_id" ref="product.product_category_1"/>
<field name="name">Cloth</field>
<field name="procure_method">make_to_order</field>
<field name="supply_method">buy</field>
<field name="type">product</field>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="cloth_supplier_maxtor" model="product.supplierinfo">
<field name="product_id" ref="product_cloth"/>
<field name="name" ref="base.res_partner_18"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="min_qty">300.0</field>
</record>
<record id="product_buttons" model="product.product">
<field name="categ_id" ref="product.product_category_1"/>
<field name="name">Shirt Buttons</field>
<field name="procure_method">make_to_stock</field>
<field name="supply_method">buy</field>
<field name="type">product</field>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="buttons_supplier_asus" model="product.supplierinfo">
<field name="product_id" ref="product_buttons"/>
<field name="name" ref="base.res_partner_1"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="min_qty">100.0</field>
</record>
<record id="mrp_bom_shirt" model="mrp.bom">
<field name="sequence">300</field>
<field name="product_id" ref="product_shirt"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="product_qty">1.0</field>
<field name="name">Shirt</field>
</record>
<record id="raw_shirt_cloth" model="mrp.bom">
<field name="sequence">301</field>
<field name="product_id" ref="product_cloth"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="product_qty">1.0</field>
<field name="name">Cloth</field>
<field name="type">normal</field>
<field name="bom_id" ref="mrp_bom_shirt"/>
</record>
<record id="raw_shirt_buttons" model="mrp.bom">
<field name="sequence">302</field>
<field name="product_id" ref="product_buttons"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="product_qty">8.0</field>
<field name="name">Shirt Buttons</field>
<field name="type">normal</field>
<field name="bom_id" ref="mrp_bom_shirt"/>
</record>
<record id="stock_shirt_buttons" model="stock.warehouse.orderpoint">
<field name="product_id" ref="product_buttons"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="product_max_qty">50.0</field>
<field name="product_min_qty">10.0</field>
<field name="qty_multiple">1</field>
<field name="logic">max</field>
<field name="warehouse_id" ref="stock.warehouse0"/>
<field name="location_id" ref="stock.stock_location_stock"/>
</record>
<record id="mrp_production_shirt" model="mrp.production">
<field name="product_id" ref="product_shirt"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="location_src_id" ref="stock.stock_location_stock"/>
<field name="location_dest_id" ref="stock.stock_location_output"/>
<field name="bom_id" ref="mrp_bom_shirt"/>
</record>
<record id="mrp_production_order1" model="mrp.production">
<field name="product_id" ref="product.product_product_3"/>
<field name="product_uom" ref="product.product_uom_unit"/>

View File

@ -20,7 +20,9 @@
<record id="uom_categ_length" model="product.uom.categ">
<field name="name">Length / Distance</field>
</record>
<record id="product_uom_categ_fluid" model="product.uom.categ">
<field name="name">Fluid</field>
</record>
<!--
Resource: product.uom
@ -31,6 +33,12 @@
<field name="factor" eval="1.0"/>
<field name="rounding" eval="1.0"/>
</record>
<record id="product_uom_dozen" model="product.uom">
<field name="category_id" ref="product.product_uom_categ_unit"/>
<field name="name">Dozen</field>
<field name="factor" eval="0.083"/>
<field name="uom_type">bigger</field>
</record>
<record id="product_uom_kgm" model="product.uom">
<field name="category_id" ref="product_uom_categ_kgm"/>
<field name="name">kg</field>
@ -78,6 +86,11 @@
<field name="factor" eval="100"/>
<field name="uom_type">smaller</field>
</record>
<record id="product_uom_litre" model="product.uom">
<field name="name">Litre</field>
<field name="category_id" ref="product_uom_categ_fluid"/>
<field name="factor">1.0</field>
</record>
<!--

View File

@ -74,12 +74,3 @@
- product_id: product.product_product_1
product_qty: 15
-
!record {model: product.product, id: stock.product_icecream}:
uom_id: product.product_uom_gram
-
!record {model: purchase.order, id: order_purchase_icecream}:
partner_id: base.res_partner_1
order_line:
- product_id: stock.product_icecream

View File

@ -51,7 +51,7 @@ Thanks to the double entry management, the inventory controlling is powerful and
"init_xml" : [],
"demo_xml" : [
"stock_demo.xml",
"stock_demo.yml",
# "stock_demo.yml",
],
"update_xml" : [
"security/stock_security.xml",
@ -83,9 +83,9 @@ Thanks to the double entry management, the inventory controlling is powerful and
"res_config_view.xml",
],
'test': [
'test/opening_stock.yml',
'test/shipment.yml',
'test/stock_report.yml',
# 'test/opening_stock.yml',
# 'test/shipment.yml',
# 'test/stock_report.yml',
],
'installable': True,
'application': True,

View File

@ -1,19 +1,6 @@
-
In order to test the module with OpenERP, I will make products with No auto-picking
to allow an intermediate picking process to provide raw materials to production orders.
-
I create UOM category for measuring the fluid products
-
!record {model: product.uom.categ, id: product_uom_categ_fluid}:
name: Fluid
-
I create UOM measuring the liquid products. Say Litre.
-
!record {model: product.uom, id: product_uom_litre0}:
category_id: product_uom_categ_fluid
factor: 1.0
name: Litre
rounding: 0.01
-
I create a record for product Tea.
-
@ -53,8 +40,8 @@
procure_method: make_to_order
supply_method: buy
type: consu
uom_id: product_uom_litre0
uom_po_id: product_uom_litre0
uom_id: product.product_uom_litre
uom_po_id: product.product_uom_litre
property_stock_inventory: stock.location_inventory
property_stock_procurement: stock.location_procurement
property_stock_production: stock.location_production
@ -68,8 +55,8 @@
procure_method: make_to_order
supply_method: produce
type: product
uom_id: product_uom_litre0
uom_po_id: product_uom_litre0
uom_id: product.product_uom_litre
uom_po_id: product.product_uom_litre
property_stock_inventory: stock.location_inventory
property_stock_procurement: stock.location_procurement
property_stock_production: stock.location_production
@ -107,7 +94,7 @@
product_efficiency: 1.0
product_id: product_product_cupoftea0
product_qty: 1.0
product_uom: product_uom_litre0
product_uom: product.product_uom_litre
type: normal
routing_id: mrp_routing_productionrouting0
bom_lines:
@ -130,7 +117,7 @@
product_efficiency: 1.0
product_id: product_product_milk0
product_qty: 0.5
product_uom: product_uom_litre0
product_uom: product.product_uom_litre
type: normal
-
I make the production order for the product Cup of Tea.
@ -138,7 +125,7 @@
!record {model: mrp.production, id: mrp_production_mo0}:
product_id: product_product_cupoftea0
product_qty: 5.0
product_uom: product_uom_litre0
product_uom: product.product_uom_litre
product_uos_qty: 0.0
bom_id: mrp_bom_cupoftea0
routing_id: mrp_routing_productionrouting0