Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3386 Widoki

In Odoo 13 with a custom module. I'm trying to import data using an Excel file that has 98 rows and after imported, it shows 98 rows have been imported but I actually see 62 rows in the list.

I have imported again using the same file and not delete old data. I still see 62 rows in the list view.

Note that the file has all required fields and all rows have complete data in each column.


Can anyone help me to diagnose this problem?

Thanks in advance.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

I have checked the database and it seems there are 62 rows that were imported into the database.

I will try to add some codes to write logs to see what's actually happening while update. This might be the fastest way to solve this problem.


Thanks for your help.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

First all what you can do is that, if there is any active field in the model that you are importing into, filter the inactive records from the filter and see whether the missing records are there or not. If active field is set to False, the records will not be visible untill we filter active False records or pass active_test False in context.


After checking the above and if still not solved, check whether there is any domain for the menu that you are looking the created records. Easily you can check the database table to confirm the number of created records.


Finally go through the custom module code, and add some codes to understand how many records are getting created actually.


Thanks

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 25
116
4
maj 24
12206
4
maj 24
6611
1
kwi 24
2933
0
lis 23
1805