disactive sort by on report cycle item

report_acc_hdcase_summary
watcha.h 2016-08-19 13:37:40 +07:00
parent 9cf78c69d0
commit 99f27424c7
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<field name="ptype_id" span="2"/> <field name="ptype_id" span="2"/>
<field name="branch_id" onchange="onchange_type" span="2"/> <field name="branch_id" onchange="onchange_type" span="2"/>
<field name="department_id" domain='[["branch_id","=",branch_id]]' span="2"/> <field name="department_id" domain='[["branch_id","=",branch_id]]' span="2"/>
<field name="sort_by" span="2"/> <!--<field name="sort_by" span="2"/>-->
<group span="6" columns="1"> <group span="6" columns="1">
<template> <template>
<div> <div>

View File

@ -278,7 +278,7 @@ class ReportCycleItem(Model):
if no==count: if no==count:
epo_items=[{'name': k, 'qty': v} for k,v in epos.items() if k ] epo_items=[{'name': k, 'qty': v} for k,v in epos.items() if k ]
#sort item #sort item
clines=sorted(clines,key=lambda cl: cl[sort_by]) #clines=sorted(clines,key=lambda cl: cl[sort_by])
no=1 no=1
index=len(nlines) index=len(nlines)
date_txt='' date_txt=''