prevent to show all level after click compute on cycle item
parent
304d54ccc6
commit
3633b10d77
|
@ -268,9 +268,7 @@ class CycleItem(Model):
|
|||
'op': line.op or "",
|
||||
'formular': line.formular or "",
|
||||
}
|
||||
|
||||
lines=[]
|
||||
print("="*20)
|
||||
total_a,total_b=0,0
|
||||
for level_id, value in levels.items():
|
||||
qty=value['total']
|
||||
|
@ -293,6 +291,9 @@ class CycleItem(Model):
|
|||
b=(qty*var_b)*sign
|
||||
b_str=(str(b) if b else "")
|
||||
total_b+=b
|
||||
else:
|
||||
# XXX prevent to show all level if not configuration from setting
|
||||
continue
|
||||
|
||||
fml=''.join([a_str, op_str, b_str])
|
||||
lines.append(('create',{
|
||||
|
|
Loading…
Reference in New Issue