Hello,
Is there anyway I can force odoo to delete all the cache? I am seeing that some of the changes I am making are not apprearing and I found out it is a cache issue, is there something I can do about it besides cleaning my browser cache?
Thanks!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
Is there anyway I can force odoo to delete all the cache? I am seeing that some of the changes I am making are not apprearing and I found out it is a cache issue, is there something I can do about it besides cleaning my browser cache?
Thanks!
Hello,
How invalidate_all() is supposed to be used ? In V11 CE, I am trying to call :
self.env.invalidate_all()
in write overload. It causes this error :
AttributeError: 'Environment' object has no attribute 'invalidate_all'
@api.multi
def write(self, vals):
ret = super(MyModel, self).write(vals)
if 'my_many2many_field' in vals:
self.env['ir.rule'].clear_caches()
return ret
I assume you are talking about the ORM cache.
Clearing caches can be performed using the invalidate_all() method of the Environment object.
https://www.odoo.com/documentation/10.0/reference/orm.html#low-level-sql
clearing caches could be done using the function clear_caches, you can inherit the function write and call it if the targeted field gets changed
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-te| Related Posts | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
0
mar. 15
|
4258 | ||
|
|
3
iul. 25
|
9512 | ||
|
|
1
mai 25
|
1708 | ||
|
|
0
ian. 24
|
2346 | ||
|
|
0
iul. 23
|
2840 |