Projet

Général

Profil

0001-settings-WORKING_DAY_CALENDAR-propagation-in-EXCEPTI.patch

Lauréline Guérin, 13 juin 2022 10:53

Télécharger (910 octets)

Voir les différences:

Subject: [PATCH] settings: WORKING_DAY_CALENDAR propagation in
 EXCEPTIONS_SOURCES (#64996)

 chrono/settings.py | 4 ++++
 1 file changed, 4 insertions(+)
chrono/settings.py
202 202
if os.path.exists(local_settings_file):
203 203
    with open(local_settings_file) as fd:
204 204
        exec(fd.read())
205

  
206
# update EXCEPTIONS_SOURCES with modified (or not) WORKING_DAY_CALENDAR
207
if EXCEPTIONS_SOURCES.get('holidays', {}) == {'class': 'workalendar.europe.France', 'label': N_('Holidays')}:
208
    EXCEPTIONS_SOURCES['holidays']['class'] = WORKING_DAY_CALENDAR
205
-