Another thing: if date is False, has any meaning to call "self.pool.get('account.period').find(cr, uid, dt=date, context=local_ctx)[0]"?
If not, I would refactor this to:
if not date: return False else: self.pool.get('account.period').find...
And I suppose that the try is not neccessary in this case...
« Back to merge proposal
Another thing: if date is False, has any meaning to call "self.pool. get('account. period' ).find( cr, uid, dt=date, context= local_ctx) [0]"?
If not, I would refactor this to:
if not date: pool.get( 'account. period' ).find. ..
return False
else:
self.
And I suppose that the try is not neccessary in this case...