[FIX]DBFilter From Config : even on conf, do not cache other domains
Because user can come with its own selected first.
This commit is contained in:
parent
8767b1aaeb
commit
f5d90d83cf
@ -27,7 +27,7 @@
|
|||||||
Also required : `proxy_mode` to `True`
|
Also required : `proxy_mode` to `True`
|
||||||
|
|
||||||
Inspired from OCA `dbfilter_from_header`.""",
|
Inspired from OCA `dbfilter_from_header`.""",
|
||||||
'version': '12.0.0.0.5',
|
'version': '12.0.0.0.6',
|
||||||
'category': 'Yaltik',
|
'category': 'Yaltik',
|
||||||
'author': 'Fabien Bourgeois',
|
'author': 'Fabien Bourgeois',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
@ -50,10 +50,10 @@ def db_filter(dbs, httprequest=None):
|
|||||||
if host == http_host:
|
if host == http_host:
|
||||||
dbs = [i for i in dbs if match(database, i)]
|
dbs = [i for i in dbs if match(database, i)]
|
||||||
break
|
break
|
||||||
|
if http_host not in http_host_resolv:
|
||||||
|
http_host_resolv[http_host] = dbs
|
||||||
else:
|
else:
|
||||||
dbs = db_filter_odoo(dbs, httprequest)
|
dbs = db_filter_odoo(dbs, httprequest)
|
||||||
if http_host not in http_host_resolv:
|
|
||||||
http_host_resolv[http_host] = dbs
|
|
||||||
else:
|
else:
|
||||||
dbs = db_filter_odoo(dbs, httprequest)
|
dbs = db_filter_odoo(dbs, httprequest)
|
||||||
return dbs
|
return dbs
|
||||||
|
Loading…
Reference in New Issue
Block a user