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

Create a report that collects the names of inactive customers in the last 3 months and depends on payments and invoices

形象
丢弃
最佳答案

Hi 

You can use the following query to fetch the data in order to create a custom report

date = date.today() + relativedelta(months=-3)

"""select p.name from account_move as m inner join res_partner as p on m.partner_id = p.id where p.active=False and p.write_date::date >= '%s' """ %(date)

Regards

形象
丢弃
相关帖文 回复 查看 活动
0
10月 24
1920
0
8月 24
1726
0
1月 24
2210
1
11月 23
1924
0
6月 23
2304