@@ -8,12 +8,20 @@ class ModelWithDiagnostics(models.Model):
88
99 int_field = fields .Integer ()
1010 test_models = fields .One2many ("pygls.tests.base_test_model" , "diagnostics_id" )
11- test_models_wrong_dep = fields .One2many ("module_2.custom_model" , "diag_id" ) # OLS03015, OLS03021
11+ test_models_wrong_dep = fields .One2many ("module_2.custom_model" , "diag_id" ) # OLS03015
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
1515 test_related = fields .Integer (related = "test_models.test_int" )
1616 test_related_wrong = fields .Integer (related = "test_models.diagnostics_ids" ) #OLS03017
17+
18+ test_method_search = fields .Integer (search = "_search_1" )
19+ test_method_search = fields .Integer (search = "_search_2" ) # OLS03018
20+ test_method_search = fields .Integer (compute = "_compute_1" )
21+ test_method_search = fields .Integer (compute = "_compute_2" ) # OLS03018
22+ test_method_search = fields .Integer (inverse = "_inverse_1" )
23+ test_method_search = fields .Integer (inverse = "_inverse_2" ) # OLS03018
24+
1725 date = fields .Date ()
1826
1927 to_compute = fields .Integer (compute = "_compute_field" )
@@ -82,4 +90,13 @@ def test_search_domain(self):
8290 @api .constrains ("int_field" )
8391 @api .constrains ("wrong_field" ) # OLS03014
8492 def _compute_field (self ):
93+ pass
94+
95+ def _search_1 (self , operator , value ):
96+ pass
97+
98+ def _compute_1 (self ):
99+ pass
100+
101+ def _inverse_1 (self ):
85102 pass
0 commit comments