From 0286a865f3c4597829d3fc818a4e4bedc883ab99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agathe=20Moll=C3=A9?= Date: Thu, 16 Jul 2015 15:17:53 -0400 Subject: [PATCH] [FIX] Fix test bug due to module mail not loaded yet --- super_calendar/tests/test_super_calendar.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/super_calendar/tests/test_super_calendar.py b/super_calendar/tests/test_super_calendar.py index 8087e09be..aa5c57775 100644 --- a/super_calendar/tests/test_super_calendar.py +++ b/super_calendar/tests/test_super_calendar.py @@ -47,10 +47,9 @@ class TestSuperCalendar(TransactionCase): self.ModelFieldsObj = self.env['ir.model.fields'] self.ModelObj = self.env['ir.model'] - self.partner_A = self.PartnerObj.create({ - 'name': 'Partner A', + self.partner_A = self.env.ref("base.main_partner") + self.partner_A.write({ 'date': (datetime.today() + relativedelta(days=3)), - 'email': 'Partner A email' }) self.super_calendar_configurator = \