From ffd6f496d8773a0e3330cdc8c9affb486bfc1f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20L=C3=B3pez?= Date: Thu, 26 May 2016 13:30:37 -0500 Subject: [PATCH] [REF] base_import_match: Small rst fixes in readme file --- base_import_match/README.rst | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/base_import_match/README.rst b/base_import_match/README.rst index f1c657728..52609b45b 100644 --- a/base_import_match/README.rst +++ b/base_import_match/README.rst @@ -23,20 +23,26 @@ After installing this module, the import logic will be changed to: - If you import the XMLID of a record, make an **update**. - If you do not: + - If there are import match rules for the model you are importing: - - Discard the rules that require fields you are not importing. - - Traverse the remaining rules one by one in order to find a match in - the database. - - Skip the rule if it requires a special condition that is not - satisfied. - - If one match is found: - - Stop traversing the rest of valid rules. - - **Update** that record. - - If zero or multiple matches are found: - - Continue with the next rule. - - If all rules are exhausted and no single match is found: - - **Create** a new record. + + - Discard the rules that require fields you are not importing. + - Traverse the remaining rules one by one in order to find a match in the database. + + - Skip the rule if it requires a special condition that is not + satisfied. + - If one match is found: + + - Stop traversing the rest of valid rules. + - **Update** that record. + - If zero or multiple matches are found: + + - Continue with the next rule. + - If all rules are exhausted and no single match is found: + + - **Create** a new record. - If there are no match rules for your model: + - **Create** a new record. By default 2 rules are installed for production instances: @@ -59,6 +65,7 @@ To configure this module, you need to: #. If the rule must be used only for certain imported values, check *Conditional* and enter the **exact string** that is going to be imported in *Imported value*. + #. Keep in mind that the match here is evaluated as a case sensitive **text string** always. If you enter e.g. ``True``, it will match that string, but will not match ``1`` or ``true``.