Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1310 Widoki

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?



Awatar
Odrzuć
Autor Najlepsza odpowiedź
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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 21
4496
0
maj 21
2669
1
paź 20
4609
1
maj 24
4689
3
mar 24
1499