From 975569679e47f166fd9f4e1188d8138b940dc82e Mon Sep 17 00:00:00 2001 From: bch <> Date: Mon, 7 May 2007 12:19:30 +0000 Subject: [PATCH] Analytic account now have a draft state bzr revid: bch-cc6ebe5545808e1fa38cae38b48032c477d57d7b --- addons/hr_timesheet_invoice/hr_timesheet_invoice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py index 8c4d8d6bd7e..b1fcaea831a 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py @@ -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()