[IMP] module_analysis : allow to pass a custom domain to the analysis cron.
Usefull if we want to analyse the code for uninstalled modules for instancepull/2609/head
parent
3d2fe98f65
commit
bb94bdf05b
|
@ -90,8 +90,10 @@ class IrModuleModule(models.Model):
|
||||||
self._analyse_code()
|
self._analyse_code()
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def cron_analyse_code(self):
|
def cron_analyse_code(self, domain=None):
|
||||||
self.search([("state", "=", "installed")])._analyse_code()
|
if domain is None:
|
||||||
|
domain = [("state", "=", "installed")]
|
||||||
|
self.search(domain)._analyse_code()
|
||||||
|
|
||||||
# Custom Section
|
# Custom Section
|
||||||
def _analyse_code(self):
|
def _analyse_code(self):
|
||||||
|
|
Loading…
Reference in New Issue