[FIX] l10n_ch: fixed typo in method name

closes odoo/odoo#37876

Task: 2079636
X-original-commit: 794e1b91d16cf51a5f6e6bfd237a907c3203a3bd
Signed-off-by: Josse Colpaert <jco@openerp.com>
This commit is contained in:
Ravi Gohil
2019-10-03 11:17:58 +00:00
committed by fw-bot
parent 6bc944f589
commit e5ff5040dd
+2 -2
View File
@@ -192,14 +192,14 @@ class AccountMove(models.Model):
self.filtered(lambda inv: not inv.l10n_ch_isr_sent).write({'l10n_ch_isr_sent': True})
return super(AccountMove, self.with_context(mail_post_autofollow=True)).message_post(**kwargs)
def _get_reference_ch_invoice(self):
def _get_invoice_reference_ch_invoice(self):
""" This sets ISR reference number which is generated based on customer's `Bank Account` and set it as
`Payment Reference` of the invoice when invoice's journal is using Switzerland's communication standard
"""
self.ensure_one()
return self.l10n_ch_isr_number_spaced
def _get_reference_ch_partner(self):
def _get_invoice_reference_ch_partner(self):
""" This sets ISR reference number which is generated based on customer's `Bank Account` and set it as
`Payment Reference` of the invoice when invoice's journal is using Switzerland's communication standard
"""