disactive sort by on report cycle item
parent
9cf78c69d0
commit
99f27424c7
|
@ -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>
|
||||||
|
|
|
@ -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=''
|
||||||
|
|
Loading…
Reference in New Issue