[TYPO]Radicale Odoo Storage
This commit is contained in:
parent
cc23a80c19
commit
3659f811ea
@ -107,8 +107,8 @@ class Collection(BaseCollection):
|
||||
if path and not cls.user:
|
||||
cls.user = attributes[0]
|
||||
|
||||
cls.logger.warning('Discover : %s (path), %s (depth), %s (cls.user), %s (attributes)' %
|
||||
(path, depth, cls.user, attributes))
|
||||
cls.logger.debug('Discover : %s (path), %s (depth), %s (cls.user), %s (attributes)' %
|
||||
(path, depth, cls.user, attributes))
|
||||
yield cls(path)
|
||||
if len(attributes) == 1: # Got all if root is needed
|
||||
contact_path = '%sodoo-contact' % path
|
||||
@ -340,7 +340,4 @@ class Collection(BaseCollection):
|
||||
""" Return last modified """
|
||||
last = self.odoo.env[self.odoo_model].search([], limit=1, order='write_date desc')
|
||||
last_fields = self.odoo.execute(self.odoo_model, 'read', last, ['write_date'])[0]
|
||||
self.logger.debug(last_fields)
|
||||
# return strftime("%a, %d %b %Y %H:%M:%S GMT",
|
||||
# strptime(last_fields.get('write_date'), '%Y-%m-%d %H:%M:%S'))
|
||||
return str(last_fields['write_date'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user