[IMP] event: Remove color field from event

This commit will clean the code by removing the field
'color' from model 'event.event' since the field is
not used/needed anymore.

Task ID 2243918

closes odoo/odoo#50155

Related: odoo/upgrade#1124
Related: odoo/enterprise#10199
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Nasreddin (bon)
2020-04-29 14:52:00 +00:00
parent debeec1201
commit 6290a2a9d9
3 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
{
'name': 'Events Organization',
'version': '1.1',
'version': '1.2',
'website': 'https://www.odoo.com/page/events',
'category': 'Marketing/Events',
'summary': 'Trainings, Conferences, Meetings, Exhibitions, Registrations',
-1
View File
@@ -118,7 +118,6 @@ class EventEvent(models.Model):
default=lambda self: self.env.company.partner_id,
domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]")
event_type_id = fields.Many2one('event.type', string='Template', ondelete='set null')
color = fields.Integer('Kanban Color Index')
event_mail_ids = fields.One2many(
'event.mail', 'event_id', string='Mail Schedule', copy=True,
compute='_compute_from_event_type', readonly=False, store=True)
+1 -3
View File
@@ -322,7 +322,6 @@
<field name="seats_reserved"/>
<field name="seats_used"/>
<field name="seats_expected"/>
<field name="color"/>
<field name="legend_blocked"/>
<field name="legend_normal"/>
<field name="legend_done"/>
@@ -330,7 +329,7 @@
<field name="activity_state"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="d-flex flex-column p-0 {{!selection_mode ? 'oe_kanban_color_' + kanban_getcolor(record.color.raw_value) : ''}} oe_kanban_card oe_kanban_global_click">
<div t-attf-class="d-flex flex-column p-0 oe_kanban_card oe_kanban_global_click">
<div class="o_kanban_content p-0 m-0 position-relative row d-flex flex-fill">
<div class="col-3 bg-primary p-2 text-center d-flex flex-column justify-content-center">
<div t-esc="record.date_begin.raw_value.getDate()" class="o_event_fontsize_20"/>
@@ -437,7 +436,6 @@
<pivot string="Event">
<field name="name" type="row"/>
<field name="seats_reserved" type="measure"/>
<field name="color" invisible="1"/>
</pivot>
</field>
</record>