[FIX] import_sugarcrm: set the right object for the importation
authorStephane Wirtel <stw@openerp.com>
Thu, 16 Feb 2012 17:29:41 +0000 (18:29 +0100)
committerStephane Wirtel <stw@openerp.com>
Thu, 16 Feb 2012 17:29:41 +0000 (18:29 +0100)
bzr revid: stw@openerp.com-20120216172941-21hrsi0lom3cyk0m

addons/import_sugarcrm/import_sugarcrm.py

index b3908be..d6e4386 100644 (file)
@@ -113,7 +113,7 @@ class sugar_import(import_framework):
             return False
         fields = ['name']
         data = [val]
-        return self.import_object(fields, data, 'res.partner.canal', 'crm_channel', val)
+        return self.import_object(fields, data, 'crm.case.channel', 'crm_channel', val)
     
     def get_all_states(self, external_val, country_id):
         """Get states or create new state unless country_id is False"""