summaryrefslogtreecommitdiff
path: root/addons/l10n_ch
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-07-23 09:55:56 +0200
committerMartin Trigaux <mat@odoo.com>2019-07-23 13:41:00 +0200
commite266c7c98a6a4b89c13eb7eb38709cc0251ea47f (patch)
tree1b27ca28cac9f1d8577ae2bf14d0682e8920f05f /addons/l10n_ch
parent5c705c51cd8377b1c6e1bb2513db34afe48189ee (diff)
parent5e4c1b370123dee4e6d6a91cd9582ba41c4d8bd4 (diff)
[MERGE] Forward port of 12.0 to saas-12.2 up to 5e4c1b370123dee
Diffstat (limited to 'addons/l10n_ch')
-rw-r--r--addons/l10n_ch/models/account_invoice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/l10n_ch/models/account_invoice.py b/addons/l10n_ch/models/account_invoice.py
index 01c8b747329..b8982977552 100644
--- a/addons/l10n_ch/models/account_invoice.py
+++ b/addons/l10n_ch/models/account_invoice.py
@@ -26,7 +26,7 @@ class AccountInvoice(models.Model):
l10n_ch_isr_valid = fields.Boolean(compute='_compute_l10n_ch_isr_valid', help='Boolean value. True iff all the data required to generate the ISR are present')
l10n_ch_isr_sent = fields.Boolean(defaut=False, help="Boolean value telling whether or not the ISR corresponding to this invoice has already been printed or sent by mail.")
- l10n_ch_currency_name = fields.Char(related='currency_id.name', readonly=False, string="Currency Name", help="The name of this invoice's currency") #This field is used in the "invisible" condition field of the 'Print ISR' button.
+ l10n_ch_currency_name = fields.Char(related='currency_id.name', readonly=True, string="Currency Name", help="The name of this invoice's currency") #This field is used in the "invisible" condition field of the 'Print ISR' button.
@api.depends('partner_bank_id.bank_id.l10n_ch_postal_eur', 'partner_bank_id.bank_id.l10n_ch_postal_chf')
def _compute_l10n_ch_isr_postal(self):