Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4728 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
mag 24
23135
0
ott 22
4192
9
gen 25
12265
1
dic 20
8887
0
ago 19
100