[IMP]add default values

bzr revid: sgo@tinyerp.com-20120329085102-tnwh2wp4lrtn0vt0
This commit is contained in:
Sanjay Gohel (Open ERP) 2012-03-29 14:21:02 +05:30
parent 2085c8280d
commit 100b279d3d
3 changed files with 10 additions and 1 deletions

View File

@ -502,6 +502,10 @@ class project(osv.osv):
'issues' : fields.boolean('Issues',help = "If you check this field issues are appears in kanban view"),
'open_issues': fields.function(_compute_issue , store=True,type='integer',string="Issue"),
}
_defaults = {
'issues' : True,
}
def open_issues(self, cr, uid, ids, context=None):
#Open the View for the Tasks for the project

View File

@ -230,7 +230,9 @@ class project(osv.osv):
'open_phases' : fields.function(_open_phase , type='integer',string="Open Phases"),
}
_defaults = {
'phases' : True,
}
def open_phase(self, cr, uid, ids, context=None):
#Open the View for the Tasks for the project
"""

View File

@ -32,6 +32,9 @@ class project_project(osv.osv):
_columns = {
'timesheets' : fields.boolean('Timesheets',help = "If you check this field timesheets appears in kanban view")
}
_defaults = {
'timesheets' : True,
}
def onchange_partner_id(self, cr, uid, ids, part=False, context=None):
res = super(project_project, self).onchange_partner_id(cr, uid, ids, part, context)
if part and res and ('value' in res):