Analytic account now have a draft state

bzr revid: bch-cc6ebe5545808e1fa38cae38b48032c477d57d7b
This commit is contained in:
bch 2007-05-07 12:19:30 +00:00
parent 1c0f5404ab
commit 975569679e
1 changed files with 2 additions and 1 deletions

View File

@ -64,13 +64,14 @@ class account_analytic_account(osv.osv):
'amount_invoiced': fields.function(_invoiced_calc, method=True, string='Invoiced Amount'),
'to_invoice': fields.many2one('hr_timesheet_invoice.factor','Invoicing'),
'state': fields.selection([
('draft','Draft'),
('open','Open'),
('pending','Pending'),
('close','Close'),
], 'State', required=True),
}
_defaults = {
'state' : lambda *a : 'open',
'state' : lambda *a : 'draft',
}
account_analytic_account()