[IMP]: Remaining changes in merge

bzr revid: rpa@tinyerp.com-20091125094814-grz0uqpz9dp5qq0a
This commit is contained in:
rpa (Open ERP)
2009-11-25 15:18:14 +05:30
parent 474130b904
commit 0ea7f73f70
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -593,6 +593,7 @@ class account_period(osv.osv):
'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscal Year', required=True, states={'done':[('readonly',True)]}, select=True),
'state': fields.selection([('draft','Draft'), ('done','Done')], 'State', readonly=True,
help='When monthly periods are created. The state is \'Draft\'. At the end of monthly period it is in \'Done\' state.'),
'company_id': fields.many2one('res.company', 'Company', required=True)
}
_defaults = {
'state': lambda *a: 'draft',
+1
View File
@@ -118,6 +118,7 @@ class project(osv.osv):
'state': fields.selection([('template', 'Template'), ('open', 'Running'), ('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done')], 'State', required=True, readonly=True,
help='The project can be in either if the states \'Template\' and \'Running\'. If it is template then we can make projects based on the template projects. If its in \'Running\' state it is a normal project.\
If it is to be reviewed then the state is \'Pending\'. When the project is completed the state is set to \'Done\'.'),
'company_id': fields.many2one('res.company', 'Company'),
}
_defaults = {