73
73
_inherit = "account.period"
75
75
def find_fortnight(self, cr, uid, dt=None, context=None):
78
77
*) period for the asked dt (int)
79
78
*) fortnight for the asked dt (boolean):
80
79
-) False: for the 1st. fortnight
81
80
-) True: for the 2nd. fortnight.
83
82
(3,True) => a period whose id is 3 in the second fortnight
85
84
if context is None: context = {}
87
86
dt = time.strftime('%Y-%m-%d')