Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2210 มุมมอง

When creating records using a CSV file, is it necessary to have the columns for all the fields in the model used?
If the fields not placed in the CSV are not required, will odoo place them as null?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You don't need all columns.

Columns not provided will result in either a NULL value or a DEFAULT value, depending on the field.

Create a record via the UI and supply the same fields manually to see which other ones get filled in to know exactly. 


See also https://www.odoo.com/documentation/14.0/applications/general/export_import_data.html#import-data-into-odoo

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You don't have to include all the fields, only those that are relevant to you and the "required" ones. 
You can see which fields are required by looking at the menu option (in debug mode) "Settings/Technical/Models".
The fields without assigned values will be set to "null" or to the default value, if any.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 25
1942
2
ก.ค. 25
7485
2
ก.ค. 25
3916
2
ก.ค. 25
3650
2
มิ.ย. 25
2254