summaryrefslogtreecommitdiff
path: root/addons/l10n_ch
diff options
context:
space:
mode:
authorAndrea <a.stirpe@onestein.nl>2019-02-28 08:56:51 +0000
committerfw-bot <otis@odoo.com>2019-09-24 14:20:33 +0000
commit33f5fc7355115260fba122c96bea0ae965b96dc6 (patch)
treef3cd7dc98fd5354a2f51cc709158226ae057d73e /addons/l10n_ch
parentaf26c704697df86b98dd9d03b7edba7302342b64 (diff)
[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) <mat@odoo.com>
Diffstat (limited to 'addons/l10n_ch')
-rw-r--r--addons/l10n_ch/views/account_invoice_view.xml2
1 files changed, 1 insertions, 1 deletions
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 @@
<xpath expr="//field[@name='sent']" position="after">
<field name="l10n_ch_isr_sent" invisible="1"/>
- <field name="l10n_ch_currency_name" invisible="1"/>
+ <field name="l10n_ch_currency_name" invisible="1" readonly="1"/>
</xpath>
<xpath expr="//button[@id='account_invoice_payment_btn']" position="before">