2 Only stock manager can create location,warehouse and product, so let's check data with giving the access rights of manager
5 uid: 'res_users_stock_manager'
7 !record {model: stock.location, id: location_monitor}:
11 !record {model: stock.location, id: stock_location_output}:
15 !record {model: stock.location, id: location_monitor_small}:
16 name: Small chicago shop
18 location_id: location_monitor
20 !record {model: stock.location, id: location_opening}:
24 !record {model: stock.location, id: stock_location_3}:
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
34 !record {model: product.product, id: product_product_6}:
38 categ_id: product.product_category_8
41 uom_id: product.product_uom_unit
42 uom_po_id: product.product_uom_unit
43 property_stock_inventory: location_opening
46 property_stock_account_input: account.conf_o_income
47 property_stock_account_output: account.a_expense
49 Stock user can handled production lot,inventory and picking, so let's check data with giving the access rights of user
52 uid: 'res_users_stock_user'
54 !record {model: stock.production.lot, id: lot_monitor_0}:
55 name: Lot0 for LCD Monitor
56 product_id: product_product_6
58 !record {model: stock.production.lot, id: lot_monitor_1}:
59 name: Lot1 for LCD Monitor
60 product_id: product_product_6
62 !record {model: stock.inventory, id: stock_inventory_0}:
63 name: Starting Inventory
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
71 prod_lot_id: lot_monitor_0
72 location_id: location_monitor
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
79 prod_lot_id: lot_monitor_1
80 location_id: location_monitor
83 !record {model: stock.picking, id: outgoing_shipment}:
85 location_dest_id: stock_location_output
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
92 location_id: location_monitor
93 location_dest_id: stock_location_output
95 !record {model: stock.picking, id: incomming_shipment}:
97 invoice_state: 2binvoiced
98 partner_id: base.res_partner_address_9
99 location_dest_id: location_monitor
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
106 location_id: stock_location_3
107 location_dest_id: location_monitor