Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1805 Tampilan

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

Avatar
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Okt 24
2164
0
Agu 24
1916
0
Jan 24
2365
1
Nov 23
2132
0
Jun 23
2500