[imp] docstring

This commit is contained in:
Leonardo Pistone
2014-01-30 14:06:24 +01:00
parent 12c51fa3c4
commit 0eb7bf7825

View File

@@ -210,9 +210,7 @@ class AccountBankSatement(Model):
return super(AccountBankSatement, self).create(cr, uid, vals, context=context)
def _get_period(self, cr, uid, date, context=None):
"""
Find matching period for date, used in the statement line creation.
"""
"""Return matching period for a date."""
if context is None:
context = {}
period_obj = self.pool.get('account.period')
@@ -575,9 +573,7 @@ class AccountBankSatementLine(Model):
_inherit = "account.bank.statement.line"
def _get_period(self, cr, uid, context=None):
"""
Return a period from a given date in the context.
"""
"""Return matching period for a date."""
if context is None:
context = {}
date = context.get('date')