From b8e2e2139dd03debc72951542e32a5229aeff7ad Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 26 Aug 2010 16:26:42 +0530 Subject: [REM] project: Remove the project.message object , [ADD] project_message: Add the action related to project bzr revid: sbh@tinyerp.com-20100826105642-i8938zr08bwahgw6 --- addons/project/project.py | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'addons/project/project.py') diff --git a/addons/project/project.py b/addons/project/project.py index 61380f2e483..df20562a9f7 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -792,32 +792,7 @@ class config_compute_remaining(osv.osv_memory): config_compute_remaining() -class message(osv.osv): - _name = "project.message" - _description = "Message" - _columns = { - 'subject': fields.char('Subject', size=128, required="True"), - 'project_id': fields.many2one('project.project', 'Project', ondelete='cascade'), - 'date': fields.date('Date', required=1), - 'user_id': fields.many2one('res.users', 'User', required="True"), - 'description': fields.text('Description'), - } - - def _default_project(self, cr, uid, context=None): - if context is None: - context = {} - if 'project_id' in context and context['project_id']: - return int(context['project_id']) - return False - - _defaults = { - 'user_id': lambda self,cr,uid,ctx: uid, - 'date': time.strftime('%Y-%m-%d'), - 'project_id': _default_project - } - -message() class account_analytic_account(osv.osv): _inherit = 'account.analytic.account' -- cgit v1.2.3