Browse Source

[REF] base_import_match: Small rst fixes in readme file

pull/420/head^2
Moisés López 9 years ago
parent
commit
ffd6f496d8
  1. 11
      base_import_match/README.rst

11
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 import the XMLID of a record, make an **update**.
- If you do not: - If you do not:
- If there are import match rules for the model you are importing: - If there are import match rules for the model you are importing:
- Discard the rules that require fields you are not 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.
- 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 - Skip the rule if it requires a special condition that is not
satisfied. satisfied.
- If one match is found: - If one match is found:
- Stop traversing the rest of valid rules. - Stop traversing the rest of valid rules.
- **Update** that record. - **Update** that record.
- If zero or multiple matches are found: - If zero or multiple matches are found:
- Continue with the next rule. - Continue with the next rule.
- If all rules are exhausted and no single match is found: - If all rules are exhausted and no single match is found:
- **Create** a new record. - **Create** a new record.
- If there are no match rules for your model: - If there are no match rules for your model:
- **Create** a new record. - **Create** a new record.
By default 2 rules are installed for production instances: 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 #. If the rule must be used only for certain imported values, check
*Conditional* and enter the **exact string** that is going to be imported *Conditional* and enter the **exact string** that is going to be imported
in *Imported value*. in *Imported value*.
#. Keep in mind that the match here is evaluated as a case sensitive #. 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 **text string** always. If you enter e.g. ``True``, it will match that
string, but will not match ``1`` or ``true``. string, but will not match ``1`` or ``true``.

Loading…
Cancel
Save