Skip to content

Commit 7432825

Browse files
mmahroussfda-odoo
authored andcommitted
[IMP] server: update message for OLS30323
1 parent e9d9e6a commit 7432825

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

server/error_code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ In a search domain, when using a dot separator, it should be used either on a Da
232232
If you used a relational field and get this error, check that the comodel of this field is valid.
233233

234234
### OLS30323
235-
"Field does not exist on model"
235+
"Field does not exist on model or not in dependencies"
236236
In related keyword argument or decorators api.onchange/depends/constrains, the field provided
237237
should exist and be able to be resolved from current module
238238

server/src/core/python_arch_eval_hooks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ impl PythonArchEvalHooks {
921921
Some(DiagnosticSeverity::ERROR),
922922
Some(NumberOrString::String(S!("OLS30323"))),
923923
Some(EXTENSION_NAME.to_string()),
924-
format!("Field {field_name} does not exist on model {model_name}"),
924+
format!("Field {field_name} does not exist on model {model_name} or not in dependencies"),
925925
None,
926926
None,
927927
), &session.current_noqa);
@@ -955,7 +955,7 @@ impl PythonArchEvalHooks {
955955
Some(DiagnosticSeverity::ERROR),
956956
Some(NumberOrString::String(S!("OLS30323"))),
957957
Some(EXTENSION_NAME.to_string()),
958-
format!("Field {field_name} does not exist on model {model_name}"),
958+
format!("Field {field_name} does not exist on model {model_name} or not in dependencies"),
959959
None,
960960
None,
961961
), &session.current_noqa);

server/src/core/python_validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ impl PythonValidator {
381381
Some(DiagnosticSeverity::ERROR),
382382
Some(NumberOrString::String(S!("OLS30323"))),
383383
Some(EXTENSION_NAME.to_string()),
384-
format!("Field {related_field_name} does not exist on model {}", model_data.name),
384+
format!("Field {related_field_name} does not exist on model {} or not in dependencies", model_data.name),
385385
None,
386386
None,
387387
), &session.current_noqa);

0 commit comments

Comments
 (0)