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

Hello everyone.


I have a custom report that inherits from the class

account.report


Which has the following variable, with value true

filter_partner = True


On the screen I see the partner field ready to be used, I press it to search for a partner, I select it, the report loads but does not filter

  _get_report_values

However, I can't run the filter; Could you please guide me on how I can apply the filter: filter_partner = True or an example of this? If it is automatic, I think that perhaps the query I execute must have some field for the filter to work. Do you know which one? is?



อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด
Hello, I confirm that I managed to solve it by obtaining the property:

options.get("partner_ids")

With this and a little lambda I managed to apply the filter


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 21
4611
0
พ.ค. 21
2779
1
ต.ค. 20
4718
1
พ.ค. 24
4821
3
มี.ค. 24
1612