From 3d63ad8475d9fb67b92ce8622064a9aed7aa9533 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 25 May 2021 12:01:54 +0200 Subject: [PATCH] [IMP] rma: public tags Now we can decide which tags are visible for the customer. This way, we can use them as pseudo-states TT29594 --- rma/models/rma_tag.py | 3 +++ rma/views/rma_portal_templates.xml | 12 ++++++++++++ rma/views/rma_tag_views.xml | 2 ++ 3 files changed, 17 insertions(+) diff --git a/rma/models/rma_tag.py b/rma/models/rma_tag.py index 9f96059e..db7d337b 100644 --- a/rma/models/rma_tag.py +++ b/rma/models/rma_tag.py @@ -13,6 +13,9 @@ class RmaTag(models.Model): help="The active field allows you to hide the category without " "removing it.", ) name = fields.Char(string="Tag Name", required=True, translate=True, copy=False,) + is_public = fields.Boolean( + string="Public Tag", help="The tag is visible in the portal view", + ) color = fields.Integer(string="Color Index") rma_ids = fields.Many2many(comodel_name="rma") diff --git a/rma/views/rma_portal_templates.xml b/rma/views/rma_portal_templates.xml index 002a5c80..a102f80d 100644 --- a/rma/views/rma_portal_templates.xml +++ b/rma/views/rma_portal_templates.xml @@ -115,6 +115,18 @@ + + + + + + + @@ -51,6 +52,7 @@ +