Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4579 Tampilan

Hello all, I was looking for dbfilter_from_header module, which I was using in version 11, and found only version 12. Did someone made db filtering option in version 13? Could you please share the way to do it ? 

Avatar
Buang
Jawaban Terbai

it's just monkey patching db_filter and filter database according to request header environment. 
however, HTTP layer doesn't change that much in between those versions so I think V12 module will work fine with V13 as well 
ref: https://github.com/OCA/server-tools/blob/12.0/dbfilter_from_header/override.py#L17

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Mei 24
22921
0
Okt 22
4017
9
Jan 25
11522
1
Des 20
8721
0
Agu 19
100