I want to update my stock in odoo either its by odoo frontend or using backend (postgres query).
I have my stock value in csv file.
Finally, I want to update quantity on hand in bulk.
It's finally solved, simply follow the step
Step – 1 ;
1-> select product in warehouse module (open in list view).
2-> select the product which you want to update the inventory .
3-> click on more button and export column
i-> product name and any other one if you needed .
you have file with name of product.temlate.csv .
4-> Add a column qty and enter the quantity of product .
Step – 2;
1-> select inventory adjustment in warehouse module .
2-> if you already have any created inventory then go to 3rd point if not then create a inventory and feel the detail . and select all product option in Inventory of - :
3-> now again click on inventory adjustment and select the inventory.
4-> click on more and export the following column
Inventories/location
Inventories/product
Invevtories/product Unit of Measure .
Now you have one more file with name stock.inventory.csv
Step -3 ->
1-> now add two column on stock.inventory.csv
First one is name and second is line_ids/product_qty.
and remove the id column .
2-> delete the value of column line_ids/product_id/id of stock.inventory.csv file .
now copy the values of id column from product.template.csv and paste into the line_ids/product_id/id column of stock.inventory.csv .
3-> now copy the values of qty column from product.template.csv and paste into the line_ids/product_qty column of stock.inventory.csv .
4-> enter any value in name column for your reference .
Step – 4-
make sure your file look like this file:-
Click on following link to see file
This is a sample of the succesfully imported data
AFTER IMPORTING DONT FORGET START INVENTORY
You can fill up stock by using physical inventory, it's available at
Warehouse -> inventory Control -> Inventory Adjustment
You can import your csv in odoo and fill up physical inventory.
stock.inventory
stock.inventory.line
These are the models that you have to used to update your stocks(Inventory Loss to Stock Location).
Another easy option to update any odoo fields via frontend in bulk is to install MassEdit addon from: https://github.com/OCA/server-tools/tree/8.0/mass_editing
tested on odoo v8 and works great