Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
732 มุมมอง

Hi, I am trying to create a filter for a calculated value on the stock report. As it is not stored I am having trouble finding the right commmands. the code I have for the calculated value si the following.


for record in self:
if record.qty_available - record.outgoing_qty >0:
record['x_studio_float_field_GKEA5']=0
else:
record['x_studio_float_field_GKEA5']=record.qty_available - record.outgoing_qty


How can I add a filter or order that field?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

make calculated field stored by adding necessary dependency.


Thanks

อวตาร
ละทิ้ง