diff --git a/quality_control_oca/demo/quality_control_demo.xml b/quality_control_oca/demo/quality_control_demo.xml index c70cf1428..ca294a7b7 100644 --- a/quality_control_oca/demo/quality_control_demo.xml +++ b/quality_control_oca/demo/quality_control_demo.xml @@ -3,7 +3,6 @@ Generic Test (demo) - generic diff --git a/quality_control_oca/models/qc_test.py b/quality_control_oca/models/qc_test.py index 460db7b98..16382dc9d 100644 --- a/quality_control_oca/models/qc_test.py +++ b/quality_control_oca/models/qc_test.py @@ -16,14 +16,6 @@ class QcTest(models.Model): _name = "qc.test" _description = "Quality control test" - def object_selection_values(self): - return set() - - @api.onchange("type") - def onchange_type(self): - if self.type == "generic": - self.object_id = False - active = fields.Boolean("Active", default=True) name = fields.Char(string="Name", required=True, translate=True) test_lines = fields.One2many( @@ -32,16 +24,7 @@ class QcTest(models.Model): string="Questions", copy=True, ) - object_id = fields.Reference( - string="Reference object", selection="object_selection_values", - ) fill_correct_values = fields.Boolean(string="Pre-fill with correct values") - type = fields.Selection( - [("generic", "Generic"), ("related", "Related")], - string="Type", - required=True, - default="generic", - ) category = fields.Many2one(comodel_name="qc.test.category", string="Category") company_id = fields.Many2one( comodel_name="res.company", diff --git a/quality_control_oca/views/qc_test_view.xml b/quality_control_oca/views/qc_test_view.xml index baa9aaab5..30c960ed0 100644 --- a/quality_control_oca/views/qc_test_view.xml +++ b/quality_control_oca/views/qc_test_view.xml @@ -18,11 +18,6 @@ - - @@ -56,8 +51,6 @@ - -