From be63ae43ef73e50274d38e9969dae3c7097128b0 Mon Sep 17 00:00:00 2001
From: Nicolas Wavrant <nicolas.wavrant@nexedi.com>
Date: Wed, 26 Jul 2017 15:37:16 +0200
Subject: [PATCH] erp5_payroll_l10n_fr: forces creation of id generator in
 tests

---
 .../test.erp5.testDSNSocialDeclarationReport.py                 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bt5/erp5_payroll_l10n_fr/TestTemplateItem/portal_components/test.erp5.testDSNSocialDeclarationReport.py b/bt5/erp5_payroll_l10n_fr/TestTemplateItem/portal_components/test.erp5.testDSNSocialDeclarationReport.py
index 9e081b6ff0..ebbf8b0667 100644
--- a/bt5/erp5_payroll_l10n_fr/TestTemplateItem/portal_components/test.erp5.testDSNSocialDeclarationReport.py
+++ b/bt5/erp5_payroll_l10n_fr/TestTemplateItem/portal_components/test.erp5.testDSNSocialDeclarationReport.py
@@ -53,6 +53,8 @@ class TestDSNSocialDeclarationReport(ERP5TypeTestCase):
     self.portal = self.getPortalObject()
     self.dsn_module = self.portal.getDefaultModuleValue("DSN Monthly Report")
     self.pinDateTime(DateTime(2015, 12, 01))
+    # Create the id_group 'dsn_event_counter'
+    self.portal.portal_ids.generateNewId(id_group='dsn_event_counter', id_generator='continuous_integer_increasing')
 
   def beforeTearDown(self):
     self.unpinDateTime()
-- 
2.30.9