From ca999dd8a369665e90bb32a7e072299ef13d6735 Mon Sep 17 00:00:00 2001 From: Camille Spiritus Date: Tue, 12 Jul 2022 09:38:58 +0000 Subject: [PATCH] [IMP] account: remove deprecated invoice date method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Deprecated method _get_default_invoice_date is no longer used and can therefore be safely removed. closes odoo/odoo#95820 Signed-off-by: William André (wan) --- addons/account/models/account_move.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index a824aaa2ef2..761d39b8cef 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -124,12 +124,6 @@ class AccountMove(models.Model): return journal - # TODO remove in master - @api.model - def _get_default_invoice_date(self): - warnings.warn("Method '_get_default_invoice_date()' is deprecated and has been removed.", DeprecationWarning) - return fields.Date.context_today(self) if self._context.get('default_move_type', 'entry') in self.get_purchase_types(include_receipts=True) else False - @api.model def _get_default_currency(self): ''' Get the default currency from either the journal, either the default journal's company. '''