From 939e00abc4ff93edba6b416713d9f05dfc142e3c Mon Sep 17 00:00:00 2001 From: Wolfgang Taferner Date: Mon, 6 Nov 2017 06:00:44 +0100 Subject: [PATCH] [FIX] account: remove duplicated methods --- addons/account/models/account_invoice.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index acc6dd6ab46..ce099bd0ea4 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -1266,20 +1266,6 @@ class AccountInvoice(models.Model): result.append((0, 0, values)) return result - def _get_refund_common_fields(self): - return ['partner_id', 'payment_term_id', 'account_id', 'currency_id', 'journal_id'] - - def _get_refund_prepare_fields(self): - return ['name', 'reference', 'comment', 'date_due'] - - def _get_refund_modify_read_fields(self): - read_fields = ['type', 'number', 'invoice_line_ids', 'tax_line_ids', 'date'] - return self._get_refund_common_fields() + self._get_refund_prepare_fields() + read_fields - - def _get_refund_copy_fields(self): - copy_fields = ['company_id', 'user_id', 'fiscal_position_id'] - return self._get_refund_common_fields() + self._get_refund_prepare_fields() + copy_fields - @api.model def _get_refund_common_fields(self): return ['partner_id', 'payment_term_id', 'account_id', 'currency_id', 'journal_id']