[IMP] hr_payroll_account: commented unrequired prev_bounds() method
bzr revid: mtr@mtr-20110420085011-sujli3n7xeab22r3
This commit is contained in:
parent
fa908b5e00
commit
eb36f0c726
|
@ -27,17 +27,17 @@ from osv import fields, osv
|
|||
from tools import config
|
||||
from tools.translate import _
|
||||
|
||||
def prev_bounds(cdate=False):
|
||||
when = date.fromtimestamp(time.mktime(time.strptime(cdate,"%Y-%m-%d")))
|
||||
this_first = date(when.year, when.month, 1)
|
||||
month = when.month + 1
|
||||
year = when.year
|
||||
if month > 12:
|
||||
month = 1
|
||||
year += 1
|
||||
next_month = date(year, month, 1)
|
||||
prev_end = next_month - timedelta(days=1)
|
||||
return this_first, prev_end
|
||||
#def prev_bounds(cdate=False):
|
||||
# when = date.fromtimestamp(time.mktime(time.strptime(cdate,"%Y-%m-%d")))
|
||||
# this_first = date(when.year, when.month, 1)
|
||||
# month = when.month + 1
|
||||
# year = when.year
|
||||
# if month > 12:
|
||||
# month = 1
|
||||
# year += 1
|
||||
# next_month = date(year, month, 1)
|
||||
# prev_end = next_month - timedelta(days=1)
|
||||
# return this_first, prev_end
|
||||
|
||||
class hr_payroll_structure(osv.osv):
|
||||
_inherit = 'hr.payroll.structure'
|
||||
|
|
Loading…
Reference in New Issue