summaryrefslogtreecommitdiff
path: root/odoo/tools/__init__.py
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2020-05-25 03:23:28 +0000
committerOlivier Dony <odo@odoo.com>2020-06-09 00:30:55 +0000
commit1c522ee778b520a215963922f5b17d2790c31907 (patch)
tree2710c65c8d82ec4f75485acd57925acc40343dbd /odoo/tools/__init__.py
parent061ff011df43e602d06e0c680840e1e61cc648a1 (diff)
[ADD] odoo-bin cloc cli subcommand.
Odoo cloc is a tool to count the number of relevant lines written in Python, Javascript or XML. This can be used as rough metric for pricing maintenance of customizations. It has two modes of operation, either by providing a path: odoo-bin cloc -p module_path Or by providing the name of a database: odoo-bin cloc --addons-path=dirs -d database In the latter mode, only the custom code is accounted for. Both modes can be used simultaneously. Files that cannot be parsed are shown at the end of the report. Parsing can fail due to syntax errors or excessive file size. closes odoo/odoo#52635 X-original-commit: ae858c3ac66267b4726db459032b91a6be1cc1d6 Related: odoo/enterprise#11018 Signed-off-by: Olivier Dony (odo) <odo@openerp.com> Co-authored-by: Thibault Francois <tfr@odoo.com> Co-authored-by: Antoine Vandevenne (anv) <anv@odoo.com>
Diffstat (limited to 'odoo/tools/__init__.py')
-rw-r--r--odoo/tools/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/tools/__init__.py b/odoo/tools/__init__.py
index b3619c88213..1e23e499d67 100644
--- a/odoo/tools/__init__.py
+++ b/odoo/tools/__init__.py
@@ -6,6 +6,7 @@ from . import win32
from . import appdirs
from . import osutil
from . import pdf
+from . import cloc
from .config import config
from .misc import *
from .translate import *