diff options
| author | sbh (Open ERP) <sbh@tinyerp.com> | 2010-08-26 16:26:42 +0530 |
|---|---|---|
| committer | sbh (Open ERP) <sbh@tinyerp.com> | 2010-08-26 16:26:42 +0530 |
| commit | b8e2e2139dd03debc72951542e32a5229aeff7ad (patch) | |
| tree | 46ac9c323f25ad7f2c20fffabea8965a26e221c2 /addons/project/project.py | |
| parent | 93f158e974906e26bea6fad7ba2da53e84318717 (diff) | |
[REM] project: Remove the project.message object ,
[ADD] project_message: Add the action related to project
bzr revid: sbh@tinyerp.com-20100826105642-i8938zr08bwahgw6
Diffstat (limited to 'addons/project/project.py')
| -rw-r--r-- | addons/project/project.py | 25 |
1 files changed, 0 insertions, 25 deletions
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' |
