Draft
Conversation
This commit introduces a new, advanced feature to the `importer`'s
pre-flight checks. The `field_existence_check` can now use a
field-to-module mapping file to intelligently suggest and install
missing modules when a required field is not found in the target Odoo
database.
This change includes:
- **New CLI Argument**: A new `--field-module-map-file` argument has
been added to `importer.py`.
- **Refactored Pre-flight Logic**: The `field_existence_check` now
checks for the new mapping file. If missing fields are found in the
import CSV, it queries the map to find which Odoo modules are likely
responsible for those fields.
- **User Interaction**: The system will prompt the user to confirm
installation of these modules. If confirmed (or if `--headless` mode
is active), it calls the existing
`module_manager.run_module_installation` function.
- **Improved UX**: Instead of a hard failure, the tool now offers a
proactive solution, making it significantly more helpful for
migration and complex data import scenarios.
This commit updates `importing_data.md` to reflect the new pre-flight check functionality. The documentation now includes: * An expanded explanation of the **Field Existence Check** with a new section on the **Advanced Module Dependency Check**. * Details on how to use the new `--field-module-map-file` flag to enable this feature. * Updated guidance on using the `--headless` flag, noting that it now also applies to the new module dependency check.
4350dc8 to
b28f095
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.