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

Hello. I'm getting this error.
<type 'exceptions.AssertionError'>: External ID conflict, 10009 already refers to a `product.product` record, you can't define a `product.template` record with this ID.

I've checked the logs, and Odoo is trying to INSERT into database, instead of updating record.

Is anybody else having this problem?

Thanks 

Ảnh đại diện
Huỷ bỏ

try to put -u all.

Tác giả

Thank you Annadurai, but if I am importing through csv, where do I put -u all?

Câu trả lời hay nhất

A product in Odoo is two things:  a product.template record and a product.product record.

Make sure you and your script knows why and when the script should be updating one versus the other.

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

Hello everyone,

I have the same problem

But I noticed that I can update only through the same module I used to insert the products for the first time, It seems that it is a validation between different modules to overcome duplicate External ID

Example:

I imported the products firstly through the  invoicing module /Sales/Sellable products

so when updating these products I have to import from the same path

I hope this might help

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

I am also experiencing this same issue. I will update as soon as I find some solution.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 24
1649
4
thg 11 23
32037
1
thg 3 23
2754
3
thg 1 21
40925
1
thg 3 20
4563