odoo-lsp
odoo-lsp copied to clipboard
Language server for Odoo Python/JS/XML
- [ ] More Python test fixtures to test features in the Support Matrix - [x] XML test fixtures - [x] Implement a capture gatherer like Python's, see `conftest.py`
Should make repeatedly jumping in and out of editors faster
Models, fields and methods all need to keep track of previous declarations to emulate the runtime behavior. A data structure data keeps a reference to its *ancestor*, and capable of...
- [x] `id=` or `parent=` - [ ] `action=` to search for `ir.actions.act_window`
```py if any(move.bom_line_id.bom_id != production.bom_id or move.bom_line_id._skip_bom_line(production.product_id)\ for move in production.move_raw_ids if move.bom_line_id): production.move_raw_ids = [Command.clear()] ``` Python analysis fails due to the extra line continuation that was not handled
Diagnostics for accessing items from non-depended modules: - fields - models - components - widgets
Potentially as `odoo-lsp doctor` and a VSCode command. - Configured roots - Settings - Potential issues (overlapping roots, multiple base modules, etc.) - Memory usage - Available (nightly) updates