I have an module which is create sub task of task.and display subtask list in parent task.
now i want to display only thous subtask which has same project.
class project_parent_task(osv.Model):
_name = 'project.task'
_inherit = 'project.task'
_columns = {
'child_id':fields.one2many('project.task', 'parent_id', 'Child Task', domain=[('project_id', '=', 'project_id')]),
'parent_id': fields.many2one('project.task','Parent Task'),
}