[MERGE] merged trunk.
[odoo/odoo.git] / addons / crm_partner_assign / test / test_crm_partner_assign.yml
index b2c1db4..78b23f3 100644 (file)
@@ -60,7 +60,7 @@
   Now I click on Forward button.
 -
   !python {model: crm.lead.forward.to.partner}: |
-    import tools
+    from tools import config
     vals = {
        'name': 'email',
        'email_to': 'info@axelor.com',
@@ -69,6 +69,7 @@
        'state': 'draft',
     }
     ids = self.create(cr, uid, vals, context={'active_id': ref('crm_lead_questionnaireonopenerp0'), 'active_model': 'crm.lead'})
-    assert tools.config.get('smtp_user', False), 'SMTP not configured !'
+    host = config.get('smtp_user', '127.0.0.1')
+    assert config.get(host, True), 'SMTP not configured !'
     self.action_forward(cr, uid, [ids], context={'active_id': ref('crm_lead_questionnaireonopenerp0'), 'active_model': 'crm.lead'})
-    
+