diff options
| author | RHA(OpenERP) <> | 2010-09-20 11:41:01 +0530 |
|---|---|---|
| committer | Rvo (Open ERP) <rvo@tinyerp.co.in> | 2010-09-20 11:41:01 +0530 |
| commit | 4def2f930b0bd5e96c5299afb95183a7d51185f7 (patch) | |
| tree | 60c99a0dd71750d17ae98217c2b034e5722a94d9 /addons/project_issue/project_issue.py | |
| parent | 7934430265dce61e4cfed841b111a0628388c6ef (diff) | |
[IMP]: Usability imporvements in project_* and document_* modules
bzr revid: rvo@tinyerp.co.in-20100920061101-qizxmc2hyxcj2a9s
Diffstat (limited to 'addons/project_issue/project_issue.py')
| -rw-r--r-- | addons/project_issue/project_issue.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index 5c5a8907dc9..05e047914b7 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -70,7 +70,7 @@ class project_issue(crm.crm_case, osv.osv): message = _('Issue ') + " '" + name + "' "+ _("is Closed.") self.log(cr, uid, id, message) return res - + def _compute_day(self, cr, uid, ids, fields, args, context=None): if context is None: context = {} @@ -152,7 +152,7 @@ class project_issue(crm.crm_case, osv.osv): domain="[('partner_id','=',partner_id)]"), 'company_id': fields.many2one('res.company', 'Company'), 'description': fields.text('Description'), - 'state': fields.selection([('draft', 'Draft'), ('open', 'Todo'), ('cancel', 'Cancelled'), ('done', 'Closed'),('pending', 'Pending'), ], 'State', size=16, readonly=True, + 'state': fields.selection([('draft', 'Draft'), ('open', 'To Do'), ('cancel', 'Cancelled'), ('done', 'Closed'),('pending', 'Pending'), ], 'State', size=16, readonly=True, help='The state is set to \'Draft\', when a case is created.\ \nIf the case is in progress the state is set to \'Open\'.\ \nWhen the case is over, the state is set to \'Done\'.\ @@ -409,7 +409,7 @@ class project(osv.osv): 'project_escalation_id' : fields.many2one('project.project','Project Escalation', help='If any issue is escalated from the current Project, it will be listed under the project selected here.', states={'close':[('readonly',True)], 'cancelled':[('readonly',True)]}), 'reply_to' : fields.char('Reply-To Email Address', size=256) } - + def _check_escalation(self, cr, uid, ids): project_obj = self.browse(cr, uid, ids[0]) if project_obj.project_escalation_id: |
