Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1799 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ott 24
2157
0
ago 24
1914
0
gen 24
2363
1
nov 23
2129
0
giu 23
2500