تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2176 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يوليو 25
2901
2
يونيو 25
1779
0
مايو 25
14
2
يناير 25
3334
1
ديسمبر 24
6898