unusedcode

bzr revid: fp@tinyerp.com-20111114001216-etl5g0dl3ya1xfvs
This commit is contained in:
Fabien Pinckaers 2011-11-14 01:12:16 +01:00
parent 6b90a07049
commit 1c2ab2927d
2 changed files with 3 additions and 5 deletions

View File

@ -229,11 +229,6 @@ POSTGRES_CONFDELTYPES = {
'SET DEFAULT': 'd',
}
def last_day_of_current_month():
today = datetime.date.today()
last_day = str(calendar.monthrange(today.year, today.month)[1])
return time.strftime('%Y-%m-' + last_day)
def intersect(la, lb):
return filter(lambda x: x in lb, la)

View File

@ -341,6 +341,9 @@ class YamlInterpreter(object):
self.logger.debug("RECORD_DICT %s" % record_dict)
id = self.pool.get('ir.model.data')._update(self.cr, 1, record.model, \
self.module, record_dict, record.id, noupdate=self.isnoupdate(record), mode=self.mode, context=context)
if record.test:
model.read(cr, 1, [id], context=self.context)
model.name_search(cr, 1, [('id','=',id)], context=self.context)
self.id_map[record.id] = int(id)
if config.get('import_partial'):
self.cr.commit()