diff --git a/src/main.rs b/src/main.rs
index 2325c29..46724c5 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -19,6 +19,7 @@ use tree_sitter::{Parser, Tree};
use odoo_lsp::config::{Config, ModuleConfig};
use odoo_lsp::index::ModuleIndex;
+use odoo_lsp::model::ModelLocation;
use odoo_lsp::{format_loc, utils::*};
mod catch_panic;
@@ -335,7 +336,6 @@ impl LanguageServer for Backend {
} else if ext == "py" {
location = self
.python_jump_def(params, document.value().clone())
- .await
.map_err(|err| eprintln!("Error retrieving references:\n{err}"))
.ok()
.flatten();
@@ -346,8 +346,37 @@ impl LanguageServer for Backend {
Ok(location.map(GotoDefinitionResponse::Scalar))
}
- async fn references(&self, _: ReferenceParams) -> Result