[MERGE] Sync with trunk, until revision 8927
[odoo/odoo.git] / addons / stock / stock_demo.yml
1 -
2   Only stock manager can create location,warehouse and product, so let's check data with giving the access rights of manager
3 -
4   !context
5     uid: 'res_users_stock_manager'
6 -
7  !record {model: stock.location, id: location_monitor}:
8     name: chicago shop
9     usage: internal
10 -
11  !record {model: stock.location, id: stock_location_output}:
12     name: Output
13     usage: internal
14 -
15  !record {model: stock.location, id: location_monitor_small}:
16     name: Small chicago shop
17     usage: internal
18     location_id: location_monitor
19 -
20  !record {model: stock.location, id: location_opening}:
21     name: opening
22     usage: inventory
23 -
24  !record {model: stock.location, id: stock_location_3}:
25     name: IT Suppliers
26     usage: supplier
27 -
28  !record {model: stock.warehouse, id: stock_warehouse_shop0}:
29     name: Chicago Warehouse
30     lot_input_id: location_monitor
31     lot_stock_id: location_monitor
32     lot_output_id: stock_location_output
33 -
34  !record {model: product.product, id: product_product_6}:
35     default_code: LCD15
36     name: 15” LCD Monitor
37     type: consu
38     categ_id: product.product_category_8
39     list_price: 1200.0
40     standard_price: 800.0
41     uom_id: product.product_uom_unit
42     uom_po_id: product.product_uom_unit
43     property_stock_inventory: location_opening
44     valuation: real_time
45     cost_method: average
46     property_stock_account_input: account.conf_o_income
47     property_stock_account_output: account.a_expense
48 -
49   Stock user can handled production lot,inventory and picking, so let's check data with giving the access rights of user
50 -
51   !context
52     uid: 'res_users_stock_user'
53 -
54  !record {model: stock.production.lot, id: lot_monitor_0}:
55     name: Lot0 for LCD Monitor
56     product_id: product_product_6
57 -
58  !record {model: stock.production.lot, id: lot_monitor_1}:
59     name: Lot1 for LCD Monitor
60     product_id: product_product_6
61 -
62  !record {model: stock.inventory, id: stock_inventory_0}:
63     name: Starting Inventory
64     state: draft
65 -
66  !record {model: stock.inventory.line, id: stock_inventory_line_3}:
67     product_id: product_product_6
68     product_uom: product.product_uom_unit
69     inventory_id: stock_inventory_0
70     product_qty: 50.0
71     prod_lot_id: lot_monitor_0
72     location_id: location_monitor
73 -
74  !record {model: stock.inventory.line, id: stock_inventory_line_monitor}:
75     product_id: product_product_6
76     product_uom: product.product_uom_unit
77     inventory_id: stock_inventory_0
78     product_qty: 40.0
79     prod_lot_id: lot_monitor_1
80     location_id: location_monitor
81
82 -
83  !record {model: stock.picking, id: outgoing_shipment}:
84     type: out
85     location_dest_id: stock_location_output
86 -
87  !record {model: stock.move, id: outgoing_shipment_monitor}:
88     picking_id: outgoing_shipment
89     product_id: product_product_6
90     product_uom: product.product_uom_unit
91     product_qty: 130.0
92     location_id: location_monitor
93     location_dest_id: stock_location_output
94 -
95  !record {model: stock.picking, id: incomming_shipment}:
96     type: in
97     invoice_state: 2binvoiced
98     partner_id: base.res_partner_address_9
99     location_dest_id: location_monitor
100 -
101  !record {model: stock.move, id: incomming_shipment_monitor}:
102     picking_id: incomming_shipment
103     product_id: product_product_6
104     product_uom: product.product_uom_unit
105     product_qty: 50.0
106     location_id: stock_location_3
107     location_dest_id: location_monitor