[ADD]hr_recruitment,website_event_track: added color field to store the user selected tag color where tag color selection is not possible and improved the tag position in kanban view of event.track.
This commit is contained in:
committed by
Yannick Tivisse
parent
87c631b1c1
commit
e14d0a9f62
@@ -460,6 +460,7 @@ class applicant_category(models.Model):
|
||||
_description = "Category of applicant"
|
||||
|
||||
name = fields.Char("Name", required=True)
|
||||
color = fields.Integer(string='Color Index')
|
||||
|
||||
_sql_constraints = [
|
||||
('name_uniq', 'unique (name)', "Tag name already exists !"),
|
||||
|
||||
@@ -12,6 +12,7 @@ class event_track_tag(models.Model):
|
||||
|
||||
name = fields.Char('Tag')
|
||||
track_ids = fields.Many2many('event.track', string='Tracks')
|
||||
color = fields.Integer(string='Color Index')
|
||||
|
||||
_sql_constraints = [
|
||||
('name_uniq', 'unique (name)', "Tag name already exists !"),
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="oe_kanban_content">
|
||||
<h4><field name="name"/></h4>
|
||||
<field name="tag_ids"/>
|
||||
<h4><field name="name"/></h4>
|
||||
<div>
|
||||
<t t-if="duration"><field name="duration" widget="float_time"/> hours</t>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user