Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
738 Lượt xem
how can I import data to always be new data, the system does not automatically update when there is a duplicate name or email or phone number. because if I update new data according to the old data, I will lose data information, this is very dangerous.
Does anyone have a way to solve it, please help me
Thanks


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

Hi,

Odoo uses the External ID (also known as XML ID) to identify and update existing records. If you leave this field blank or avoid it entirely, Odoo will not link the data to any existing record, and It will create a new record every time.

Even with no External ID, Odoo may still raise an error if the model has Unique constraints on fields like email, phone, and name (depending on the model). You’ll need to remove those constraints (inheriting and overriding the model) or ensure unique values.


Hope it helps.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 25
775
0
thg 7 25
514
0
thg 6 25
653
1
thg 5 25
1296
2
thg 3 25
1645