[FIX] resource: fix stupid typo
authorXavier ALT <xal@openerp.com>
Tue, 30 Oct 2012 19:38:23 +0000 (20:38 +0100)
committerXavier ALT <xal@openerp.com>
Tue, 30 Oct 2012 19:38:23 +0000 (20:38 +0100)
bzr revid: xal@openerp.com-20121030193823-m9fl6g3jia57w98t

addons/resource/resource.py

index 254895b..4841add 100644 (file)
@@ -215,7 +215,7 @@ class resource_calendar(osv.osv):
         """
         if not id:
             return 0.0
-        return self._internal_hours_get(cr, uid, id, dt_from, dt_to, resource_id=resource)
+        return self._interval_hours_get(cr, uid, id, dt_from, dt_to, resource_id=resource)
 
     def _interval_hours_get(self, cr, uid, id, dt_from, dt_to, resource_id=False, timezone_from_uid=None, exclude_leaves=True, context=None):
         """ Calculates the Total Working hours based on given start_date to