Skip to content

Conversation

@bosd
Copy link
Member

@bosd bosd commented Aug 8, 2025

No description provided.

bosd added 2 commits August 8, 2025 09:17
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.
@bosd bosd force-pushed the feature/polars-refactor-imp-strat branch from 4350dc8 to b28f095 Compare August 10, 2025 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants