Skip to content

Commit 57f13ab

Browse files
committed
[IMP] test for OLS03017
1 parent 963cd1f commit 57f13ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/tests/data/addons/module_1/models/diagnostics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class ModelWithDiagnostics(models.Model):
1212
test_models_wrong_dep_kw = fields.One2many(comodel_name="module_2.custom_model", inverse_name="diag_id") # OLS03015, OLS03021
1313
test_no_model = fields.Many2one("non.existent.model") # OLS03016
1414
test_no_model_kw = fields.Many2one(comodel_name="non.existent.model") # OLS03016
15+
test_related = fields.Integer(related="test_models.test_int")
16+
test_related_wrong = fields.Integer(related="test_models.diagnostics_ids") #OLS03017
1517
date = fields.Date()
1618

1719
to_compute = fields.Integer(compute="_compute_field")

0 commit comments

Comments
 (0)