'warn_manager':fields.boolean('Warn Manager',help="If you check this field, the project manager will receive a request each time a task is completed by his team.",states={'close':[('readonly',True)],'cancelled':[('readonly',True)]}),
'members':fields.many2many('res.users','project_user_rel','project_id','uid','Project Members',help="Project's member. Not used in any computation, just for information purpose.",states={'close':[('readonly',True)],'cancelled':[('readonly',True)]}),
'planned_hours':fields.function(_progress_rate,multi="progress",method=True,string='Planned Time',help="Sum of planned hours of all tasks related to this project and its child projects.",
'planned_hours':fields.function(_progress_rate,multi="progress",method=True,string='Planned Time',help="Sum of planned hours of all tasks related to this project and its child projects.",
'effective_hours':fields.function(_progress_rate,multi="progress",method=True,string='Time Spent',help="Sum of spent hours of all tasks related to this project and its child projects.",
'effective_hours':fields.function(_progress_rate,multi="progress",method=True,string='Time Spent',help="Sum of spent hours of all tasks related to this project and its child projects.",
help='If the task is created the state is \'Draft\'.\n If the task is started, the state becomes \'In Progress\'.\n If review is needed the task is in \'Pending\' state.\
\n If the task is over, the states is set to \'Done\'.'),
<treecolors="grey:state in ('cancelled','done');blue:remaining_hours<0 and state in ('pending');red:date_deadline and (date_deadline<current_date) and (state in ('draft','open'))"string="Tasks">
<buttonname="do_cancel"states="draft,open,pending"string="Cancel"type="object"icon="gtk-cancel"help="For cancelling the task"/>
<buttonname="do_cancel"states="draft,open,pending"string="Cancel"type="object"icon="gtk-cancel"help="For cancelling the task"/>
<buttonname="do_open"states="pending,draft,done,cancel"string="Start Task"type="object"icon="gtk-execute"help="For changing to open state"invisible="context.get('set_visible',False)"/>
<buttongroups="base.group_extended"name="%(action_project_task_delegate)d"states="pending,open,draft"string="Delegate"type="action"icon="gtk-sort-descending"help="For changing to delegate state"/>
<buttonname="action_close"states="draft,pending,open"string="Done"type="object"icon="terp-dialog-close"help="For changing to done state"/>