[TYPO]Radicale Odoo Storage
This commit is contained in:
parent
cc23a80c19
commit
3659f811ea
@ -107,7 +107,7 @@ class Collection(BaseCollection):
|
|||||||
if path and not cls.user:
|
if path and not cls.user:
|
||||||
cls.user = attributes[0]
|
cls.user = attributes[0]
|
||||||
|
|
||||||
cls.logger.warning('Discover : %s (path), %s (depth), %s (cls.user), %s (attributes)' %
|
cls.logger.debug('Discover : %s (path), %s (depth), %s (cls.user), %s (attributes)' %
|
||||||
(path, depth, cls.user, attributes))
|
(path, depth, cls.user, attributes))
|
||||||
yield cls(path)
|
yield cls(path)
|
||||||
if len(attributes) == 1: # Got all if root is needed
|
if len(attributes) == 1: # Got all if root is needed
|
||||||
@ -340,7 +340,4 @@ class Collection(BaseCollection):
|
|||||||
""" Return last modified """
|
""" Return last modified """
|
||||||
last = self.odoo.env[self.odoo_model].search([], limit=1, order='write_date desc')
|
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]
|
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'])
|
return str(last_fields['write_date'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user