[FIX]:Uncaught Error: Unknown field state in domain [["state","in",["confirm"]]]
bzr revid: apa@tinyerp.com-20121016103814-8thbfrnvgu0p10t7
This commit is contained in:
@@ -105,7 +105,6 @@ account_bank_statement_line_global()
|
||||
class account_bank_statement_line(osv.osv):
|
||||
_inherit = 'account.bank.statement.line'
|
||||
_columns = {
|
||||
'date': fields.date('Entry Date', required=True, states={'confirm': [('readonly', True)]}),
|
||||
'val_date': fields.date('Valuta Date', states={'confirm': [('readonly', True)]}),
|
||||
'globalisation_id': fields.many2one('account.bank.statement.line.global', 'Globalisation ID',
|
||||
states={'confirm': [('readonly', True)]},
|
||||
|
||||
@@ -56,6 +56,9 @@
|
||||
<field name="globalisation_id"/>
|
||||
<field name="state" invisible="1"/>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='statement_line_ids']/field[@name='line_ids']/tree/field[@name='date']" position="replace">
|
||||
<field name="date" string="'Entry Date'" attrs="{'readonly':[('state','=','draft')]}" />
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user