get lasted period
parent
9f1fe78829
commit
bb21f53e42
|
@ -41,7 +41,9 @@ class ReportLaborCost(Model):
|
||||||
report_type=defaults.get("report_type","cross")
|
report_type=defaults.get("report_type","cross")
|
||||||
print('defaults ', defaults)
|
print('defaults ', defaults)
|
||||||
yearnow=date_from.split("-")[0]
|
yearnow=date_from.split("-")[0]
|
||||||
for period in get_model('clinic.period').search_browse([['name','=',yearnow]]):
|
period_id=None
|
||||||
|
#for period in get_model('clinic.period').search_browse([['name','=',yearnow]]):
|
||||||
|
for period in get_model('clinic.period').search_browse([[]]):
|
||||||
for line in period.lines:
|
for line in period.lines:
|
||||||
if line.state=='open':
|
if line.state=='open':
|
||||||
period_id=line.id
|
period_id=line.id
|
||||||
|
|
Loading…
Reference in New Issue