update_index
Re-index the Odoo codebase by scanning and parsing changed files. Supports incremental updates, module-specific indexing, and full re-index.
Instructions
Update the Odoo index by scanning and parsing the codebase.
This tool triggers a re-indexing of the Odoo codebase in the background. By default, it performs incremental indexing (only re-parsing changed files). The function returns immediately while indexing continues in the background.
Args: incremental: If True, skip unchanged files (default: True). Set to False for full re-index. modules: Comma-separated list of module names to index (e.g., "sale,account,stock"). If not provided, all modules will be indexed. clear_db: If True, clear the entire database before indexing (default: False). WARNING: This will delete all existing index data!
Returns: Status message confirming indexing has started
Examples: - Incremental update: update_index() - Full re-index: update_index(incremental=False) - Index specific modules: update_index(modules="sale,account") - Clear and re-index: update_index(clear_db=True, incremental=False)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modules | No | ||
| clear_db | No | ||
| incremental | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||