summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorSanjay Gohel (Open ERP) <sgo@tinyerp.com>2012-03-29 14:21:02 +0530
committerSanjay Gohel (Open ERP) <sgo@tinyerp.com>2012-03-29 14:21:02 +0530
commit100b279d3db2183dc8a071c6c98d6ac05141f302 (patch)
tree8cfb7a527ba6a17f9084480010ca5d71d99fe958 /addons
parent2085c8280db01b732842ab8598befd24799614a6 (diff)
[IMP]add default values
bzr revid: sgo@tinyerp.com-20120329085102-tnwh2wp4lrtn0vt0
Diffstat (limited to 'addons')
-rw-r--r--addons/project_issue/project_issue.py4
-rw-r--r--addons/project_long_term/project_long_term.py4
-rw-r--r--addons/project_timesheet/project_timesheet.py3
3 files changed, 10 insertions, 1 deletions
diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py
index ec7b15881a6..fabe4179da1 100644
--- a/addons/project_issue/project_issue.py
+++ b/addons/project_issue/project_issue.py
@@ -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
diff --git a/addons/project_long_term/project_long_term.py b/addons/project_long_term/project_long_term.py
index b92449699a8..05605e38a03 100644
--- a/addons/project_long_term/project_long_term.py
+++ b/addons/project_long_term/project_long_term.py
@@ -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
"""
diff --git a/addons/project_timesheet/project_timesheet.py b/addons/project_timesheet/project_timesheet.py
index be736c58986..c7c43f98bdd 100644
--- a/addons/project_timesheet/project_timesheet.py
+++ b/addons/project_timesheet/project_timesheet.py
@@ -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):