Skip to content

Commit 1da557e

Browse files
committed
[FIX] server: process models even if odoo state not ready
1 parent b6d15aa commit 1da557e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/core/python_arch_eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ impl PythonArchEval {
702702
self.sym_stack.push(class_sym_rc.clone());
703703
self.visit_sub_stmts(session, &class_stmt.body);
704704
self.sym_stack.pop();
705-
if !self.sym_stack[0].borrow().is_external() && self.sym_stack[0].borrow().get_entry().is_some_and(|e| e.borrow().typ == EntryPointType::MAIN) && session.sync_odoo.state_init == InitState::ODOO_READY {
705+
if !self.sym_stack[0].borrow().is_external() && self.sym_stack[0].borrow().get_entry().is_some_and(|e| e.borrow().typ == EntryPointType::MAIN) {
706706
let odoo_builder_diags = PythonOdooBuilder::new(class_sym_rc).load(session);
707707
self.diagnostics.extend(odoo_builder_diags);
708708
}

0 commit comments

Comments
 (0)