Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1781 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
říj 24
2144
0
srp 24
1909
0
led 24
2360
1
lis 23
2121
0
čvn 23
2494