Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1808 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
paź 24
2176
0
sie 24
1934
0
sty 24
2368
1
lis 23
2142
0
cze 23
2508