mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
committed by
Leonardo Pistone
parent
71f6c4807f
commit
583b156df7
@@ -365,8 +365,11 @@ class AccountEasyReconcile(orm.Model):
|
||||
|
||||
"""
|
||||
def _get_date(reconcile):
|
||||
return datetime.strptime(reconcile.last_history.date,
|
||||
DEFAULT_SERVER_DATETIME_FORMAT)
|
||||
if reconcile.last_history.date:
|
||||
return datetime.strptime(reconcile.last_history.date,
|
||||
DEFAULT_SERVER_DATETIME_FORMAT)
|
||||
else:
|
||||
return datetime.min
|
||||
|
||||
ids = self.search(cr, uid, [], context=context)
|
||||
assert ids, "No easy reconcile available"
|
||||
|
||||
Reference in New Issue
Block a user