Skip to content

Commit 701140d

Browse files
committed
[FIX] server: browse all evaluations to find a value in _get_attribute
1 parent a07dd4c commit 701140d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/core/python_odoo_builder.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ impl PythonOdooBuilder {
230230
let attr_sym = &attr_sym[0];
231231
for eval in attr_sym.borrow().evaluations().unwrap().iter() {
232232
let eval = eval.follow_ref_and_get_value(session, &mut None, diagnostics);
233-
return eval;
233+
if eval.is_some() {
234+
return eval;
235+
}
234236
}
235237
None
236238
}

0 commit comments

Comments
 (0)