diff --git a/modules/price/price.py b/modules/price/price.py index 029f7ba..1251a43 100755 --- a/modules/price/price.py +++ b/modules/price/price.py @@ -71,7 +71,6 @@ class Price( def get_price(self,dt,unit,currency,last=False): price = float(0) PV = Pool().get('price.price_value') - logger.info("ASKED_PRICE_FOR:%s",dt) if self.price_values: dt = dt.strftime("%Y-%m-%d") pv = PV.search([('price','=',self.id),('price_date','=',dt)]) @@ -115,7 +114,6 @@ class Calendar(DeactivableMixin,ModelSQL,ModelView,MultiValueMixin): dt = dt.strftime("%Y-%m-%d") cl = CL.search([('calendar','=',self.id),('price_date','=',dt)]) if cl: - #logger.info("ISQUOTE:%s",cl) return False else: return True diff --git a/modules/purchase_trade/pricing.py b/modules/purchase_trade/pricing.py index 2b70a66..b4563a7 100755 --- a/modules/purchase_trade/pricing.py +++ b/modules/purchase_trade/pricing.py @@ -423,14 +423,11 @@ class Trigger(ModelSQL,ModelView): pp = PP(self.application_period) CO = Pool().get('pricing.component') co = CO(self.component) - logger.info("DELDATEEST_:%s",co) if co.line: d = co.getEstimatedTriggerPurchase(pp.trigger) else: d = co.getEstimatedTriggerSale(pp.trigger) - logger.info("DELDATEEST:%s",d) date_from,date_to,dates = pp.getDates(d) - logger.info("DELDATEEST2:%s",dates) return date_from,date_to,d,pp.include,dates def getApplicationListDates(self, cal): @@ -536,8 +533,6 @@ class Period(ModelSQL,ModelView): date_from = None date_to = None dates = [] - logger.info("GETDATES:%s",t) - logger.info("GETDATES:%s",self.every) if t: if self.every: if t: @@ -554,21 +549,18 @@ class Period(ModelSQL,ModelView): while current.month == t.month: dates.append(datetime.datetime(current.year, current.month, current.day)) current += datetime.timedelta(days=7) - logger.info("GETDATES:%s",dates) elif self.nb_quotation > 0: days_to_add = (weekday_target - t.weekday()) % 7 current = t + datetime.timedelta(days=days_to_add) while len(dates) < self.nb_quotation: dates.append(datetime.datetime(current.year, current.month, current.day)) current += datetime.timedelta(days=7) - logger.info("GETDATES:%s",dates) elif self.nb_quotation < 0: days_to_sub = (t.weekday() - weekday_target) % 7 current = t - datetime.timedelta(days=days_to_sub) while len(dates) < -self.nb_quotation: dates.append(datetime.datetime(current.year, current.month, current.day)) current -= datetime.timedelta(days=7) - logger.info("GETDATES:%s",dates) else: if self.startday == 'before':