@ -0,0 +1,46 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-OPL--1-red.svg |
||||
|
:target: https://www.odoo.com/documentation/18.0/legal/licenses.html#odoo-apps |
||||
|
:alt: License: OPL-1 |
||||
|
|
||||
|
Odoo Health Report |
||||
|
================= |
||||
|
This module allows you to display Odoo app module details and print them as a PDF report. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
* No additional configurations needed |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
License |
||||
|
======= |
||||
|
Odoo Proprietary License v1.0 (OPL-1) |
||||
|
(https://www.odoo.com/documentation/18.0/legal/licenses.html#odoo-apps) |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Contact: odoo@cybrosys.com |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
* Website : https://cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
###################################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) |
||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies of the Software |
||||
|
# or modified copies of the Software. |
||||
|
# |
||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. |
||||
|
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
||||
|
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
||||
|
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
||||
|
# DEALINGS IN THE SOFTWARE. |
||||
|
# |
||||
|
###################################################################################### |
||||
|
from . import models |
||||
|
from . import reports |
@ -0,0 +1,68 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
###################################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) |
||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies of the Software |
||||
|
# or modified copies of the Software. |
||||
|
# |
||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. |
||||
|
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
||||
|
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
||||
|
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
||||
|
# DEALINGS IN THE SOFTWARE. |
||||
|
# |
||||
|
###################################################################################### |
||||
|
{ |
||||
|
'name': 'Odoo Health Report', |
||||
|
'version': '18.0.1.0.1', |
||||
|
'category': 'Productivity', |
||||
|
'summary': "Odoo Module Health Monitoring Tool", |
||||
|
'description': 'Displays odoo apps report in the menu and as a PDF report.', |
||||
|
'license': 'OPL-1', |
||||
|
'author': "Cybrosys Techno Solutions", |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'company': "Cybrosys Techno Solutions", |
||||
|
'maintainer': "Cybrosys Techno Solutions", |
||||
|
'depends': ['base', 'web'], |
||||
|
'external_dependencies': { |
||||
|
'python': [ |
||||
|
'isort', |
||||
|
'black', |
||||
|
'bandit', |
||||
|
'radon', |
||||
|
'pylint', |
||||
|
'flake8' |
||||
|
], |
||||
|
}, |
||||
|
'data': [ |
||||
|
'security/ir.model.access.csv', |
||||
|
'reports/ir_actions_report.xml', |
||||
|
'reports/odoo_health_report.xml', |
||||
|
'views/odoo_health_report_menus.xml', |
||||
|
], |
||||
|
'assets': { |
||||
|
'web.assets_backend': [ |
||||
|
'https://cdn.jsdelivr.net/npm/chart.js', |
||||
|
'https://cdnjs.cloudflare.com/ajax/libs/iconify/2.0.0/iconify.min.js', |
||||
|
'https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap.css', |
||||
|
'odoo_health_report/static/src/css/main.css', |
||||
|
'odoo_health_report/static/src/js/module_quality.js', |
||||
|
'odoo_health_report/static/src/js/health_dashboard.js', |
||||
|
'odoo_health_report/static/src/js/dashboard_wrapper.js', |
||||
|
'odoo_health_report/static/src/xml/module_quality.xml', |
||||
|
'odoo_health_report/static/src/xml/health_dashboard.xml', |
||||
|
'odoo_health_report/static/src/xml/dashboard_wrapper.xml', |
||||
|
], |
||||
|
}, |
||||
|
'images': ['static/description/banner.png'], |
||||
|
'application': True, |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
## Module <odoo_health_report> |
||||
|
|
||||
|
#### 02.07.2025 |
||||
|
#### Version 18.0.1.0.1 |
||||
|
#### ADD |
||||
|
- Initial Commit for Odoo Health Report |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
###################################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) |
||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies of the Software |
||||
|
# or modified copies of the Software. |
||||
|
# |
||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. |
||||
|
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
||||
|
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
||||
|
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
||||
|
# DEALINGS IN THE SOFTWARE. |
||||
|
# |
||||
|
###################################################################################### |
||||
|
from . import module_quality_package |
@ -0,0 +1,92 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
###################################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) |
||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies of the Software |
||||
|
# or modified copies of the Software. |
||||
|
# |
||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. |
||||
|
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
||||
|
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
||||
|
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
||||
|
# DEALINGS IN THE SOFTWARE. |
||||
|
# |
||||
|
###################################################################################### |
||||
|
|
||||
|
from odoo import api, models |
||||
|
from .check_python_violations import installed_modules, count_module_lines, module_and_icons, violations_report, get_violations |
||||
|
|
||||
|
|
||||
|
class ModuleQuality(models.AbstractModel): |
||||
|
"""Class for analyzing the quality of installed modules""" |
||||
|
_name = 'module.quality.package' |
||||
|
_description = "Module Quality Metrics" |
||||
|
|
||||
|
def get_installed_modules(self): |
||||
|
"""Function to fetch installed modules""" |
||||
|
return installed_modules(self) |
||||
|
|
||||
|
@api.model |
||||
|
def count_lines_of_code_in_modules(self): |
||||
|
"""Count lines of Python, JavaScript, and XML code in all installed Odoo modules.""" |
||||
|
return count_module_lines(self) |
||||
|
|
||||
|
@api.model |
||||
|
def fields_and_apps_overview(self): |
||||
|
"""Get the count of fields in database""" |
||||
|
# apps in percentage |
||||
|
all_apps = self.env['ir.module.module'].search_count([]) |
||||
|
installed_apps = self.env['ir.module.module'].search_count([('state', '=', 'installed')]) |
||||
|
percentage = (installed_apps/all_apps) * 100 |
||||
|
|
||||
|
total = self.env['ir.model.fields'].search([]) |
||||
|
non_stored = len(total.filtered(lambda x: not x.store)) |
||||
|
model_stored = len(total.filtered(lambda x: x.store)) |
||||
|
|
||||
|
return { |
||||
|
"critical_overview": { |
||||
|
"overall_percentage": { |
||||
|
"label": "Overall Apps Installed ratio", |
||||
|
"value": round(percentage, 2), |
||||
|
"description": "Displays the percentage of installed apps in Odoo compared to the total available apps." |
||||
|
}, |
||||
|
"total_fields": { |
||||
|
"label": "Total fields", |
||||
|
"value": len(total), |
||||
|
"description": "shows the total number of fields", |
||||
|
}, |
||||
|
"stored": { |
||||
|
"label": "Stored fields", |
||||
|
"value": model_stored, |
||||
|
"description": |
||||
|
"Shows the total count of stored fields in the database", |
||||
|
}, |
||||
|
"non_stored": { |
||||
|
"label": "Non stored fields", |
||||
|
"value": non_stored, |
||||
|
"description": "Shows the total count of non-stored fields in the database", |
||||
|
}, |
||||
|
}, |
||||
|
} |
||||
|
|
||||
|
@api.model |
||||
|
def get_module_and_icons(self): |
||||
|
"""Retrieve all custom module name and icon as a dictionary""" |
||||
|
return module_and_icons(self) |
||||
|
|
||||
|
@api.model |
||||
|
def check_violations_report(self, module): |
||||
|
"""Check the violations for PDF report""" |
||||
|
return violations_report(self, module) |
||||
|
|
||||
|
@api.model |
||||
|
def check_violations(self, module): |
||||
|
"""Check the violations and standards""" |
||||
|
return get_violations(module) |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
###################################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) |
||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies of the Software |
||||
|
# or modified copies of the Software. |
||||
|
# |
||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. |
||||
|
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
||||
|
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
||||
|
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
||||
|
# DEALINGS IN THE SOFTWARE. |
||||
|
# |
||||
|
###################################################################################### |
||||
|
from . import odoo_health_report |
@ -0,0 +1,28 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<record id="paperformat_report" model="report.paperformat"> |
||||
|
<field name="name">A4 Health Report</field> |
||||
|
<field name="default" eval="False"/> |
||||
|
<field name="format">custom</field> |
||||
|
<field name="page_height">297</field> |
||||
|
<field name="page_width">210</field> |
||||
|
<field name="orientation">Portrait</field> |
||||
|
<field name="margin_top">10.00</field> |
||||
|
<field name="margin_bottom">10.00</field> |
||||
|
<field name="margin_left">10.0</field> |
||||
|
<field name="margin_right">10.0</field> |
||||
|
<field name="header_line" eval="False"/> |
||||
|
<field name="header_spacing">35</field> |
||||
|
<field name="dpi">125</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="action_odoo_health_report" model="ir.actions.report"> |
||||
|
<field name="name">Odoo Health Report</field> |
||||
|
<field name="model">module.quality.package</field> |
||||
|
<field name="report_type">qweb-pdf</field> |
||||
|
<field name="report_name">odoo_health_report.odoo_health_report</field> |
||||
|
<field name="report_file">odoo_health_report.odoo_health_report</field> |
||||
|
<field name="paperformat_id" ref="odoo_health_report.paperformat_report"/> |
||||
|
<field name="print_report_name">Odoo Health Report</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,61 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
###################################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) |
||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies of the Software |
||||
|
# or modified copies of the Software. |
||||
|
# |
||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. |
||||
|
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
||||
|
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
||||
|
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
||||
|
# DEALINGS IN THE SOFTWARE. |
||||
|
# |
||||
|
###################################################################################### |
||||
|
import copy |
||||
|
|
||||
|
from odoo import models, api |
||||
|
|
||||
|
|
||||
|
class OdooHealthReport(models.AbstractModel): |
||||
|
_name = "report.odoo_health_report.odoo_health_report" |
||||
|
_description = "Odoo Health Report" |
||||
|
|
||||
|
@api.model |
||||
|
def _get_report_values(self, docids, data=None): |
||||
|
module_quality_dict = {} |
||||
|
data_dict = data.get('context', {}).get('data') or data |
||||
|
if 'module' in data_dict.get('selected'): |
||||
|
ModuleQualityPackage = self.env['module.quality.package'] |
||||
|
module_quality_dict['field_details'] = ModuleQualityPackage.fields_and_apps_overview() |
||||
|
module_quality_dict['count_lines'] = ModuleQualityPackage.count_lines_of_code_in_modules() |
||||
|
|
||||
|
selected_modules = [key for key, value in data_dict.get('module_selected', {}).items() if value] |
||||
|
|
||||
|
violations_list = [] |
||||
|
if selected_modules: |
||||
|
for selected_module in selected_modules: |
||||
|
module_violations = ModuleQualityPackage.check_violations_report(selected_module) |
||||
|
violations_list.append(copy.deepcopy(module_violations)) |
||||
|
else: |
||||
|
all_installed_modules = ModuleQualityPackage.get_installed_modules().mapped('name') |
||||
|
for module in all_installed_modules: |
||||
|
violations_list.append(ModuleQualityPackage.check_violations_report(module)) |
||||
|
module_quality_dict['violations'] = violations_list |
||||
|
else: |
||||
|
module_quality_dict = None |
||||
|
|
||||
|
return { |
||||
|
'module_quality': module_quality_dict, |
||||
|
'doc_ids': docids, |
||||
|
'doc_model': 'module.quality', |
||||
|
'docs': self, |
||||
|
'selected_module': selected_modules |
||||
|
} |
@ -0,0 +1,180 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<template id="odoo_health_report" name="Odoo Health Report"> |
||||
|
<t t-call="web.html_container"> |
||||
|
<t t-call="web.external_layout"> |
||||
|
<div class="footer"> |
||||
|
<p>Cybrosys Technologies | www.cybrosys.com | info@cybrosys.com</p> |
||||
|
</div> |
||||
|
<body style="background-color: beige; display: flex; justify-content: center; align-items: center; flex-flow: column; gap: 2rem; font-family: 'Public Sans', sans-serif; font-size: 1rem;"> |
||||
|
<main style="width: 21cm; height: 29.7cm; background-color: white; padding: 25px; position: relative;"> |
||||
|
<!-- Left Top Corner Decoration --> |
||||
|
<img src="/odoo_health_report/static/src/assets/images/icons_report/left.svg" alt="" style="position: absolute; top: 0; left: 0;"/> |
||||
|
<section> |
||||
|
<t t-if="module_quality"> |
||||
|
<t t-set="field_details" t-value="module_quality['field_details']"/> |
||||
|
<t t-set="count_lines" t-value="module_quality['count_lines']"/> |
||||
|
<t t-set="violations" t-value="module_quality['violations']"/> |
||||
|
|
||||
|
<!-- Header Light Blue Section --> |
||||
|
<div style="page-break-before: always; background-color: #96c0ff; text-align: center; padding: 15px 0;"> |
||||
|
<img src="/odoo_health_report/static/src/assets/images/logo/logo.svg" alt="" width="250"/> |
||||
|
</div> |
||||
|
<!-- Dark Blue Title Section --> |
||||
|
<div style="background-color: #0047b3; color: white;"> |
||||
|
<h3 style="margin: 0; text-align: center; padding: 15px 0; font-size: 1rem;"> |
||||
|
Module Quality Report |
||||
|
</h3> |
||||
|
</div> |
||||
|
<table style="width: 100%; border-collapse: collapse; margin: 15px 0;"> |
||||
|
<tr> |
||||
|
<!-- Critical Overview --> |
||||
|
<td style="width: 40%; padding: 10px; vertical-align: top;"> |
||||
|
<div style="background: url('/odoo_health_report/static/src/assets/images/icons_report/box.png') no-repeat; background-size: cover; border-radius: 15px; color: white; padding: 20px; position: relative; height: 135px;width: 100%;"> |
||||
|
<h5 style="margin: 0; font-size: 12pt; font-weight: normal;color: white;">Apps installed ratio</h5> |
||||
|
<img src="/odoo_health_report/static/src/assets/images/icons_report/graph.png" alt="" style="width: 155px; position: absolute; left: 16px; top: 52px;"/> |
||||
|
<h6 style="position: absolute; bottom: 10px; left: 40px; font-size: 10pt; margin: 0;color: white;"> |
||||
|
Overall <span style="font-weight: bold;"><t t-esc="field_details['critical_overview']['overall_percentage']['value']"/>%</span> |
||||
|
</h6> |
||||
|
</div> |
||||
|
</td> |
||||
|
<!-- Fields --> |
||||
|
<td style="width: 60%;"> |
||||
|
<table style="width: 100%; border-collapse: collapse;"> |
||||
|
<tr> |
||||
|
<td style="padding: 10px; width: 33.33%;"> |
||||
|
<div style="background: #d9e8ff; border-radius: 15px; padding: 15px; position: relative; height: 135px;"> |
||||
|
<h3 style="margin-top: 30px; color: #7b7b7b; font-size: 10pt;">Total Fields</h3> |
||||
|
<span style="position: absolute; right: 5px; top: 5px; background: #2b7fff; padding: 5px; border-radius: 40%; width: 40px; height: 40px; text-align: center;"> |
||||
|
<img src="/odoo_health_report/static/src/assets/images/icons_report/globe.svg" alt="" style="width: 25px; top: 8px;position: absolute; left: 8px;" /> |
||||
|
</span> |
||||
|
<p style="margin: 8px 0; font-size: 10pt; color: black; font-weight: bold;"> |
||||
|
<t t-esc="field_details['critical_overview']['total_fields']['value']"/> |
||||
|
</p> |
||||
|
</div> |
||||
|
</td> |
||||
|
<td style="padding: 10px; width: 33.33%;"> |
||||
|
<div style="background: #d9e8ff; border-radius: 15px; padding: 15px; position: relative; height: 135px;"> |
||||
|
<h3 style="margin-top: 30px; color: #7b7b7b; font-size: 10pt;">Stored Fields</h3> |
||||
|
<span style="position: absolute; right: 5px; top: 5px; background: #2b7fff; padding: 5px; border-radius: 40%; width: 40px; height: 40px; text-align: center;"> |
||||
|
<img src="/odoo_health_report/static/src/assets/images/icons_report/note.svg" alt="" style="width: 25px; top: 8px;position: absolute; left: 8px;"/> |
||||
|
</span> |
||||
|
<p style="margin: 8px 0; font-size: 10pt; color: black; font-weight: bold;"> |
||||
|
<t t-esc="field_details['critical_overview']['stored']['value']"/> |
||||
|
</p> |
||||
|
</div> |
||||
|
</td> |
||||
|
<td style="padding: 10px; width: 33.33%;"> |
||||
|
<div style="background: #d9e8ff; border-radius: 15px; padding: 15px; position: relative; height: 135px;"> |
||||
|
<h3 style="margin-top: 30px; color: #7b7b7b; font-size: 10pt;">Non-Stored Fields</h3> |
||||
|
<span style="position: absolute; right: 5px; top: 5px; background: #2b7fff; padding: 5px; border-radius: 40%; width: 40px; height: 40px; text-align: center;"> |
||||
|
<img src="/odoo_health_report/static/src/assets/images/icons_report/hour-glass.svg" alt="" style="width: 25px; top: 8px;position: absolute; left: 8px;"/> |
||||
|
</span> |
||||
|
<p style="margin: 8px 0; font-size: 10pt; color: black; font-weight: bold;"> |
||||
|
<t t-esc="field_details['critical_overview']['non_stored']['value']"/> |
||||
|
</p> |
||||
|
</div> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
<section> |
||||
|
<h3>Module Lines Of Code</h3> |
||||
|
<t t-foreach="count_lines.get('result')" t-as="author"> |
||||
|
<h3 style="font-size: 1rem; color: #333; margin: 0; margin-bottom: 10px"> |
||||
|
<t t-esc="author"/> |
||||
|
</h3> |
||||
|
<table style="border-collapse: collapse; width: 100%; font-size: 0.8rem; border-radius: 10px; overflow: hidden; box-shadow: 0px 0px 20px rgb(0 0 0 / 5%);"> |
||||
|
<thead style="background-color: #ddf66b; color: #333"> |
||||
|
<th style="text-align: left; padding: 10px">Module</th> |
||||
|
<th style="text-align: center; padding: 10px">Technical Name</th> |
||||
|
<th style="text-align: center; padding: 10px">Java Script Lines</th> |
||||
|
<th style="text-align: center; padding: 10px">Python Lines</th> |
||||
|
<th style="padding: 10px">XML Lines</th> |
||||
|
</thead> |
||||
|
<t t-foreach="count_lines['result'].get(author)" t-as="author_module"> |
||||
|
<tbody> |
||||
|
<tr style="border-bottom: 1px solid #e9e9e9"> |
||||
|
<td style="padding: 10px"> |
||||
|
<t t-esc="author_module['module_name']"/> |
||||
|
</td> |
||||
|
<td style="text-align: center; padding: 10px"> |
||||
|
<t t-esc="author_module['technical_name']"/> |
||||
|
</td> |
||||
|
<td style="text-align: center; padding: 10px"> |
||||
|
<t t-esc="author_module['py_lines']"/> |
||||
|
</td> |
||||
|
<td style="text-align: center; padding: 10px"> |
||||
|
<t t-esc="author_module['js_lines']"/> |
||||
|
</td> |
||||
|
<td style="text-align: center; padding: 10px"> |
||||
|
<t t-esc="author_module['xml_lines']"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</tbody> |
||||
|
</t> |
||||
|
</table> |
||||
|
</t> |
||||
|
</section> |
||||
|
<section> |
||||
|
<t t-if="violations"> |
||||
|
<t t-foreach="violations" t-as="violation_module"> |
||||
|
<br/><hr/> |
||||
|
<h3>Violations of <t t-esc="violation_module['module']"/> |
||||
|
</h3> |
||||
|
<t t-foreach="violation_module['violations']" t-as="violations_categ"> |
||||
|
|
||||
|
<!-- Style & Linting Check --> |
||||
|
<t t-if="violations_categ == 'style_lint'"> |
||||
|
<h3 style="font-size: 1rem; color: #333; margin: 0; margin-bottom: 10px; font-weight: 700;"> |
||||
|
Style & Linting Check |
||||
|
</h3> |
||||
|
<table style="border-collapse: collapse; width: 100%; font-size: 0.8rem; border-radius: 10px; overflow: hidden; box-shadow: 0px 0px 20px rgb(0 0 0 / 5%);"> |
||||
|
<thead style="background-color: #ddf66b; color: #333"> |
||||
|
<th style="text-align: left; padding: 10px">File Name</th> |
||||
|
<th style="text-align: center; padding: 10px">Line</th> |
||||
|
<th style="text-align: left; padding: 10px">Violation Message</th> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<tr t-foreach="violation_module['violations']['style_lint']" t-as="selected" style="border-bottom: 1px solid #e9e9e9"> |
||||
|
<td style="padding: 10px" t-esc="selected['file_name']"/> |
||||
|
<td style="text-align: center; padding: 10px" t-esc="selected['line_number']"/> |
||||
|
<td style="text-align: left; padding: 10px; color: #8B0000;" t-esc="selected['violation_message']"/> |
||||
|
</tr> |
||||
|
</tbody> |
||||
|
</table><br/> |
||||
|
</t> |
||||
|
|
||||
|
<!-- Code Formatting Check --> |
||||
|
<t t-elif="violations_categ == 'code_format'"> |
||||
|
<h3 style="font-size: 1rem; color: #333; margin: 0; margin-bottom: 10px; font-weight: 700;"> |
||||
|
Code Formatting Check |
||||
|
</h3> |
||||
|
<table style="border-collapse: collapse; width: 100%; font-size: 0.8rem; border-radius: 10px; overflow: hidden; box-shadow: 0px 0px 20px rgb(0 0 0 / 5%);"> |
||||
|
<thead style="background-color: #ddf66b; color: #333"> |
||||
|
<th style="text-align: left; padding: 10px">File Name</th> |
||||
|
<th style="text-align: left; padding: 10px">Action</th> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<tr t-foreach="violation_module['violations']['code_format']" t-as="selected" style="border-bottom: 1px solid #e9e9e9"> |
||||
|
<td style="padding: 10px" t-esc="selected[1]"/> |
||||
|
<td style="text-align: left; padding: 10px" t-esc="selected[0]"/> |
||||
|
</tr> |
||||
|
</tbody> |
||||
|
</table><br/> |
||||
|
</t> |
||||
|
|
||||
|
</t> |
||||
|
</t> |
||||
|
</t> |
||||
|
</section> |
||||
|
</t> |
||||
|
</section> |
||||
|
</main> |
||||
|
</body> |
||||
|
</t> |
||||
|
</t> |
||||
|
</template> |
||||
|
</odoo> |
|
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 738 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 926 B |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 800 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 912 KiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 282 KiB |
After Width: | Height: | Size: 186 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 108 KiB |
After Width: | Height: | Size: 120 KiB |
After Width: | Height: | Size: 131 KiB |
After Width: | Height: | Size: 157 KiB |
After Width: | Height: | Size: 772 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 239 B |
After Width: | Height: | Size: 356 B |
After Width: | Height: | Size: 357 B |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 468 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 79 KiB |