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 + + + + + + +