[IMP]add default values
bzr revid: sgo@tinyerp.com-20120329085102-tnwh2wp4lrtn0vt0
This commit is contained in:
parent
2085c8280d
commit
100b279d3d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
"""
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue