[IMP] account: remove deprecated invoice date method

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) <wan@odoo.com>
This commit is contained in:
Camille Spiritus
2022-07-12 13:21:33 +02:00
parent 2e4ae1f5fb
commit ca999dd8a3
-6
View File
@@ -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. '''