Skip to content
Snippets Groups Projects
Commit 2bd49b9d authored by Panos Christeas's avatar Panos Christeas
Browse files

project_caldav: Fix column inheritance of project.task

We explicitly want project.task.active to come from project.task.

bzr revid: p_christ@hol.gr-20100812110914-bj27asf9rjj08qxh
parent e8562fc4
Branches
Tags
No related merge requests found
......@@ -23,12 +23,17 @@ from osv import fields, osv
from caldav import calendar
from datetime import datetime
from project.project import task as base_project_task
class project_task(osv.osv):
_name = "project.task"
_inherit = ["calendar.todo", "project.task"]
_columns = {
# force inherit from project.project_task so that
# calendar.todo.active is masked oute
'active': base_project_task._columns['active'],
'write_date': fields.datetime('Write Date'),
'create_date': fields.datetime('Create Date'),
'create_date': fields.datetime('Create Date', readonly=True),
'attendee_ids': fields.many2many('calendar.attendee', \
'task_attendee_rel', 'task_id', 'attendee_id', 'Attendees'),
'state': fields.selection([('draft', 'Draft'),('open', 'In Progress'),('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done')], 'State', readonly=True, required=True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment