[FIX] account, usability: set the journal as readonly in bank statement form view when some entries have already been created. Fixed issue #1117

This commit is contained in:
qdp-odoo 2014-07-14 11:44:12 +02:00
parent 5df99ce622
commit 67133320b5
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@
<h1><field name="name"/></h1>
<group>
<group>
<field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id)" widget="selection"/>
<field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id)" attrs="{'readonly': [('move_line_ids', '!=', [])]}" widget="selection"/>
<label for="date" string="Date / Period"/>
<div>
<field name="date" on_change="onchange_date(date, company_id)" class="oe_inline"/>