mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
base_import_match: Small rst fixes in readme file
This commit is contained in:
committed by
anjeel.haria
parent
ff92667288
commit
b2b8707001
@@ -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``.
|
||||
|
||||
Reference in New Issue
Block a user