跳至内容
菜单
此问题已终结

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
2287
3
7月 22
6455
1
4月 21
1922
2
1月 21
5005
1
8月 18
5041