跳至內容
選單
此問題已被標幟
3 回覆
7395 瀏覽次數

Hello Team,

I have created few products using the import option as follows : Inventory > Master Data > Products > Import file

Now I wish to update the "quantity on hand" for these products and I am trying to do it using the import option as follows: Inventory> Inventory Adjustment> Import

I have already created my CSV file but when i am doing the import i am getting the following error message:

"null value in column "location_id" violates not-null constraint DETAIL: Failing row contains (229, 172, null, 313, 1, 15.000, null, null, null, null, null, 2, 2018-12-28 20:23:40.467659, 2, 2018-12-28 20:23:40.467659). at row 2"

Can you please help me to solve this issue? I can send you the file.

Note: I am using online odoo version 11

Thanking you in advance.

Klix

頭像
捨棄
最佳答案

dear Klix,

Try Excel like this:

name
line_ids/location_id/id
line_ids/product_qty
line_ids/product_uom_id/id
line_ids/product_id
stock.stock_location_stock
4
product.product_uom_dozen
product name 1
stock.stock_location_stock
2
product.product_uom_dozen
product name 2

頭像
捨棄
最佳答案

Hi,


as this is inventory valuation where you have imported the stock you have to validate it after importing. This is the best way to do it.

Best regards

頭像
捨棄
作者 最佳答案

Hello Ayman, 

I have tried your excel format and it works! I have been struggling with this since yesterday and I really appreciate your helps.

One last thing i would like to know if you can help me on this, After importing products and their quantity using your excel format, i can see that the status of the inventory is set Draft after successful import.

I would like to know if it possible to set inventory Status=Validated in the excel itself when importing?

Thanking you in advance.

Klix


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
10月 24
2305
3
7月 22
6464
1
4月 21
1923
2
1月 21
5013
1
8月 18
5041