{"action":"opened","issue":{"url":"https://api.github.com/repos/Smile-SA/odoo_addons/issues/10","labels_url":"https://api.github.com/repos/Smile-SA/odoo_addons/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Smile-SA/odoo_addons/issues/10/comments","events_url":"https://api.github.com/repos/Smile-SA/odoo_addons/issues/10/events","html_url":"https://github.com/Smile-SA/odoo_addons/issues/10","id":88851147,"number":10,"title":"[smile_followers] Error when using method decorator 'add_followers'","user":{"login":"isabellerichard","id":6168915,"avatar_url":"https://avatars.githubusercontent.com/u/6168915?v=3","gravatar_id":"","url":"https://api.github.com/users/isabellerichard","html_url":"https://github.com/isabellerichard","followers_url":"https://api.github.com/users/isabellerichard/followers","following_url":"https://api.github.com/users/isabellerichard/following{/other_user}","gists_url":"https://api.github.com/users/isabellerichard/gists{/gist_id}","starred_url":"https://api.github.com/users/isabellerichard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isabellerichard/subscriptions","organizations_url":"https://api.github.com/users/isabellerichard/orgs","repos_url":"https://api.github.com/users/isabellerichard/repos","events_url":"https://api.github.com/users/isabellerichard/events{/privacy}","received_events_url":"https://api.github.com/users/isabellerichard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-16T22:01:25Z","updated_at":"2015-06-16T22:01:25Z","closed_at":null,"body":"With last version of smile_followers and Odoo 8.0, calling the method decorator **add_followers** fails with this error:\r\n\r\n```\r\n2015-06-16 13:02:14,683 22744 CRITICAL fienhage_1805 openerp.service.server: Failed to initialize database `fienhage_1805`.\r\nTraceback (most recent call last):\r\n File \"/opt/openerp/fienhage/odoo/openerp/service/server.py\", line 924, in preload_registries\r\n   registry = RegistryManager.new(dbname, update_module=update_module)\r\n File \"/opt/openerp/fienhage/odoo/openerp/modules/registry.py\", line 370, in new\r\n   openerp.modules.load_modules(registry._db, force_demo, status, update_module)\r\n File \"/opt/openerp/fienhage/odoo/openerp/modules/loading.py\", line 351, in load_modules\r\n   force, status, report, loaded_modules, update_module)\r\n File \"/opt/openerp/fienhage/odoo/openerp/modules/loading.py\", line 255, in load_marked_modules\r\n   loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)\r\n File \"/opt/openerp/fienhage/odoo/openerp/modules/loading.py\", line 143, in load_module_graph\r\n   load_openerp_module(package.name)\r\n File \"/opt/openerp/fienhage/odoo/openerp/modules/module.py\", line 315, in load_openerp_module\r\n   __import__('openerp.addons.' + module_name)\r\n File \"/opt/openerp/fienhage/odoo/openerp/modules/module.py\", line 80, in load_module\r\n   mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)\r\n File \"/opt/openerp/fienhage/fienhage/custom-addons/fienhage_base/__init__.py\", line 26, in <module>\r\n   import invoice2\r\n File \"/opt/openerp/fienhage/fienhage/custom-addons/fienhage_base/invoice2.py\", line 6, in <module>\r\n   class StockMove(models.Model):\r\n File \"/opt/openerp/fienhage/fienhage/custom-addons/fienhage_base/invoice2.py\", line 11, in StockMove\r\n   @api.model\r\n File \"/opt/openerp/fienhage/extra_addons/smile_followers/tools/mail_followers.py\", line 79, in decorator\r\n   cls = create_or_write.im_class\r\nAttributeError: 'function' object has no attribute 'im_class'\r\n```"}}