Skip to content

Instantly share code, notes, and snippets.

@moylop260
Created June 9, 2020 15:15
Show Gist options
  • Save moylop260/909b12993739a35e9094153c54c4afc3 to your computer and use it in GitHub Desktop.
Save moylop260/909b12993739a35e9094153c54c4afc3 to your computer and use it in GitHub Desktop.
# rgrep "\.clear_caches()" . --include=*.py --exclude-dir=test*
./odoo/tools/translate.py:1161: Translation.clear_caches()
./odoo/addons/base/models/ir_default.py:27: self.clear_caches()
./odoo/addons/base/models/ir_default.py:33: self.clear_caches()
./odoo/addons/base/models/ir_default.py:39: self.clear_caches()
./odoo/addons/base/models/ir_property.py:115: self.clear_caches()
./odoo/addons/base/models/ir_property.py:124: self.clear_caches()
./odoo/addons/base/models/ir_property.py:138: self.clear_caches()
./odoo/addons/base/models/res_lang.py:218: self.clear_caches()
./odoo/addons/base/models/res_lang.py:233: self.clear_caches()
./odoo/addons/base/models/res_lang.py:247: self.clear_caches()
./odoo/addons/base/models/ir_translation.py:322: self.clear_caches()
./odoo/addons/base/models/ir_translation.py:329: self.clear_caches()
./odoo/addons/base/models/ir_rule.py:118: self.clear_caches()
./odoo/addons/base/models/ir_rule.py:135: self.clear_caches()
./odoo/addons/base/models/ir_rule.py:141: self.clear_caches()
./odoo/addons/base/models/ir_rule.py:147: self.clear_caches()
./odoo/addons/base/models/ir_model.py:715: self.clear_caches() # for _existing_field_data()
./odoo/addons/base/models/ir_model.py:778: self.clear_caches() # for _existing_field_data()
./odoo/addons/base/models/ir_model.py:843: self.clear_caches()
./odoo/addons/base/models/ir_model.py:881: self.clear_caches()
./odoo/addons/base/models/ir_model.py:1477: self.clear_caches()
./odoo/addons/base/models/ir_ui_menu.py:148: self.clear_caches()
./odoo/addons/base/models/ir_ui_menu.py:156: self.clear_caches()
./odoo/addons/base/models/ir_ui_menu.py:182: self.clear_caches()
./odoo/addons/base/models/ir_ui_view.py:427: self.clear_caches()
./odoo/addons/base/models/ir_ui_view.py:443: self.clear_caches()
./odoo/addons/base/models/ir_ui_view.py:1230: self.clear_caches()
./odoo/addons/base/models/res_company.py:199: self.clear_caches()
./odoo/addons/base/models/res_company.py:204: self.clear_caches()
./odoo/addons/base/models/res_company.py:217: self.clear_caches()
./odoo/addons/base/models/res_company.py:232: self.clear_caches()
./odoo/addons/base/models/ir_module.py:312: self.clear_caches()
./odoo/addons/base/models/ir_config_parameter.py:98: self.clear_caches()
./odoo/addons/base/models/ir_config_parameter.py:103: self.clear_caches()
./odoo/addons/base/models/ir_config_parameter.py:108: self.clear_caches()
./odoo/addons/base/models/res_users.py:507: self.env['ir.default'].clear_caches()
./odoo/addons/base/models/res_users.py:512: self.env['ir.rule'].clear_caches()
./odoo/addons/base/models/res_users.py:1003: self.env['ir.actions.actions'].clear_caches()
./odoo/addons/base/models/res_users.py:1011: self.env['ir.actions.actions'].clear_caches()
./odoo/addons/base/models/res_users.py:1019: self.env['ir.actions.actions'].clear_caches()
./odoo/addons/base/models/assetsbundle.py:245: self.env['ir.qweb'].clear_caches()
./odoo/addons/base/models/ir_actions.py:61: self.clear_caches()
./odoo/addons/base/models/ir_actions.py:68: self.clear_caches()
./odoo/addons/base/models/ir_actions.py:79: self.clear_caches()
./odoo/addons/base/models/ir_actions.py:237: self.clear_caches()
./odoo/addons/base/models/ir_actions.py:242: self.clear_caches()
./odoo/modules/loading.py:142: odoo.registry(cr.dbname).clear_caches()
./odoo/modules/registry.py:350: model.clear_caches()
./odoo/modules/registry.py:397: # Bypass self.clear_caches() to avoid invalidation loops in multi-threaded
./addons/crm_reveal/models/crm_reveal_rule.py:86: self.clear_caches() # Clear the cache in order to recompute _get_active_rules
./addons/crm_reveal/models/crm_reveal_rule.py:95: self.clear_caches() # Clear the cache in order to recompute _get_active_rules
./addons/crm_reveal/models/crm_reveal_rule.py:100: self.clear_caches() # Clear the cache in order to recompute _get_active_rules
./addons/mail/models/mail_message_subtype.py:46: self.clear_caches()
./addons/mail/models/mail_message_subtype.py:51: self.clear_caches()
./addons/mail/models/mail_message_subtype.py:56: self.clear_caches()
./addons/website/models/ir_ui_view.py:164: self.clear_caches()
./addons/website/models/website.py:154: self.env['ir.qweb'].clear_caches()
./addons/web_editor/controllers/main.py:459: request.env["ir.qweb"].clear_caches()
./addons/base_import/models/base_import.py:919: self.pool.clear_caches()
./addons/product/models/product.py:349: self.clear_caches()
./addons/product/models/product.py:370: self.clear_caches()
./addons/product/models/product.py:376: self.clear_caches()
./addons/product/models/product.py:398: self.clear_caches()
./addons/base_sparse_field/models/models.py:57: self.clear_caches()
./addons/decimal_precision/models/decimal_precision.py:27: self.clear_caches()
./addons/decimal_precision/models/decimal_precision.py:32: self.clear_caches()
./addons/decimal_precision/models/decimal_precision.py:38: self.clear_caches()
./addons/decimal_precision/models/decimal_precision.py:44: self.clear_caches()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment