From 33f5fc7355115260fba122c96bea0ae965b96dc6 Mon Sep 17 00:00:00 2001 From: Andrea Date: Thu, 28 Feb 2019 08:56:51 +0000 Subject: [PATCH] [FIX] l10n_ch: set field l10n_ch_currency_name to readonly l10n_ch_currency_name is a related field to currency Without this patch, when creating an invoice, the inverse of the related field was computed, trying to write the name on the currency (with the same value). If a user did not have the required access rights (e.g. a user in the group Billing can create an invoice but not write on res.currency by default), he was unable to create the invoice. Fixes odoo/odoo#31487 Closes odoo/odoo#31489 closes odoo/odoo#37381 X-original-commit: 5e49fa8002d7581bfad6dacee0f0b75de59817ec Signed-off-by: Martin Trigaux (mat) --- addons/l10n_ch/views/account_invoice_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_ch/views/account_invoice_view.xml b/addons/l10n_ch/views/account_invoice_view.xml index e550670de85..7edc239378b 100644 --- a/addons/l10n_ch/views/account_invoice_view.xml +++ b/addons/l10n_ch/views/account_invoice_view.xml @@ -12,7 +12,7 @@ - +