diff --git a/contract_time_markers/models/account_analytic_account.py b/contract_time_markers/models/account_analytic_account.py index 0e3c16e0..5745d802 100644 --- a/contract_time_markers/models/account_analytic_account.py +++ b/contract_time_markers/models/account_analytic_account.py @@ -33,7 +33,8 @@ class AccountAnalyticAccount(models.Model): partner_lang = line.analytic_account_id.partner_id.lang if from_result and len(from_result[0]) > 1: - from_string = self._format_date(date_from, partner_lang, from_result[0]) + from_string = self._format_date(date_from, partner_lang, + from_result[0]) name = re.sub(from_regex, from_string, name) else: # Original behaviour diff --git a/contract_time_markers/readme/USAGE.rst b/contract_time_markers/readme/USAGE.rst index a4572698..40077f91 100644 --- a/contract_time_markers/readme/USAGE.rst +++ b/contract_time_markers/readme/USAGE.rst @@ -15,4 +15,4 @@ Examples for 1 September 2018 - #END(dd MMMM yyy)# -- 01 September 2018 - #END(EEEE dd MMMM yyy)# -- Sunday 01 September 2018 - #START(dd/MM/yyyy) -- 30/09/2018 -- #END# -- Default behaviour - Date format on based on partner language \ No newline at end of file +- #END# -- Default behaviour - Date format on based on partner language diff --git a/contract_time_markers/tests/test_contract.py b/contract_time_markers/tests/test_contract.py index a18b9224..b228dced 100644 --- a/contract_time_markers/tests/test_contract.py +++ b/contract_time_markers/tests/test_contract.py @@ -3,8 +3,6 @@ # Copyright 2018 Road-Support - Roel Adriaans # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import fields -from odoo.exceptions import ValidationError from odoo.tests import common