[FIX] lp:315415 Added a domain [('state','<>','done')] on period_id field of account_invoice

lp bug: https://launchpad.net/bugs/315415 fixed

bzr revid: qdp@jade-20090114131308-n05tcaj8kyv7pw3z
This commit is contained in:
Quentin 2009-01-14 14:13:08 +01:00
parent 6b59779b45
commit 5368288e81
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class account_invoice(osv.osv):
'payment_term': fields.many2one('account.payment.term', 'Payment Term',readonly=True, states={'draft':[('readonly',False)]} ),
'period_id': fields.many2one('account.period', 'Force Period', help="Keep empty to use the period of the validation date."),
'period_id': fields.many2one('account.period', 'Force Period', domain=[('state','<>','done'), help="Keep empty to use the period of the validation date."),
'account_id': fields.many2one('account.account', 'Account', required=True, readonly=True, states={'draft':[('readonly',False)]}, help="The partner account used for this invoice."),
'invoice_line': fields.one2many('account.invoice.line', 'invoice_id', 'Invoice Lines', readonly=True, states={'draft':[('readonly',False)]}),