From b6f6b6caab1b43d98dcde19a633155c131b17745 Mon Sep 17 00:00:00 2001 From: SilvioC2C Date: Mon, 29 Jan 2024 17:33:25 +0100 Subject: [PATCH] [IMP] mrp_tag: add tags to ``mrp.production`` search view --- mrp_tag/models/mrp_tag.py | 4 ++-- mrp_tag/views/mrp_production_view.xml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/mrp_tag/models/mrp_tag.py b/mrp_tag/models/mrp_tag.py index 0469cbf48..321e1fb60 100644 --- a/mrp_tag/models/mrp_tag.py +++ b/mrp_tag/models/mrp_tag.py @@ -18,8 +18,8 @@ class MrpTag(models.Model): name = fields.Char("Tag Name", required=True, translate=True) color = fields.Integer(default=lambda self: self._get_default_color()) - parent_id = fields.Many2one("purchase.tag", index=True, ondelete="cascade") - child_ids = fields.One2many("purchase.tag", "parent_id") + parent_id = fields.Many2one("mrp.tag", index=True, ondelete="cascade") + child_ids = fields.One2many("mrp.tag", "parent_id") parent_path = fields.Char(index=True) _sql_constraints = [ diff --git a/mrp_tag/views/mrp_production_view.xml b/mrp_tag/views/mrp_production_view.xml index 8c9920534..34f53678d 100644 --- a/mrp_tag/views/mrp_production_view.xml +++ b/mrp_tag/views/mrp_production_view.xml @@ -37,5 +37,19 @@ + + mrp.production.search + mrp.production + + + + + + +