Skip to Content
Menu
This question has been flagged
1 Atsakyti
11607 Rodiniai

I am testing a third party App on a staging branch of my Odoo.sh project.


Is there an easy way to count the lines of code so I know the maintenance cost moving forward?

Portretas
Atmesti
Best Answer

Yes.


1. Click the SHELL tab of your branch:

2. Change into the directory where your custom module is stored:

  • ls lists the contents
  • cd changes directory

You want to change directories until you are in ~/src/user

cd src
cd user


3. Run odoo with the LOC argument:


odoo-bin cloc -P .


This is the output:



For more information on what these numbers count, see https://www.odoo.com/documentation/master/developer/reference/cli.html#cloc

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
saus. 25
19668
0
liep. 21
2588
2
spal. 24
1284
0
bal. 23
2942
0
bal. 19
3314