From 43277a23abbcbe796e85e521cdc64606acc4cb46 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 | 12 ++++++++++++ rma/views/rma_tag_views.xml | 2 ++ 3 files changed, 18 insertions(+) diff --git a/rma/models/rma_tag.py b/rma/models/rma_tag.py index 12960025..5afab00d 100644 --- a/rma/models/rma_tag.py +++ b/rma/models/rma_tag.py @@ -18,6 +18,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 002a5c80..a102f80d 100644 --- a/rma/views/rma_portal_templates.xml +++ b/rma/views/rma_portal_templates.xml @@ -115,6 +115,18 @@ + + + + + + + @@ -52,6 +53,7 @@ +