From 61106da6e82626e2507aca424c3dded6760077d1 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 9 Oct 2012 12:03:26 +0200 Subject: [PATCH] [FIX] import docs: clarify handling of empty cells bzr revid: xmo@openerp.com-20121009100326-bil1rw8904ze7opk --- doc/import.rst | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/doc/import.rst b/doc/import.rst index f3db5d50bcf..bc654170659 100644 --- a/doc/import.rst +++ b/doc/import.rst @@ -78,10 +78,17 @@ Conversion This second phase takes the record dicts, extracts the :ref:`dbid` and :ref:`xid` if present and attempts to convert each field to a type -matching what OpenERP expects to write. Empty fields (empty strings) -are replaced with the ``False`` value, and non-empty fields are -converted through -:class:`~openerp.addons.base.ir.ir_fields.ir_fields_converter`: +matching what OpenERP expects to write. + +* Empty fields (empty strings) are replaced with the ``False`` value + +* Non-empty fields are converted through + :class:`~openerp.addons.base.ir.ir_fields.ir_fields_converter` + +.. note:: if a field is specified in the import, its default will *never* be + used. If some records need to have a value and others need to use + the model's default, either specify that default explicitly or do + the import in two phases. Char, text and binary fields ++++++++++++++++++++++++++++