From 6a3463425a8c23f3b6ee2e43575796fbf5ad7285 Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Thu, 17 Aug 2023 16:50:31 +0200 Subject: [PATCH] Remove already applied patch stftime_format.diff --- series | 2 -- strftime_format.diff | 13 ------------- 2 files changed, 15 deletions(-) delete mode 100644 strftime_format.diff diff --git a/series b/series index 295babb..c7d351d 100644 --- a/series +++ b/series @@ -22,6 +22,4 @@ statement_of_account.diff # [account] Cumulate balance of previous fiscal years issue11731.diff # [currency] currency test don't pass when Currency Rates Source Not Ready (forex) -strftime_format.diff # [ir] Fix problem with strftime format, reducing the time needed to format standard time. When the %A or %B is not used. - counterpart_party_payment_clearing.diff # [account_payment_clearing] Add the possiblity to have a party in the counterpart move when reconcile on a payment. diff --git a/strftime_format.diff b/strftime_format.diff deleted file mode 100644 index ca5822f..0000000 --- a/strftime_format.diff +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/tryton/trytond/trytond/ir/lang.py b/tryton/trytond/trytond/ir/lang.py -index d6e61e3599..4f3954beef 100644 ---- a/tryton/trytond/trytond/ir/lang.py -+++ b/tryton/trytond/trytond/ir/lang.py -@@ -542,6 +542,8 @@ class Lang(DeactivableMixin, ModelSQL, ModelView): - if isinstance(value, datetime.date): - for f, i, klass in (('%A', 6, Day), ('%B', 1, Month)): - for field, f in [('name', f), ('abbreviation', f.lower())]: -+ if f not in format: -+ continue - locale = klass.locale(self, field=field) - format = format.replace(f, locale[value.timetuple()[i]]) - if isinstance(value, datetime.time):