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

Hello,

We are using Odoo 13. I'm looking to filter vendor bills that are unpaid by default. Currently we have all vendor bills that are shown in a list and we have to manually apply the 'Not Paid' filter to filter by unpaid bills. I'm trying to apply the 'Not Paid' filter on the Window Actions on Vendor Bills.

Currently we have, 

Domain value: [('type','in',('in_invoice', 'in_refund'))] and 

Context value: {'search_default_partner_id': active_id, 'default_type': 'in_invoice', 'default_partner_id': active_id}


I'm changing the context value to 

{'search_default_partner_id': active_id, 'default_type': 'in_invoice', 'default_partner_id': active_id, 'search_default_invoice_payment_state': not_paid, 'search_default_not_paid': 1} 

but it doesn't apply the 'Not Paid' filter. Am I missing something in the code?


Thanks in advance.

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

Add the below to the context:

'search_default_unpaid':1



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 21
11480
0
thg 5 21
2778
0
thg 11 20
4125
1
thg 4 20
3862
3
thg 1 24
17009