- Only stock manager can create location,warehouse and product, so let's check data with giving the access rights of manager - !context uid: 'res_users_stock_manager' - !record {model: stock.location, id: location_monitor}: name: chicago shop usage: internal - !record {model: stock.location, id: stock_location_output}: name: Output usage: internal - !record {model: stock.location, id: location_monitor_small}: name: Small chicago shop usage: internal location_id: location_monitor - !record {model: stock.location, id: location_opening}: name: opening usage: inventory - !record {model: stock.location, id: stock_location_3}: name: IT Suppliers usage: supplier - !record {model: stock.warehouse, id: stock_warehouse_shop0}: name: Chicago Warehouse lot_input_id: location_monitor lot_stock_id: location_monitor lot_output_id: stock_location_output - !record {model: product.product, id: product_product_6}: default_code: LCD15 name: 15” LCD Monitor type: consu categ_id: product.product_category_8 list_price: 1200.0 standard_price: 800.0 uom_id: product.product_uom_unit uom_po_id: product.product_uom_unit property_stock_inventory: location_opening valuation: real_time cost_method: average property_stock_account_input: account.conf_o_income property_stock_account_output: account.a_expense - Stock user can handled production lot,inventory and picking, so let's check data with giving the access rights of user - !context uid: 'res_users_stock_user' - !record {model: stock.production.lot, id: lot_monitor_0}: name: Lot0 for LCD Monitor product_id: product_product_6 - !record {model: stock.production.lot, id: lot_monitor_1}: name: Lot1 for LCD Monitor product_id: product_product_6 - !record {model: stock.inventory, id: stock_inventory_0}: name: Starting Inventory state: draft - !record {model: stock.inventory.line, id: stock_inventory_line_3}: product_id: product_product_6 product_uom: product.product_uom_unit inventory_id: stock_inventory_0 product_qty: 50.0 prod_lot_id: lot_monitor_0 location_id: location_monitor - !record {model: stock.inventory.line, id: stock_inventory_line_monitor}: product_id: product_product_6 product_uom: product.product_uom_unit inventory_id: stock_inventory_0 product_qty: 40.0 prod_lot_id: lot_monitor_1 location_id: location_monitor - !record {model: stock.picking, id: outgoing_shipment}: type: out location_dest_id: stock_location_output - !record {model: stock.move, id: outgoing_shipment_monitor}: picking_id: outgoing_shipment product_id: product_product_6 product_uom: product.product_uom_unit product_qty: 130.0 location_id: location_monitor location_dest_id: stock_location_output - !record {model: stock.picking, id: incomming_shipment}: type: in invoice_state: 2binvoiced partner_id: base.res_partner_address_9 location_dest_id: location_monitor - !record {model: stock.move, id: incomming_shipment_monitor}: picking_id: incomming_shipment product_id: product_product_6 product_uom: product.product_uom_unit product_qty: 50.0 location_id: stock_location_3 location_dest_id: location_monitor