Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
1430 Visualizações

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?



Avatar
Cancelar
Autor Melhor resposta
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


Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
nov. 21
4638
0
mai. 21
2812
1
out. 20
4738
1
mai. 24
4846
3
mar. 24
1644