[IMP] website_event: do not repeat category name in name_get of tags

This commit cleans the display name of event.tags as there is no need
to repeat the category name. It adds noise without any added value.

Task-2488019
PR odoo/odoo#68901
This commit is contained in:
qmo-odoo
2021-08-23 14:59:00 +00:00
committed by Thibault Delavallée
parent 3c05c37577
commit aa5a2ce90c
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -29,6 +29,3 @@ class EventTag(models.Model):
color = fields.Integer(
string='Color Index', default=lambda self: self._default_color(),
help='Tag color. No color means no display in kanban or front-end, to distinguish internal tags from public categorization tags.')
def name_get(self):
return [(tag.id, "%s: %s" % (tag.category_id.name, tag.name)) for tag in self]
@@ -17,7 +17,7 @@
<field name="model">event.tag.category</field>
<field name="inherit_id" ref="event.event_tag_category_view_tree"/>
<field name="arch" type="xml">
<field name="tag_ids" position="before">
<field name="tag_ids" position="after">
<field name="is_published" string="Show on Website"/>
</field>
</field>