What counts as LOC - odoo-ps/pshk-process GitHub Wiki

SAAS

Before V15: These customization will count as LOC:

  • The actions with python code (1LOC per python code line)
  • The fields with a compute method (1LOC per python code line)

Since V15: These customization will count as LOC:

  • The actions with python code (1LOC per python code line)
  • The fields with a compute method (1LOC per python code line)
  • The xml reports
  • The website views
  • The Javascript code
  • The CSS/SCSS code

This change is actually more of a fix since before customers were not paying for code that we had to maintain.

Note that all databases upgraded to V15 will now calculate their LOC with the new system. You can create a migration issue support ticket to ask for the projected new amount of LOC to communicate with the customer.

SH

All the python, javascript and xml code we write count as LOC, everything we do will add LOC including the reports, record rules, Javascript, ... Everything.