Analytic account now have a draft state
authorbch <>
Mon, 7 May 2007 12:19:30 +0000 (12:19 +0000)
committerbch <>
Mon, 7 May 2007 12:19:30 +0000 (12:19 +0000)
bzr revid: bch-cc6ebe5545808e1fa38cae38b48032c477d57d7b

addons/hr_timesheet_invoice/hr_timesheet_invoice.py

index 8c4d8d6..b1fcaea 100644 (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()