[IMP] base,sales_team: define sales_team_dashboard view type only in sales_team module

This commit is contained in:
Christophe Simonis
2016-06-09 13:44:21 +02:00
parent 66ea78fd89
commit 267fbfa0e2
2 changed files with 9 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class View(models.Model):
_inherit = 'ir.ui.view'
type = fields.Selection(selection_add=[('sales_team_dashboard', 'Sales Team Dashboard')])
-1
View File
@@ -147,7 +147,6 @@ class View(models.Model):
('diagram', 'Diagram'),
('gantt', 'Gantt'),
('kanban', 'Kanban'),
('sales_team_dashboard', 'Sales Team Dashboard'),
('search', 'Search'),
('qweb', 'QWeb')], string='View Type')
arch = fields.Text(compute='_compute_arch', inverse='_inverse_arch', string='View Architecture', nodrop=True)