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()