From: P. Christeas Date: Thu, 12 Aug 2010 11:09:14 +0000 (+0300) Subject: project_caldav: Fix column inheritance of project.task X-Git-Tag: 6.0.0-rc1-addons~69^2~315^2~8 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=2bd49b9d27e0d612df3ca14d358ac06ad631cc92;p=odoo%2Fodoo.git 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 --- diff --git a/addons/project_caldav/project_caldav.py b/addons/project_caldav/project_caldav.py index 70789d8..ea6c02b 100644 --- a/addons/project_caldav/project_caldav.py +++ b/addons/project_caldav/project_caldav.py @@ -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,