account: remove state from many fields of move line

The control is made by the write function

bzr revid: ced-cad132f826d1b1d9d1144d85df24eedc0c3b864f
This commit is contained in:
ced 2007-07-26 08:31:01 +00:00
parent 1578d637f3
commit cd8e99a17e
1 changed files with 2 additions and 2 deletions

View File

@ -184,8 +184,8 @@ class account_move_line(osv.osv):
'balance': fields.function(_balance, method=True, string='Balance'),
'active': fields.boolean('Active'),
'state': fields.selection([('draft','Draft'), ('valid','Valid')], 'State', readonly=True),
'tax_code_id': fields.many2one('account.tax.code', 'Tax Account', states={'valid':[('readonly', True)]}),
'tax_amount': fields.float('Tax/Base Amount', digits=(16,2), select=True, states={'valid':[('readonly', True)]}),
'tax_code_id': fields.many2one('account.tax.code', 'Tax Account'),
'tax_amount': fields.float('Tax/Base Amount', digits=(16,2), select=True),
}
_defaults = {
'blocked': lambda *a: False,