diff options
| author | Amit Patel <apa@tinyerp.com> | 2012-10-16 16:08:14 +0530 |
|---|---|---|
| committer | Amit Patel <apa@tinyerp.com> | 2012-10-16 16:08:14 +0530 |
| commit | dfc2ae47a809b945dfbe641a8b76b0156c47739d (patch) | |
| tree | 4f7263013d393c2c668885b94ae18a12e8012afe | |
| parent | fa206b6c42321f61d38c4e9347ddfe965368fdd9 (diff) | |
| parent | 139c98abec6ad16aa91a44defee2345325132754 (diff) | |
[FIX]:Uncaught Error: Unknown field state in domain [["state","in",["confirm"]]]
bzr revid: apa@tinyerp.com-20121016103814-8thbfrnvgu0p10t7
| -rw-r--r-- | addons/account_bank_statement_extensions/account_bank_statement.py | 1 | ||||
| -rw-r--r-- | addons/account_bank_statement_extensions/account_bank_statement_view.xml | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/addons/account_bank_statement_extensions/account_bank_statement.py b/addons/account_bank_statement_extensions/account_bank_statement.py index 6eeda843dc5..3ef930b3ddc 100644 --- a/addons/account_bank_statement_extensions/account_bank_statement.py +++ b/addons/account_bank_statement_extensions/account_bank_statement.py @@ -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)]}, diff --git a/addons/account_bank_statement_extensions/account_bank_statement_view.xml b/addons/account_bank_statement_extensions/account_bank_statement_view.xml index 9164c00373f..43ebfc03382 100644 --- a/addons/account_bank_statement_extensions/account_bank_statement_view.xml +++ b/addons/account_bank_statement_extensions/account_bank_statement_view.xml @@ -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> |
