From eda2736e4c251e05ab50eb1db9c2cd9889088f30 Mon Sep 17 00:00:00 2001 From: Laetitia Gangloff Date: Mon, 9 Feb 2015 11:05:48 +0100 Subject: [PATCH] [FIX] account: journal_id should be readonly when there is already invoice internal number Closes #5162, #5167 --- addons/account/account_invoice_view.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index f353877dd21..1106bd532d9 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -181,8 +181,10 @@ + + on_change="onchange_journal_id(journal_id, context)" widget="selection" + attrs="{'readonly':[('internal_number','!=',False)]}"/> @@ -327,8 +329,10 @@ + + on_change="onchange_journal_id(journal_id, context)" widget="selection" + attrs="{'readonly':[('internal_number','!=',False)]}"/>