Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1784 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 24
2148
0
thg 8 24
1909
0
thg 1 24
2361
1
thg 11 23
2121
0
thg 6 23
2495