account: remove state from many fields of move line

The control is made by the write function

bzr revid: ced-ea05b0fed62a87fccad8ae6d0130bfd839e6719a
This commit is contained in:
ced
2007-07-26 08:30:44 +00:00
parent 3c034d2fb4
commit 86504368e0
+2 -2
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,