[IMP] project_long_term: *improve the form view of phase

*review menuitem structure

bzr revid: mra@tinyerp.com-20100521071429-hbki7oqgwt3n0vls
This commit is contained in:
mra (Open ERP)
2010-05-21 12:44:29 +05:30
parent c6f7206b21
commit 0388dcb2f0
6 changed files with 67 additions and 30 deletions
@@ -84,9 +84,9 @@ class project_phase(osv.osv):
return True
_columns = {
'name': fields.char("Phase Name", size=64, required=True),
'date_start': fields.datetime('Starting Date', help="Start date of the phase"),
'date_end': fields.datetime('End Date', help="End date of the phase"),
'name': fields.char("Name", size=64, required=True),
'date_start': fields.datetime('Start Date', help="Starting Date of the phase"),
'date_end': fields.datetime('End Date', help="Ending 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),
@@ -106,6 +106,7 @@ class project_phase(osv.osv):
'responsible_id': lambda obj,cr,uid,context: uid,
'state': 'draft',
'sequence': 10,
'product_uom': lambda self,cr,uid,c: self.pool.get('product.uom').search(cr, uid, [('name', '=', 'Day')], context=c)[0]
}
_order = "name"
_constraints = [