diff --git a/addons/board/board.py b/addons/board/board.py
index 6c28aa33c40..985bc3cd09a 100644
--- a/addons/board/board.py
+++ b/addons/board/board.py
@@ -38,51 +38,15 @@ class board_board(osv.osv):
@param ids: List of Board's IDs
@return: arch of xml view.
"""
- board = self.pool.get('board.board').browse(cr, uid, ids, context=context)
- left = []
- right = []
- #start Loop
- for line in board.line_ids:
- linestr = ''
- if line.position == 'left':
- left.append(linestr)
- else:
- right.append(linestr)
- #End Loop
arch = """
-
""" % ('\n'.join(left), '\n'.join(right))
-
+ """
return arch
- def write(self, cr, uid, ids, vals, context=None):
-
- """
- Writes values in one or several fields.
- @param cr: the current row, from the database cursor,
- @param uid: the current user’s ID for security checks,
- @param ids: List of Board's IDs
- @param vals: dictionary with values to update.
- dictionary must be with the form: {‘name_of_the_field’: value, ...}.
- @return: True
- """
- result = super(board_board, self).write(cr, uid, ids, vals, context=context)
-
- board = self.pool.get('board.board').browse(cr, uid, ids[0], context=context)
- view = self.create_view(cr, uid, ids[0], context=context)
- id = board.view_id.id
- cr.execute("update ir_ui_view set arch=%s where id=%s", (view, id))
- return result
-
def create(self, cr, user, vals, context=None):
"""
create new record.
@@ -106,7 +70,6 @@ class board_board(osv.osv):
})
super(board_board, self).write(cr, user, [id], {'view_id': view_id}, context)
-
return id
def fields_view_get(self, cr, user, view_id=None, view_type='form', context=None,\
@@ -131,7 +94,6 @@ class board_board(osv.osv):
res['toolbar'] = {'print': [], 'action': [], 'relate': []}
return res
-
def _arch_preprocessing(self, cr, user, arch, context=None):
from lxml import etree
def remove_unauthorized_children(node):
@@ -150,13 +112,9 @@ class board_board(osv.osv):
archnode = etree.fromstring(encode(arch))
return etree.tostring(remove_unauthorized_children(archnode),pretty_print=True)
-
-
-
_columns = {
'name': fields.char('Dashboard', size=64, required=True),
'view_id': fields.many2one('ir.ui.view', 'Board View'),
- 'line_ids': fields.one2many('board.board.line', 'board_id', 'Action Views')
}
# the following lines added to let the button on dashboard work.
@@ -164,26 +122,4 @@ class board_board(osv.osv):
'name':lambda *args: 'Dashboard'
}
-class board_line(osv.osv):
- """
- Board Line
- """
- _name = 'board.board.line'
- _description = "Board Line"
- _order = 'position,sequence'
- _columns = {
- 'name': fields.char('Title', size=64, required=True),
- 'sequence': fields.integer('Sequence', help="Gives the sequence order\
- when displaying a list of board lines.", select=True),
- 'height': fields.integer('Height'),
- 'width': fields.integer('Width'),
- 'board_id': fields.many2one('board.board', 'Dashboard', required=True, ondelete='cascade'),
- 'action_id': fields.many2one('ir.actions.act_window', 'Action', required=True),
- 'position': fields.selection([('left','Left'),
- ('right','Right')], 'Position', required=True, select=True)
- }
- _defaults = {
- 'position': lambda *args: 'left'
- }
-
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/board/board_mydashboard_view.xml b/addons/board/board_mydashboard_view.xml
index f70d61c7a57..9d7e27d57d8 100644
--- a/addons/board/board_mydashboard_view.xml
+++ b/addons/board/board_mydashboard_view.xml
@@ -29,9 +29,9 @@
Your personal dashboard is empty.
- To insert any report into this dashboard, click 'Add to
- Dashboard' in the extended search options of any list
- or graph.
+ To add your first report into this dashboard, go to any
+ menu, switch to list or graph view, and click 'Add to
+ Dashboard' in the extended search options.
You can filter and group data before inserting into the
dashboard using the search options.
diff --git a/addons/board/board_view.xml b/addons/board/board_view.xml
index bf8da9d0b5a..4a72b2f714a 100644
--- a/addons/board/board_view.xml
+++ b/addons/board/board_view.xml
@@ -9,7 +9,6 @@
-
@@ -33,28 +32,16 @@
form
-
@@ -70,8 +57,8 @@
+ groups="base.group_no_one"
+ sequence="2"/>
diff --git a/addons/board/security/ir.model.access.csv b/addons/board/security/ir.model.access.csv
index bc9e0844923..ec9d2e89f4b 100644
--- a/addons/board/security/ir.model.access.csv
+++ b/addons/board/security/ir.model.access.csv
@@ -1,5 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_board_board all,board.board,model_board_board,,1,0,0,0
-access_board_board_line all,board.board.line,model_board_board_line,,1,0,0,0
access_board_board system,board.board system,model_board_board,base.group_system,1,1,1,1
-access_board_board_line system,board.board.line system,model_board_board_line,base.group_system,1,1,1,1
diff --git a/addons/board/wizard/board_menu_create.py b/addons/board/wizard/board_menu_create.py
index 3c46c7e4092..8c7909767f0 100644
--- a/addons/board/wizard/board_menu_create.py
+++ b/addons/board/wizard/board_menu_create.py
@@ -40,10 +40,6 @@ class board_menu_create(osv.osv_memory):
"""
data = context and context.get('active_id', False) or False
if data:
- board = self.pool.get('board.board').browse(cr, uid, data, context=context)
- if not board.line_ids:
- raise osv.except_osv(_('User Error!'),
- _('Please Insert Dashboard View(s) !'))
return False
@@ -67,6 +63,19 @@ class board_menu_create(osv.osv_memory):
'view_mode': 'form',
'res_model': 'board.board',
'view_id': board.view_id.id,
+ 'help': _('''
+
+ This dashboard is empty.
+
+ To add the first report into this dashboard, go to any
+ menu, switch to list or graph view, and click 'Add to
+ Dashboard' in the extended search options.
+
+ You can filter and group data before inserting into the
+ dashboard using the search options.
+
+
+ ''')
})
obj_menu = self.pool.get('ir.ui.menu')
#start Loop
@@ -74,7 +83,6 @@ class board_menu_create(osv.osv_memory):
obj_menu.create(cr, uid, {
'name': data.menu_name,
'parent_id': data.menu_parent_id.id,
- 'icon': 'STOCK_SELECT_COLOR',
'action': 'ir.actions.act_window,' + str(action_id)
}, context=context)
#End Loop