跳至内容
菜单
此问题已终结
1 回复
1345 查看

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


形象
丢弃
相关帖文 回复 查看 活动
1
11月 21
4561
0
5月 21
2723
1
10月 20
4683
1
5月 24
4770
3
3月 24
1562