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

I have created a model with a parent-child relation and i want to import a csv file, i tried with external id option but i have an error when i try to validate the csv file: No matching records found for external id '1' in the 'Cuentas' field between rows 2 and 2189

I dont know if is possible to import this kind of relation, the csv have several fields but the most important are:

Date, Name, cuentas/codigo, cuentas/external id, cuentas/parent_id/external id, cuentas/nombre
2016-01-12, Clasificador. 2016/01/12, 1, 1, , INGRESOS CORRIENTES
,,1.1, 11, 1, IMPUESTOS
,,1.1.01, 1101, 11, "Sobre la Renta, Utilidades y Ganancias de Capital"

As you can see there are 2 models with a relation master-detail and the relation parent-child is on the detail. How can i do to import sucessfully all relations on the models?.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 16
3988
1
thg 3 15
4976
0
thg 3 24
867
0
thg 1 19
4775
fetch parent_id Đã xử lý
1
thg 11 22
2911