Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
1777 Visninger

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

Avatar
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
okt. 24
2143
0
aug. 24
1907
0
jan. 24
2359
1
nov. 23
2121
0
jun. 23
2494