Skip to Content
Menu
This question has been flagged
1 Reply
1293 Views

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

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
0
Oct 24
164
0
Aug 24
167
0
Jan 24
743
1
Nov 23
421
0
Jun 23
975