Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1798 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
жовт. 24
2157
0
серп. 24
1914
0
січ. 24
2362
1
лист. 23
2128
0
черв. 23
2499