Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4387 Lượt xem

Hi !

Here is a sample, not working (ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « name » at row 2)

id,seller_ids/pricelist_ids/price 
product_product_1,666

Thanks for your help !

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

I just used a TransientModel with fields I wanted to fill, then overriding create and write methods to put the values in the right objects. Then, whenever I want to update my prices, I just import through csv on the transient object. Simple, really.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

error says that 'name' field is mandatory and you can't omit that field. for resolve this error, you've to add "name" field to your csv file.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 22
18930
3
thg 5 17
6501
1
thg 3 15
5138
2
thg 3 15
5063
0
thg 3 15
4952