Skip to Content
Menu
This question has been flagged
1 Atsakyti
1747 Rodiniai

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

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
spal. 24
1875
0
rugp. 24
1683
0
saus. 24
2191
1
lapkr. 23
1885
0
birž. 23
2242