Skip to content

Commit

Permalink
Merge pull request #1 from vauxoo-dev/yajo-rst-fix-moy
Browse files Browse the repository at this point in the history
[REF] base_import_match: Small rst fixes in readme file
  • Loading branch information
yajo committed May 27, 2016
2 parents dd52633 + ffd6f49 commit a0fc04d
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions base_import_match/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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``.
Expand Down

0 comments on commit a0fc04d

Please sign in to comment.