[iMP] mass_mailing: adding color or kanban views

This commit is contained in:
Fabien Pinckaers
2016-12-09 13:37:12 +01:00
parent b17029cf5d
commit eff9045741
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -324,7 +324,7 @@ class MassMailing(models.Model):
clicks_ratio = fields.Integer(compute="_compute_clicks_ratio", string="Number of Clicks")
state = fields.Selection([('draft', 'Draft'), ('in_queue', 'In Queue'), ('sending', 'Sending'), ('done', 'Sent')],
string='Status', required=True, copy=False, default='draft')
color = fields.Integer(related='mass_mailing_campaign_id.color', string='Color Index')
color = fields.Integer(string='Color Index')
# mailing options
reply_to_mode = fields.Selection(
[('thread', 'Followers of leads/applicants'), ('email', 'Specified Email Address')],
@@ -417,6 +417,7 @@
<span class="fa fa-bars fa-lg"/>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
<t t-if="widget.deletable">
<li><a type="delete">Delete</a></li>
</t>