diff options
| author | mra (Open ERP) <mra@tinyerp.com> | 2010-05-14 15:20:39 +0530 |
|---|---|---|
| committer | mra (Open ERP) <mra@tinyerp.com> | 2010-05-14 15:20:39 +0530 |
| commit | cf2c2eb3cc7bc83978773edb9b32afbc490e2263 (patch) | |
| tree | f1acb630f914fb60f1827bdd9e5ca12c22fe06ff /addons/project_long_term/project_long_term.py | |
| parent | 9adbbcab873a8709c360fc14a66d8c392048cda0 (diff) | |
| parent | 5d74da23f56c155bccb4ae30b61d78c26e85bb93 (diff) | |
[MERGE] Merge psi branch : lp:~psi-tinyerp/openobject-addons/trunk-mode3-yaml:
-Improve resource calendar leave form view
-put selection box for working time
-search View : set user_id from project phase by deafult
-date_deadline should not use to compute effectivity. should use date_end
bzr revid: mra@tinyerp.com-20100514095039-5fsaxmmftl64wmk9
Diffstat (limited to 'addons/project_long_term/project_long_term.py')
| -rw-r--r-- | addons/project_long_term/project_long_term.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/addons/project_long_term/project_long_term.py b/addons/project_long_term/project_long_term.py index 8e67bc23766..a925aeeb7aa 100644 --- a/addons/project_long_term/project_long_term.py +++ b/addons/project_long_term/project_long_term.py @@ -85,8 +85,8 @@ class project_phase(osv.osv): _columns = { 'name': fields.char("Phase Name", size=64, required=True), - 'date_start': fields.datetime('Starting Date'), - 'date_end': fields.datetime('End Date'), + 'date_start': fields.datetime('Starting Date', help="Start date of the phase"), + 'date_end': fields.datetime('End Date', help="End date of the phase"), 'constraint_date_start': fields.datetime('Start Date', help='force the phase to start after this date'), 'constraint_date_end': fields.datetime('End Date', help='force the phase to finish before this date'), 'project_id': fields.many2one('project.project', 'Project', required=True), @@ -104,8 +104,8 @@ class project_phase(osv.osv): } _defaults = { 'responsible_id': lambda obj,cr,uid,context: uid, - 'state': lambda *a: 'draft', - 'sequence': lambda *a: 10, + 'state': 'draft', + 'sequence': 10, } _order = "name" _constraints = [ @@ -237,7 +237,7 @@ class project_resource_allocation(osv.osv): 'useability': fields.float('Useability', help="Useability of this ressource for this project phase in percentage (=50%)"), } _defaults = { - 'useability': lambda *a: 100, + 'useability': 100, } project_resource_allocation() @@ -261,7 +261,7 @@ class task(osv.osv): 'planned_hours': fields.float('Planned Hours', required=True, help='Estimated time to do the task, usually set by the project manager when the task is in draft state.'), } _defaults = { - 'occupation_rate':lambda *a: '1' + 'occupation_rate': '1' } def onchange_planned(self, cr, uid, ids, project, user_id=False, planned=0.0, effective=0.0, date_start=None, occupation_rate=0.0): @@ -368,4 +368,4 @@ class task(osv.osv): return super(task, self).write(cr, uid, ids, vals, context=context) task() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file |
