From 390ce758273d9d68393a900ca2d7fe965ef84d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Mon, 5 Dec 2022 20:04:50 -0300 Subject: [PATCH] [FIX] 4 chars indent + reordered imports --- account_usability/models/account_move.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/account_usability/models/account_move.py b/account_usability/models/account_move.py index e32f18c..76954c4 100644 --- a/account_usability/models/account_move.py +++ b/account_usability/models/account_move.py @@ -2,13 +2,14 @@ # @author Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from datetime import timedelta import logging + from odoo import api, fields, models, _ +from odoo.exceptions import UserError +from odoo.osv import expression from odoo.tools import float_is_zero from odoo.tools.misc import format_date -from odoo.osv import expression -from datetime import timedelta -from odoo.exceptions import UserError _logger = logging.getLogger(__name__) @@ -220,7 +221,7 @@ class AccountMove(models.Model): if self.is_purchase_document(include_receipts=True): tax_lock_date = self.company_id.tax_lock_date if invoice_date and tax_lock_date and has_tax and invoice_date <= tax_lock_date: - invoice_date = tax_lock_date + timedelta(days=1) + invoice_date = tax_lock_date + timedelta(days=1) date = invoice_date return date