Browse Source

[NEW][8.0] portal_welcome_email_template: fix test

pull/42/head
Sergio Incaser 9 years ago
parent
commit
ecfe114eb5
  1. 8
      portal_welcome_email_template/tests/test_portal_welcome_email_template.py

8
portal_welcome_email_template/tests/test_portal_welcome_email_template.py

@ -10,12 +10,16 @@ class TestWelcomeEmailTemplate(TransactionCase):
def setUp(self):
super(TestWelcomeEmailTemplate, self).setUp()
self.partner_obj = self.env['res.partner']
self.partner = self.env.ref('base.res_partner_address_4')
partner_obj = self.env['res.partner']
self.partner = partner_obj.create({
'name': 'partner_test',
'email': 'test@example.com',
})
self.wiz_portal_access = self.env['portal.wizard'].create({
'user_ids': [(0, 0, {
'partner_id': self.partner.id,
'email': self.partner.email,
'in_portal': True,
})],
})

Loading…
Cancel
Save