odoo-addon-odoo-project-stat 16.0.1.0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/odoo_project_stat/README.rst +104 -0
- odoo/addons/odoo_project_stat/__init__.py +2 -0
- odoo/addons/odoo_project_stat/__manifest__.py +23 -0
- odoo/addons/odoo_project_stat/data/odoo_project_stat_config.xml +77 -0
- odoo/addons/odoo_project_stat/i18n/odoo_project_stat.pot +180 -0
- odoo/addons/odoo_project_stat/models/__init__.py +3 -0
- odoo/addons/odoo_project_stat/models/odoo_project.py +109 -0
- odoo/addons/odoo_project_stat/models/odoo_project_stat.py +114 -0
- odoo/addons/odoo_project_stat/models/odoo_project_stat_config.py +29 -0
- odoo/addons/odoo_project_stat/readme/CONTRIBUTORS.md +2 -0
- odoo/addons/odoo_project_stat/readme/DESCRIPTION.md +19 -0
- odoo/addons/odoo_project_stat/security/ir.model.access.csv +4 -0
- odoo/addons/odoo_project_stat/static/description/icon.png +0 -0
- odoo/addons/odoo_project_stat/static/description/index.html +450 -0
- odoo/addons/odoo_project_stat/static/img/project_pie_charts.png +0 -0
- odoo/addons/odoo_project_stat/views/odoo_project.xml +38 -0
- odoo/addons/odoo_project_stat/views/odoo_project_stat_config.xml +38 -0
- odoo/addons/odoo_project_stat/wizards/__init__.py +1 -0
- odoo/addons/odoo_project_stat/wizards/odoo_project_import_modules.py +14 -0
- odoo_addon_odoo_project_stat-16.0.1.0.1.1.dist-info/METADATA +121 -0
- odoo_addon_odoo_project_stat-16.0.1.0.1.1.dist-info/RECORD +23 -0
- odoo_addon_odoo_project_stat-16.0.1.0.1.1.dist-info/WHEEL +5 -0
- odoo_addon_odoo_project_stat-16.0.1.0.1.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
5
|
+
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
|
6
|
+
<title>README.rst</title>
|
|
7
|
+
<style type="text/css">
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
:Author: David Goodger (goodger@python.org)
|
|
11
|
+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
|
|
12
|
+
:Copyright: This stylesheet has been placed in the public domain.
|
|
13
|
+
|
|
14
|
+
Default cascading style sheet for the HTML output of Docutils.
|
|
15
|
+
Despite the name, some widely supported CSS2 features are used.
|
|
16
|
+
|
|
17
|
+
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
|
18
|
+
customize this style sheet.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/* used to remove borders from tables and images */
|
|
22
|
+
.borderless, table.borderless td, table.borderless th {
|
|
23
|
+
border: 0 }
|
|
24
|
+
|
|
25
|
+
table.borderless td, table.borderless th {
|
|
26
|
+
/* Override padding for "table.docutils td" with "! important".
|
|
27
|
+
The right padding separates the table cells. */
|
|
28
|
+
padding: 0 0.5em 0 0 ! important }
|
|
29
|
+
|
|
30
|
+
.first {
|
|
31
|
+
/* Override more specific margin styles with "! important". */
|
|
32
|
+
margin-top: 0 ! important }
|
|
33
|
+
|
|
34
|
+
.last, .with-subtitle {
|
|
35
|
+
margin-bottom: 0 ! important }
|
|
36
|
+
|
|
37
|
+
.hidden {
|
|
38
|
+
display: none }
|
|
39
|
+
|
|
40
|
+
.subscript {
|
|
41
|
+
vertical-align: sub;
|
|
42
|
+
font-size: smaller }
|
|
43
|
+
|
|
44
|
+
.superscript {
|
|
45
|
+
vertical-align: super;
|
|
46
|
+
font-size: smaller }
|
|
47
|
+
|
|
48
|
+
a.toc-backref {
|
|
49
|
+
text-decoration: none ;
|
|
50
|
+
color: black }
|
|
51
|
+
|
|
52
|
+
blockquote.epigraph {
|
|
53
|
+
margin: 2em 5em ; }
|
|
54
|
+
|
|
55
|
+
dl.docutils dd {
|
|
56
|
+
margin-bottom: 0.5em }
|
|
57
|
+
|
|
58
|
+
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
|
63
|
+
dl.docutils dt {
|
|
64
|
+
font-weight: bold }
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
div.abstract {
|
|
68
|
+
margin: 2em 5em }
|
|
69
|
+
|
|
70
|
+
div.abstract p.topic-title {
|
|
71
|
+
font-weight: bold ;
|
|
72
|
+
text-align: center }
|
|
73
|
+
|
|
74
|
+
div.admonition, div.attention, div.caution, div.danger, div.error,
|
|
75
|
+
div.hint, div.important, div.note, div.tip, div.warning {
|
|
76
|
+
margin: 2em ;
|
|
77
|
+
border: medium outset ;
|
|
78
|
+
padding: 1em }
|
|
79
|
+
|
|
80
|
+
div.admonition p.admonition-title, div.hint p.admonition-title,
|
|
81
|
+
div.important p.admonition-title, div.note p.admonition-title,
|
|
82
|
+
div.tip p.admonition-title {
|
|
83
|
+
font-weight: bold ;
|
|
84
|
+
font-family: sans-serif }
|
|
85
|
+
|
|
86
|
+
div.attention p.admonition-title, div.caution p.admonition-title,
|
|
87
|
+
div.danger p.admonition-title, div.error p.admonition-title,
|
|
88
|
+
div.warning p.admonition-title, .code .error {
|
|
89
|
+
color: red ;
|
|
90
|
+
font-weight: bold ;
|
|
91
|
+
font-family: sans-serif }
|
|
92
|
+
|
|
93
|
+
/* Uncomment (and remove this text!) to get reduced vertical space in
|
|
94
|
+
compound paragraphs.
|
|
95
|
+
div.compound .compound-first, div.compound .compound-middle {
|
|
96
|
+
margin-bottom: 0.5em }
|
|
97
|
+
|
|
98
|
+
div.compound .compound-last, div.compound .compound-middle {
|
|
99
|
+
margin-top: 0.5em }
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
div.dedication {
|
|
103
|
+
margin: 2em 5em ;
|
|
104
|
+
text-align: center ;
|
|
105
|
+
font-style: italic }
|
|
106
|
+
|
|
107
|
+
div.dedication p.topic-title {
|
|
108
|
+
font-weight: bold ;
|
|
109
|
+
font-style: normal }
|
|
110
|
+
|
|
111
|
+
div.figure {
|
|
112
|
+
margin-left: 2em ;
|
|
113
|
+
margin-right: 2em }
|
|
114
|
+
|
|
115
|
+
div.footer, div.header {
|
|
116
|
+
clear: both;
|
|
117
|
+
font-size: smaller }
|
|
118
|
+
|
|
119
|
+
div.line-block {
|
|
120
|
+
display: block ;
|
|
121
|
+
margin-top: 1em ;
|
|
122
|
+
margin-bottom: 1em }
|
|
123
|
+
|
|
124
|
+
div.line-block div.line-block {
|
|
125
|
+
margin-top: 0 ;
|
|
126
|
+
margin-bottom: 0 ;
|
|
127
|
+
margin-left: 1.5em }
|
|
128
|
+
|
|
129
|
+
div.sidebar {
|
|
130
|
+
margin: 0 0 0.5em 1em ;
|
|
131
|
+
border: medium outset ;
|
|
132
|
+
padding: 1em ;
|
|
133
|
+
background-color: #ffffee ;
|
|
134
|
+
width: 40% ;
|
|
135
|
+
float: right ;
|
|
136
|
+
clear: right }
|
|
137
|
+
|
|
138
|
+
div.sidebar p.rubric {
|
|
139
|
+
font-family: sans-serif ;
|
|
140
|
+
font-size: medium }
|
|
141
|
+
|
|
142
|
+
div.system-messages {
|
|
143
|
+
margin: 5em }
|
|
144
|
+
|
|
145
|
+
div.system-messages h1 {
|
|
146
|
+
color: red }
|
|
147
|
+
|
|
148
|
+
div.system-message {
|
|
149
|
+
border: medium outset ;
|
|
150
|
+
padding: 1em }
|
|
151
|
+
|
|
152
|
+
div.system-message p.system-message-title {
|
|
153
|
+
color: red ;
|
|
154
|
+
font-weight: bold }
|
|
155
|
+
|
|
156
|
+
div.topic {
|
|
157
|
+
margin: 2em }
|
|
158
|
+
|
|
159
|
+
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
|
160
|
+
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
|
161
|
+
margin-top: 0.4em }
|
|
162
|
+
|
|
163
|
+
h1.title {
|
|
164
|
+
text-align: center }
|
|
165
|
+
|
|
166
|
+
h2.subtitle {
|
|
167
|
+
text-align: center }
|
|
168
|
+
|
|
169
|
+
hr.docutils {
|
|
170
|
+
width: 75% }
|
|
171
|
+
|
|
172
|
+
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
|
173
|
+
clear: left ;
|
|
174
|
+
float: left ;
|
|
175
|
+
margin-right: 1em }
|
|
176
|
+
|
|
177
|
+
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
|
178
|
+
clear: right ;
|
|
179
|
+
float: right ;
|
|
180
|
+
margin-left: 1em }
|
|
181
|
+
|
|
182
|
+
img.align-center, .figure.align-center, object.align-center {
|
|
183
|
+
display: block;
|
|
184
|
+
margin-left: auto;
|
|
185
|
+
margin-right: auto;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
table.align-center {
|
|
189
|
+
margin-left: auto;
|
|
190
|
+
margin-right: auto;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.align-left {
|
|
194
|
+
text-align: left }
|
|
195
|
+
|
|
196
|
+
.align-center {
|
|
197
|
+
clear: both ;
|
|
198
|
+
text-align: center }
|
|
199
|
+
|
|
200
|
+
.align-right {
|
|
201
|
+
text-align: right }
|
|
202
|
+
|
|
203
|
+
/* reset inner alignment in figures */
|
|
204
|
+
div.align-right {
|
|
205
|
+
text-align: inherit }
|
|
206
|
+
|
|
207
|
+
/* div.align-center * { */
|
|
208
|
+
/* text-align: left } */
|
|
209
|
+
|
|
210
|
+
.align-top {
|
|
211
|
+
vertical-align: top }
|
|
212
|
+
|
|
213
|
+
.align-middle {
|
|
214
|
+
vertical-align: middle }
|
|
215
|
+
|
|
216
|
+
.align-bottom {
|
|
217
|
+
vertical-align: bottom }
|
|
218
|
+
|
|
219
|
+
ol.simple, ul.simple {
|
|
220
|
+
margin-bottom: 1em }
|
|
221
|
+
|
|
222
|
+
ol.arabic {
|
|
223
|
+
list-style: decimal }
|
|
224
|
+
|
|
225
|
+
ol.loweralpha {
|
|
226
|
+
list-style: lower-alpha }
|
|
227
|
+
|
|
228
|
+
ol.upperalpha {
|
|
229
|
+
list-style: upper-alpha }
|
|
230
|
+
|
|
231
|
+
ol.lowerroman {
|
|
232
|
+
list-style: lower-roman }
|
|
233
|
+
|
|
234
|
+
ol.upperroman {
|
|
235
|
+
list-style: upper-roman }
|
|
236
|
+
|
|
237
|
+
p.attribution {
|
|
238
|
+
text-align: right ;
|
|
239
|
+
margin-left: 50% }
|
|
240
|
+
|
|
241
|
+
p.caption {
|
|
242
|
+
font-style: italic }
|
|
243
|
+
|
|
244
|
+
p.credits {
|
|
245
|
+
font-style: italic ;
|
|
246
|
+
font-size: smaller }
|
|
247
|
+
|
|
248
|
+
p.label {
|
|
249
|
+
white-space: nowrap }
|
|
250
|
+
|
|
251
|
+
p.rubric {
|
|
252
|
+
font-weight: bold ;
|
|
253
|
+
font-size: larger ;
|
|
254
|
+
color: maroon ;
|
|
255
|
+
text-align: center }
|
|
256
|
+
|
|
257
|
+
p.sidebar-title {
|
|
258
|
+
font-family: sans-serif ;
|
|
259
|
+
font-weight: bold ;
|
|
260
|
+
font-size: larger }
|
|
261
|
+
|
|
262
|
+
p.sidebar-subtitle {
|
|
263
|
+
font-family: sans-serif ;
|
|
264
|
+
font-weight: bold }
|
|
265
|
+
|
|
266
|
+
p.topic-title {
|
|
267
|
+
font-weight: bold }
|
|
268
|
+
|
|
269
|
+
pre.address {
|
|
270
|
+
margin-bottom: 0 ;
|
|
271
|
+
margin-top: 0 ;
|
|
272
|
+
font: inherit }
|
|
273
|
+
|
|
274
|
+
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
275
|
+
margin-left: 2em ;
|
|
276
|
+
margin-right: 2em }
|
|
277
|
+
|
|
278
|
+
pre.code .ln { color: gray; } /* line numbers */
|
|
279
|
+
pre.code, code { background-color: #eeeeee }
|
|
280
|
+
pre.code .comment, code .comment { color: #5C6576 }
|
|
281
|
+
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
|
282
|
+
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
|
283
|
+
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
|
284
|
+
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
|
285
|
+
pre.code .inserted, code .inserted { background-color: #A3D289}
|
|
286
|
+
|
|
287
|
+
span.classifier {
|
|
288
|
+
font-family: sans-serif ;
|
|
289
|
+
font-style: oblique }
|
|
290
|
+
|
|
291
|
+
span.classifier-delimiter {
|
|
292
|
+
font-family: sans-serif ;
|
|
293
|
+
font-weight: bold }
|
|
294
|
+
|
|
295
|
+
span.interpreted {
|
|
296
|
+
font-family: sans-serif }
|
|
297
|
+
|
|
298
|
+
span.option {
|
|
299
|
+
white-space: nowrap }
|
|
300
|
+
|
|
301
|
+
span.pre {
|
|
302
|
+
white-space: pre }
|
|
303
|
+
|
|
304
|
+
span.problematic, pre.problematic {
|
|
305
|
+
color: red }
|
|
306
|
+
|
|
307
|
+
span.section-subtitle {
|
|
308
|
+
/* font-size relative to parent (h1..h6 element) */
|
|
309
|
+
font-size: 80% }
|
|
310
|
+
|
|
311
|
+
table.citation {
|
|
312
|
+
border-left: solid 1px gray;
|
|
313
|
+
margin-left: 1px }
|
|
314
|
+
|
|
315
|
+
table.docinfo {
|
|
316
|
+
margin: 2em 4em }
|
|
317
|
+
|
|
318
|
+
table.docutils {
|
|
319
|
+
margin-top: 0.5em ;
|
|
320
|
+
margin-bottom: 0.5em }
|
|
321
|
+
|
|
322
|
+
table.footnote {
|
|
323
|
+
border-left: solid 1px black;
|
|
324
|
+
margin-left: 1px }
|
|
325
|
+
|
|
326
|
+
table.docutils td, table.docutils th,
|
|
327
|
+
table.docinfo td, table.docinfo th {
|
|
328
|
+
padding-left: 0.5em ;
|
|
329
|
+
padding-right: 0.5em ;
|
|
330
|
+
vertical-align: top }
|
|
331
|
+
|
|
332
|
+
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
|
333
|
+
font-weight: bold ;
|
|
334
|
+
text-align: left ;
|
|
335
|
+
white-space: nowrap ;
|
|
336
|
+
padding-left: 0 }
|
|
337
|
+
|
|
338
|
+
/* "booktabs" style (no vertical lines) */
|
|
339
|
+
table.docutils.booktabs {
|
|
340
|
+
border: 0px;
|
|
341
|
+
border-top: 2px solid;
|
|
342
|
+
border-bottom: 2px solid;
|
|
343
|
+
border-collapse: collapse;
|
|
344
|
+
}
|
|
345
|
+
table.docutils.booktabs * {
|
|
346
|
+
border: 0px;
|
|
347
|
+
}
|
|
348
|
+
table.docutils.booktabs th {
|
|
349
|
+
border-bottom: thin solid;
|
|
350
|
+
text-align: left;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
|
354
|
+
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
|
355
|
+
font-size: 100% }
|
|
356
|
+
|
|
357
|
+
ul.auto-toc {
|
|
358
|
+
list-style-type: none }
|
|
359
|
+
|
|
360
|
+
</style>
|
|
361
|
+
</head>
|
|
362
|
+
<body>
|
|
363
|
+
<div class="document">
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
|
|
367
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
|
|
368
|
+
</a>
|
|
369
|
+
<div class="section" id="odoo-project-stats">
|
|
370
|
+
<h1>Odoo Project Stats</h1>
|
|
371
|
+
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
372
|
+
!! This file is generated by oca-gen-addon-readme !!
|
|
373
|
+
!! changes will be overwritten. !!
|
|
374
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
+
!! source digest: sha256:baa0b975fb4f8145367be53b53084d70771ccdcf9846a39db1dc337a6d1d111e
|
|
376
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
|
+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/module-composition-analysis/tree/16.0/odoo_project_stat"><img alt="OCA/module-composition-analysis" src="https://img.shields.io/badge/github-OCA%2Fmodule--composition--analysis-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/module-composition-analysis-16-0/module-composition-analysis-16-0-odoo_project_stat"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/module-composition-analysis&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
378
|
+
<p>This module allows to generate and render some pie charts for your Odoo
|
|
379
|
+
projects.</p>
|
|
380
|
+
<p>It consists of two pie charts on the project form view:</p>
|
|
381
|
+
<ul class="simple">
|
|
382
|
+
<li>number of installed modules</li>
|
|
383
|
+
<li>number of lines of code</li>
|
|
384
|
+
</ul>
|
|
385
|
+
<p>Both measures are split based on some criteria (configurable), by
|
|
386
|
+
default:</p>
|
|
387
|
+
<ul class="simple">
|
|
388
|
+
<li>Odoo CE</li>
|
|
389
|
+
<li>Odoo Enterprise</li>
|
|
390
|
+
<li>OCA</li>
|
|
391
|
+
<li>Community (not OCA)</li>
|
|
392
|
+
<li>Specific code</li>
|
|
393
|
+
<li>Misc. (everything not part of other criteria above)</li>
|
|
394
|
+
</ul>
|
|
395
|
+
<p>Each criteria having a rendering color used on the charts.</p>
|
|
396
|
+
<p><img alt="Project Pie Charts" src="https://raw.githubusercontent.com/OCA/module-composition-analysis/16.0/odoo_project_stat/static/img/project_pie_charts.png" /></p>
|
|
397
|
+
<p><strong>Table of contents</strong></p>
|
|
398
|
+
<div class="contents local topic" id="contents">
|
|
399
|
+
<ul class="simple">
|
|
400
|
+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
|
|
401
|
+
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
|
|
402
|
+
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
|
|
403
|
+
<li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
|
|
404
|
+
<li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
|
|
405
|
+
</ul>
|
|
406
|
+
</li>
|
|
407
|
+
</ul>
|
|
408
|
+
</div>
|
|
409
|
+
<div class="section" id="bug-tracker">
|
|
410
|
+
<h2><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h2>
|
|
411
|
+
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/module-composition-analysis/issues">GitHub Issues</a>.
|
|
412
|
+
In case of trouble, please check there if your issue has already been reported.
|
|
413
|
+
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
414
|
+
<a class="reference external" href="https://github.com/OCA/module-composition-analysis/issues/new?body=module:%20odoo_project_stat%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
|
415
|
+
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
|
416
|
+
</div>
|
|
417
|
+
<div class="section" id="credits">
|
|
418
|
+
<h2><a class="toc-backref" href="#toc-entry-2">Credits</a></h2>
|
|
419
|
+
<div class="section" id="authors">
|
|
420
|
+
<h3><a class="toc-backref" href="#toc-entry-3">Authors</a></h3>
|
|
421
|
+
<ul class="simple">
|
|
422
|
+
<li>Camptocamp</li>
|
|
423
|
+
</ul>
|
|
424
|
+
</div>
|
|
425
|
+
<div class="section" id="contributors">
|
|
426
|
+
<h3><a class="toc-backref" href="#toc-entry-4">Contributors</a></h3>
|
|
427
|
+
<ul class="simple">
|
|
428
|
+
<li>Camptocamp<ul>
|
|
429
|
+
<li>Sébastien Alix <<a class="reference external" href="mailto:seb@usr-src.org">seb@usr-src.org</a>></li>
|
|
430
|
+
</ul>
|
|
431
|
+
</li>
|
|
432
|
+
</ul>
|
|
433
|
+
</div>
|
|
434
|
+
<div class="section" id="maintainers">
|
|
435
|
+
<h3><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h3>
|
|
436
|
+
<p>This module is maintained by the OCA.</p>
|
|
437
|
+
<a class="reference external image-reference" href="https://odoo-community.org">
|
|
438
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
|
439
|
+
</a>
|
|
440
|
+
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
441
|
+
mission is to support the collaborative development of Odoo features and
|
|
442
|
+
promote its widespread use.</p>
|
|
443
|
+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/module-composition-analysis/tree/16.0/odoo_project_stat">OCA/module-composition-analysis</a> project on GitHub.</p>
|
|
444
|
+
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
|
445
|
+
</div>
|
|
446
|
+
</div>
|
|
447
|
+
</div>
|
|
448
|
+
</div>
|
|
449
|
+
</body>
|
|
450
|
+
</html>
|
|
Binary file
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<!-- Copyright 2024 Camptocamp SA
|
|
3
|
+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
|
4
|
+
<odoo>
|
|
5
|
+
|
|
6
|
+
<record id="odoo_project_view_form" model="ir.ui.view">
|
|
7
|
+
<field name="name">odoo.project.form.inherit</field>
|
|
8
|
+
<field name="model">odoo.project</field>
|
|
9
|
+
<field name="inherit_id" ref="odoo_project.odoo_project_view_form" />
|
|
10
|
+
<field name="arch" type="xml">
|
|
11
|
+
<page name="status" position="before">
|
|
12
|
+
<page
|
|
13
|
+
name="stats"
|
|
14
|
+
string="Stats"
|
|
15
|
+
attrs="{'invisible': [('chart_modules_count', '=', False), ('chart_sloc', '=', False)]}"
|
|
16
|
+
>
|
|
17
|
+
<group>
|
|
18
|
+
<group>
|
|
19
|
+
<field name="chart_modules_count" widget="plotly_chart" nolabel="1" />
|
|
20
|
+
</group>
|
|
21
|
+
<group>
|
|
22
|
+
<field name="chart_sloc" widget="plotly_chart" nolabel="1" />
|
|
23
|
+
</group>
|
|
24
|
+
</group>
|
|
25
|
+
<button
|
|
26
|
+
name="action_generate_stats"
|
|
27
|
+
type="object"
|
|
28
|
+
string="Refresh"
|
|
29
|
+
class="btn-secondary"
|
|
30
|
+
groups="odoo_repository.group_odoo_repository_user"
|
|
31
|
+
help="Useful to get accurate figures if modules have been updated in their respective repositories."
|
|
32
|
+
/>
|
|
33
|
+
</page>
|
|
34
|
+
</page>
|
|
35
|
+
</field>
|
|
36
|
+
</record>
|
|
37
|
+
|
|
38
|
+
</odoo>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<!-- Copyright 2024 Camptocamp SA
|
|
3
|
+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
|
4
|
+
<odoo>
|
|
5
|
+
|
|
6
|
+
<record id="odoo_project_stat_config_view_tree" model="ir.ui.view">
|
|
7
|
+
<field name="name">odoo.project.stat.config.tree</field>
|
|
8
|
+
<field name="model">odoo.project.stat.config</field>
|
|
9
|
+
<field name="arch" type="xml">
|
|
10
|
+
<tree editable="bottom">
|
|
11
|
+
<field name="sequence" widget="handle" />
|
|
12
|
+
<field name="name" />
|
|
13
|
+
<field name="color" widget="color" />
|
|
14
|
+
<field name="residual" />
|
|
15
|
+
<field
|
|
16
|
+
name="domain"
|
|
17
|
+
widget="domain"
|
|
18
|
+
options="{'model': 'odoo.project.module'}"
|
|
19
|
+
attrs="{'required': [('residual', '=', False)]}"
|
|
20
|
+
/>
|
|
21
|
+
</tree>
|
|
22
|
+
</field>
|
|
23
|
+
</record>
|
|
24
|
+
|
|
25
|
+
<record id="odoo_project_stat_config_action" model="ir.actions.act_window">
|
|
26
|
+
<field name="name">Project Stats</field>
|
|
27
|
+
<field name="type">ir.actions.act_window</field>
|
|
28
|
+
<field name="res_model">odoo.project.stat.config</field>
|
|
29
|
+
<field name="view_id" ref="odoo_project_stat_config_view_tree" />
|
|
30
|
+
</record>
|
|
31
|
+
|
|
32
|
+
<menuitem
|
|
33
|
+
id="odoo_project_stat_config_menu"
|
|
34
|
+
parent="odoo_repository.config_odoo_repository_menu"
|
|
35
|
+
action="odoo_project_stat_config_action"
|
|
36
|
+
/>
|
|
37
|
+
|
|
38
|
+
</odoo>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from . import odoo_project_import_modules
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Copyright 2025 Camptocamp SA
|
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
|
|
3
|
+
|
|
4
|
+
from odoo import models
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class OdooProjectImportModules(models.TransientModel):
|
|
8
|
+
_inherit = "odoo.project.import.modules"
|
|
9
|
+
|
|
10
|
+
def action_import(self):
|
|
11
|
+
res = super().action_import()
|
|
12
|
+
# Generate project stats each time we import new modules
|
|
13
|
+
self.odoo_project_id.action_generate_stats()
|
|
14
|
+
return res
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: odoo-addon-odoo_project_stat
|
|
3
|
+
Version: 16.0.1.0.1.1
|
|
4
|
+
Summary: Get some stats about your Odoo Projects.
|
|
5
|
+
Home-page: https://github.com/OCA/module-composition-analysis
|
|
6
|
+
Author: Camptocamp, Odoo Community Association (OCA)
|
|
7
|
+
Author-email: support@odoo-community.org
|
|
8
|
+
License: AGPL-3
|
|
9
|
+
Classifier: Programming Language :: Python
|
|
10
|
+
Classifier: Framework :: Odoo
|
|
11
|
+
Classifier: Framework :: Odoo :: 16.0
|
|
12
|
+
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Requires-Dist: odoo-addon-odoo-project<16.1dev,>=16.0dev
|
|
15
|
+
Requires-Dist: odoo-addon-web-widget-plotly-chart<16.1dev,>=16.0dev
|
|
16
|
+
Requires-Dist: odoo<16.1dev,>=16.0a
|
|
17
|
+
|
|
18
|
+
.. image:: https://odoo-community.org/readme-banner-image
|
|
19
|
+
:target: https://odoo-community.org/get-involved?utm_source=readme
|
|
20
|
+
:alt: Odoo Community Association
|
|
21
|
+
|
|
22
|
+
==================
|
|
23
|
+
Odoo Project Stats
|
|
24
|
+
==================
|
|
25
|
+
|
|
26
|
+
..
|
|
27
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
28
|
+
!! This file is generated by oca-gen-addon-readme !!
|
|
29
|
+
!! changes will be overwritten. !!
|
|
30
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
31
|
+
!! source digest: sha256:baa0b975fb4f8145367be53b53084d70771ccdcf9846a39db1dc337a6d1d111e
|
|
32
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
33
|
+
|
|
34
|
+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
35
|
+
:target: https://odoo-community.org/page/development-status
|
|
36
|
+
:alt: Beta
|
|
37
|
+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
|
38
|
+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
39
|
+
:alt: License: AGPL-3
|
|
40
|
+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmodule--composition--analysis-lightgray.png?logo=github
|
|
41
|
+
:target: https://github.com/OCA/module-composition-analysis/tree/16.0/odoo_project_stat
|
|
42
|
+
:alt: OCA/module-composition-analysis
|
|
43
|
+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
44
|
+
:target: https://translation.odoo-community.org/projects/module-composition-analysis-16-0/module-composition-analysis-16-0-odoo_project_stat
|
|
45
|
+
:alt: Translate me on Weblate
|
|
46
|
+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
47
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/module-composition-analysis&target_branch=16.0
|
|
48
|
+
:alt: Try me on Runboat
|
|
49
|
+
|
|
50
|
+
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
51
|
+
|
|
52
|
+
This module allows to generate and render some pie charts for your Odoo
|
|
53
|
+
projects.
|
|
54
|
+
|
|
55
|
+
It consists of two pie charts on the project form view:
|
|
56
|
+
|
|
57
|
+
- number of installed modules
|
|
58
|
+
- number of lines of code
|
|
59
|
+
|
|
60
|
+
Both measures are split based on some criteria (configurable), by
|
|
61
|
+
default:
|
|
62
|
+
|
|
63
|
+
- Odoo CE
|
|
64
|
+
- Odoo Enterprise
|
|
65
|
+
- OCA
|
|
66
|
+
- Community (not OCA)
|
|
67
|
+
- Specific code
|
|
68
|
+
- Misc. (everything not part of other criteria above)
|
|
69
|
+
|
|
70
|
+
Each criteria having a rendering color used on the charts.
|
|
71
|
+
|
|
72
|
+
|Project Pie Charts|
|
|
73
|
+
|
|
74
|
+
.. |Project Pie Charts| image:: https://raw.githubusercontent.com/OCA/module-composition-analysis/16.0/odoo_project_stat/static/img/project_pie_charts.png
|
|
75
|
+
|
|
76
|
+
**Table of contents**
|
|
77
|
+
|
|
78
|
+
.. contents::
|
|
79
|
+
:local:
|
|
80
|
+
|
|
81
|
+
Bug Tracker
|
|
82
|
+
===========
|
|
83
|
+
|
|
84
|
+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/module-composition-analysis/issues>`_.
|
|
85
|
+
In case of trouble, please check there if your issue has already been reported.
|
|
86
|
+
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
87
|
+
`feedback <https://github.com/OCA/module-composition-analysis/issues/new?body=module:%20odoo_project_stat%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
88
|
+
|
|
89
|
+
Do not contact contributors directly about support or help with technical issues.
|
|
90
|
+
|
|
91
|
+
Credits
|
|
92
|
+
=======
|
|
93
|
+
|
|
94
|
+
Authors
|
|
95
|
+
-------
|
|
96
|
+
|
|
97
|
+
* Camptocamp
|
|
98
|
+
|
|
99
|
+
Contributors
|
|
100
|
+
------------
|
|
101
|
+
|
|
102
|
+
- Camptocamp
|
|
103
|
+
|
|
104
|
+
- Sébastien Alix <seb@usr-src.org>
|
|
105
|
+
|
|
106
|
+
Maintainers
|
|
107
|
+
-----------
|
|
108
|
+
|
|
109
|
+
This module is maintained by the OCA.
|
|
110
|
+
|
|
111
|
+
.. image:: https://odoo-community.org/logo.png
|
|
112
|
+
:alt: Odoo Community Association
|
|
113
|
+
:target: https://odoo-community.org
|
|
114
|
+
|
|
115
|
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
116
|
+
mission is to support the collaborative development of Odoo features and
|
|
117
|
+
promote its widespread use.
|
|
118
|
+
|
|
119
|
+
This module is part of the `OCA/module-composition-analysis <https://github.com/OCA/module-composition-analysis/tree/16.0/odoo_project_stat>`_ project on GitHub.
|
|
120
|
+
|
|
121
|
+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|