summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-04-16 18:34:35 +0530
committerRomain Derie <rde@odoo.com>2019-04-16 20:24:22 +0530
commit47ebb835e5baed52ac089663f2fb57b3c4993186 (patch)
treee97a3ea558ff0fdfcbaf686590e78bdd8096171c
parentb7a39c5722d1a5fc8b45dd1b4f939cee1163a23d (diff)
[FIX] l10n_ch: correct field default typo
-rw-r--r--addons/l10n_ch/models/account_invoice.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/l10n_ch/models/account_invoice.py b/addons/l10n_ch/models/account_invoice.py
index 1164368e227..a1d3c33f22d 100644
--- a/addons/l10n_ch/models/account_invoice.py
+++ b/addons/l10n_ch/models/account_invoice.py
@@ -12,6 +12,7 @@ from odoo.tools.misc import mod10r
l10n_ch_ISR_NUMBER_LENGTH = 27
l10n_ch_ISR_NUMBER_ISSUER_LENGTH = 12
+
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
@@ -25,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_isr_sent = fields.Boolean(default=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', 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')