From 9b4aa371d76d26ec17fdbfe84912338a119928f7 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 | 4 ++++ rma/views/rma_portal_templates.xml | 6 ++++++ rma/views/rma_tag_views.xml | 2 ++ 3 files changed, 12 insertions(+) diff --git a/rma/models/rma_tag.py b/rma/models/rma_tag.py index 23e1ca53..a56e5c23 100644 --- a/rma/models/rma_tag.py +++ b/rma/models/rma_tag.py @@ -19,6 +19,10 @@ class RmaTag(models.Model): 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 c70e1c37..35fdda12 100644 --- a/rma/views/rma_portal_templates.xml +++ b/rma/views/rma_portal_templates.xml @@ -83,6 +83,12 @@ + + + + + + diff --git a/rma/views/rma_tag_views.xml b/rma/views/rma_tag_views.xml index 203fdf3e..538b6dfb 100644 --- a/rma/views/rma_tag_views.xml +++ b/rma/views/rma_tag_views.xml @@ -22,6 +22,7 @@ + @@ -34,6 +35,7 @@ +