Bugfix on dashboard :buttons were not working
bzr revid: jvo@tinyerp.com-20090103091706-2uvgivfdw9fptmtc
This commit is contained in:
parent
5ebba89a74
commit
be52934057
|
@ -103,6 +103,12 @@ class board_board(osv.osv):
|
|||
'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.
|
||||
_defaults = {
|
||||
'name': lambda *args: 'Dashboard'
|
||||
}
|
||||
|
||||
board_board()
|
||||
|
||||
class board_line(osv.osv):
|
||||
|
|
|
@ -77,7 +77,7 @@ class project(osv.osv):
|
|||
def unlink(self, cr, uid, ids, *args, **kwargs):
|
||||
for proj in self.browse(cr, uid, ids):
|
||||
if proj.tasks:
|
||||
raise osv.except_osv(_('Operation Not Permited !'), _('You can not delete a project with tasks. I suggest you to desactivate it.'))
|
||||
raise osv.except_osv(_('Operation Not Permitted !'), _('You can not delete a project with tasks. I suggest you to deactivate it.'))
|
||||
return super(project, self).unlink(cr, uid, ids, *args, **kwargs)
|
||||
_columns = {
|
||||
'name': fields.char("Project Name", size=128, required=True),
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
</field>
|
||||
</record>
|
||||
<record id="action_project_task_user_tree_month" model="ir.actions.act_window">
|
||||
<field name="name">Tasks finnished by project and user (this month)</field>
|
||||
<field name="name">Tasks finished by project and user (this month)</field>
|
||||
<field name="res_model">report.project.task.user</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree</field>
|
||||
|
@ -91,7 +91,7 @@
|
|||
</field>
|
||||
</record>
|
||||
<record id="action_project_task_tree_month" model="ir.actions.act_window">
|
||||
<field name="name">Tasks finnished by project (this month)</field>
|
||||
<field name="name">Tasks finished by project (this month)</field>
|
||||
<field name="res_model">report.project.task</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree</field>
|
||||
|
|
Loading…
Reference in New Issue