From 67133320b5ed8a6d52489827e80801986641cd12 Mon Sep 17 00:00:00 2001
From: qdp-odoo <qdp@openerp.com>
Date: Mon, 14 Jul 2014 11:44:12 +0200
Subject: [PATCH] [FIX] account, usability: set the journal as readonly in bank
 statement form view when some entries have already been created. Fixed issue
 #1117

---
 addons/account/account_view.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index ceb0d44507ba..d11fa30726cf 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -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"/>
-- 
GitLab