Typo in server autoreload class
authorGuillermo Bisheimer <gbisheimer@bys-control.com.ar>
Fri, 20 Jun 2014 18:41:35 +0000 (15:41 -0300)
committerMartin Trigaux <mat@openerp.com>
Mon, 23 Jun 2014 11:19:38 +0000 (13:19 +0200)
openerp/service/server.py

index c0dc15c..576d55e 100644 (file)
@@ -130,14 +130,14 @@ class AutoReload(object):
         self.handler = EventHandler(self)
         self.notifier = pyinotify.Notifier(self.wm, self.handler, timeout=0)
         mask = pyinotify.IN_MODIFY | pyinotify.IN_CREATE  # IN_MOVED_FROM, IN_MOVED_TO ?
-        for path in openerp.modules.modules.ad_paths:
+        for path in openerp.modules.module.ad_paths:
             _logger.info('Watching addons folder %s', path)
             self.wm.add_watch(path, mask, rec=True)
 
     def process_data(self, files):
         xml_files = [i for i in files if i.endswith('.xml')]
         for i in xml_files:
-            for path in openerp.modules.modules.ad_paths:
+            for path in openerp.modules.module.ad_paths:
                 if i.startswith(path):
                     # find out wich addons path the file belongs to
                     # and extract it's module name