mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[imp] docstring
This commit is contained in:
@@ -210,9 +210,7 @@ class AccountBankSatement(Model):
|
|||||||
return super(AccountBankSatement, self).create(cr, uid, vals, context=context)
|
return super(AccountBankSatement, self).create(cr, uid, vals, context=context)
|
||||||
|
|
||||||
def _get_period(self, cr, uid, date, context=None):
|
def _get_period(self, cr, uid, date, context=None):
|
||||||
"""
|
"""Return matching period for a date."""
|
||||||
Find matching period for date, used in the statement line creation.
|
|
||||||
"""
|
|
||||||
if context is None:
|
if context is None:
|
||||||
context = {}
|
context = {}
|
||||||
period_obj = self.pool.get('account.period')
|
period_obj = self.pool.get('account.period')
|
||||||
@@ -575,9 +573,7 @@ class AccountBankSatementLine(Model):
|
|||||||
_inherit = "account.bank.statement.line"
|
_inherit = "account.bank.statement.line"
|
||||||
|
|
||||||
def _get_period(self, cr, uid, context=None):
|
def _get_period(self, cr, uid, context=None):
|
||||||
"""
|
"""Return matching period for a date."""
|
||||||
Return a period from a given date in the context.
|
|
||||||
"""
|
|
||||||
if context is None:
|
if context is None:
|
||||||
context = {}
|
context = {}
|
||||||
date = context.get('date')
|
date = context.get('date')
|
||||||
|
|||||||
Reference in New Issue
Block a user