odoo-addon-mis-builder 17.0.1.0.4.1__py3-none-any.whl → 17.0.1.1.0__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/mis_builder/README.rst +396 -400
- odoo/addons/mis_builder/__manifest__.py +1 -1
- odoo/addons/mis_builder/i18n/mis_builder.pot +5 -0
- odoo/addons/mis_builder/models/mis_report_style.py +4 -1
- odoo/addons/mis_builder/static/description/index.html +46 -50
- odoo/addons/mis_builder/tests/test_data_sources.py +8 -0
- odoo_addon_mis_builder-17.0.1.1.0.dist-info/METADATA +783 -0
- {odoo_addon_mis_builder-17.0.1.0.4.1.dist-info → odoo_addon_mis_builder-17.0.1.1.0.dist-info}/RECORD +10 -10
- odoo_addon_mis_builder-17.0.1.0.4.1.dist-info/METADATA +0 -787
- {odoo_addon_mis_builder-17.0.1.0.4.1.dist-info → odoo_addon_mis_builder-17.0.1.1.0.dist-info}/WHEEL +0 -0
- {odoo_addon_mis_builder-17.0.1.0.4.1.dist-info → odoo_addon_mis_builder-17.0.1.1.0.dist-info}/top_level.txt +0 -0
@@ -1433,6 +1433,11 @@ msgstr ""
|
|
1433
1433
|
msgid "Style name"
|
1434
1434
|
msgstr ""
|
1435
1435
|
|
1436
|
+
#. module: mis_builder
|
1437
|
+
#: model:ir.model.constraint,message:mis_builder.constraint_mis_report_style_style_name_uniq
|
1438
|
+
msgid "Style name should be unique"
|
1439
|
+
msgstr ""
|
1440
|
+
|
1436
1441
|
#. module: mis_builder
|
1437
1442
|
#: model:ir.model.fields,field_description:mis_builder.field_mis_report__subkpi_ids
|
1438
1443
|
msgid "Sub KPI"
|
@@ -84,7 +84,6 @@ class MisReportKpiStyle(models.Model):
|
|
84
84
|
}
|
85
85
|
|
86
86
|
# style name
|
87
|
-
# TODO enforce uniqueness
|
88
87
|
name = fields.Char(string="Style name", required=True)
|
89
88
|
|
90
89
|
# color
|
@@ -133,6 +132,10 @@ class MisReportKpiStyle(models.Model):
|
|
133
132
|
hide_always_inherit = fields.Boolean(default=True)
|
134
133
|
hide_always = fields.Boolean(default=False)
|
135
134
|
|
135
|
+
_sql_constraints = [
|
136
|
+
("style_name_uniq", "unique(name)", "Style name should be unique")
|
137
|
+
]
|
138
|
+
|
136
139
|
@api.model
|
137
140
|
def merge(self, styles):
|
138
141
|
"""Merge several styles, giving priority to the last.
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
368
368
|
!! changes will be overwritten. !!
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
370
|
-
!! source digest: sha256:
|
370
|
+
!! source digest: sha256:15b809694d0df33ce04aec8e8ed16625a3442496a11aa63c0da77e303caf1abc
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
372
372
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/mis-builder/tree/17.0/mis_builder"><img alt="OCA/mis-builder" src="https://img.shields.io/badge/github-OCA%2Fmis--builder-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/mis-builder-17-0/mis-builder-17-0-mis_builder"><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/mis-builder&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
373
373
|
<p>This module allows you to build Management Information Systems
|
@@ -454,8 +454,8 @@ time independent.</li>
|
|
454
454
|
<p><img alt="image1" src="https://raw.githubusercontent.com/OCA/mis-builder/10.0/mis_builder/static/description/ex_report_template.png" /></p>
|
455
455
|
<ul class="simple">
|
456
456
|
<li>Then in Accounting > Reports > MIS Reporting > MIS Reports you can
|
457
|
-
create report instance by binding the templates to time periods,
|
458
|
-
|
457
|
+
create report instance by binding the templates to time periods, hence
|
458
|
+
defining the columns of your reports.</li>
|
459
459
|
</ul>
|
460
460
|
<p><img alt="image2" src="https://raw.githubusercontent.com/OCA/mis-builder/10.0/mis_builder/static/description/ex_report_settings.png" /></p>
|
461
461
|
<ul class="simple">
|
@@ -515,8 +515,8 @@ without admin rights.
|
|
515
515
|
<h2><a class="toc-backref" href="#toc-entry-10">16.0.5.1.0 (2023-04-04)</a></h2>
|
516
516
|
<p><strong>Features</strong></p>
|
517
517
|
<ul class="simple">
|
518
|
-
<li>Improve UX by adding the option to edit the pivot date directly on
|
519
|
-
|
518
|
+
<li>Improve UX by adding the option to edit the pivot date directly on the
|
519
|
+
view.</li>
|
520
520
|
</ul>
|
521
521
|
</div>
|
522
522
|
<div class="section" id="section-5">
|
@@ -536,19 +536,18 @@ security. This also makes the menu discoverable to new users.</li>
|
|
536
536
|
<tt class="docutils literal">analytic_distribution</tt> mechanism is not compatible; support may
|
537
537
|
be introduced in separate module, depending on use cases.</li>
|
538
538
|
<li>Abandon the <tt class="docutils literal">mis_report_filters</tt> context key which had security
|
539
|
-
implication. It is replaced by a <tt class="docutils literal">mis_analytic_domain</tt> context
|
540
|
-
|
539
|
+
implication. It is replaced by a <tt class="docutils literal">mis_analytic_domain</tt> context key
|
540
|
+
which is ANDed with other report-defined filters.
|
541
541
|
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/472">#472</a>)</li>
|
542
542
|
<li>Rename the <tt class="docutils literal">get_filter_descriptions_from_context</tt> method to
|
543
543
|
<tt class="docutils literal">get_filter_descriptions</tt>. This method may be overridden to
|
544
|
-
provide additional subtitles on the PDF or XLS report,
|
545
|
-
|
544
|
+
provide additional subtitles on the PDF or XLS report, representing
|
545
|
+
user-selected filters.</li>
|
546
546
|
<li>The <tt class="docutils literal">hide_analytic_filters</tt> has been replaced by
|
547
547
|
<tt class="docutils literal">widget_show_filters</tt>.</li>
|
548
548
|
<li>The visibility of the settings button on the widget is now
|
549
|
-
controlled by a <tt class="docutils literal">show_settings_button</tt>. Before it was visible
|
550
|
-
|
551
|
-
enough.</li>
|
549
|
+
controlled by a <tt class="docutils literal">show_settings_button</tt>. Before it was visible only
|
550
|
+
for the <tt class="docutils literal">account_user</tt> group but this was not flexible enough.</li>
|
552
551
|
<li>The widget configuration settings are now grouped in a dedicated
|
553
552
|
<tt class="docutils literal">Widget</tt> tab in the report configuration form.</li>
|
554
553
|
</ul>
|
@@ -580,8 +579,8 @@ enough.</li>
|
|
580
579
|
<h2><a class="toc-backref" href="#toc-entry-14">15.0.4.0.2 (2022-02-16)</a></h2>
|
581
580
|
<p><strong>Bugfixes</strong></p>
|
582
581
|
<ul class="simple">
|
583
|
-
<li>Fix access right issue when clicking the “Save” button on a MIS
|
584
|
-
|
582
|
+
<li>Fix access right issue when clicking the “Save” button on a MIS Report
|
583
|
+
Instance form.
|
585
584
|
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/410">#410</a>)</li>
|
586
585
|
</ul>
|
587
586
|
</div>
|
@@ -595,8 +594,8 @@ Report Instance form.
|
|
595
594
|
<p><strong>Bugfixes</strong></p>
|
596
595
|
<ul>
|
597
596
|
<li><p class="first">Support for the Odoo 13+ multi-company model. In multi-company mode,
|
598
|
-
several allowed companies can be declared on MIS Report instances,
|
599
|
-
|
597
|
+
several allowed companies can be declared on MIS Report instances, and
|
598
|
+
the report operates on the intersection of report companies and
|
600
599
|
companies selected in the user context.
|
601
600
|
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/327">#327</a>)</p>
|
602
601
|
</li>
|
@@ -605,10 +604,9 @@ propagated correctly.
|
|
605
604
|
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/375">#375</a>)</p>
|
606
605
|
</li>
|
607
606
|
<li><p class="first">Use the <tt class="docutils literal">parent_state</tt> field of <tt class="docutils literal">account.move.line</tt> to filter
|
608
|
-
entries in <tt class="docutils literal">posted</tt> and <tt class="docutils literal">draft</tt> state only. Before, when
|
609
|
-
|
610
|
-
|
611
|
-
Odoo 13.+.</p>
|
607
|
+
entries in <tt class="docutils literal">posted</tt> and <tt class="docutils literal">draft</tt> state only. Before, when reporting
|
608
|
+
in draft mode, all entries were used (i.e. there was no filter), and
|
609
|
+
that started including the cancelled entries/invoices in Odoo 13.+.</p>
|
612
610
|
<p>This change also contains a <strong>breaking change</strong> in the internal API.
|
613
611
|
For quite a while the <tt class="docutils literal">target_move argument</tt> of AEP and other
|
614
612
|
methods was not used by MIS Builder itself and was kept for backward
|
@@ -622,9 +620,9 @@ use <tt class="docutils literal">parent_state</tt>, we now remove this argument.
|
|
622
620
|
<h2><a class="toc-backref" href="#toc-entry-16">14.0.3.6.7 (2021-06-02)</a></h2>
|
623
621
|
<p><strong>Bugfixes</strong></p>
|
624
622
|
<ul class="simple">
|
625
|
-
<li>When on a MIS Report Instance, if you wanted to generate a new line
|
626
|
-
|
627
|
-
|
623
|
+
<li>When on a MIS Report Instance, if you wanted to generate a new line of
|
624
|
+
type comparison, you couldn’t currently select any existing period to
|
625
|
+
compare. This happened because the field domain was searching in a
|
628
626
|
NewId context, thus not finding a correct period. Changing the domain
|
629
627
|
and making it use a computed field with a search for the _origin
|
630
628
|
record solves the problem.
|
@@ -691,8 +689,7 @@ accounting features” right when previewing a report.
|
|
691
689
|
<p><strong>Bugfixes</strong></p>
|
692
690
|
<ul class="simple">
|
693
691
|
<li>Fix <tt class="docutils literal">TypeError: 'module' object is not iterable</tt> when using budgets
|
694
|
-
by account.
|
695
|
-
(<a class="reference external" href="https://github.com/OCA/mis-builder/issues/276">#276</a>)</li>
|
692
|
+
by account. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/276">#276</a>)</li>
|
696
693
|
</ul>
|
697
694
|
</div>
|
698
695
|
<div class="section" id="section-17">
|
@@ -736,22 +733,22 @@ alternative data sources can more easily customize their data source.
|
|
736
733
|
<li>Support analytic tag filters in the backend view and preview widget.
|
737
734
|
Selecting several tags in the filter means filtering on move lines
|
738
735
|
which have <em>all</em> these tags set. This is to support the most common
|
739
|
-
use case of using tags for different dimensions. The filter also
|
740
|
-
|
736
|
+
use case of using tags for different dimensions. The filter also makes
|
737
|
+
a AND with the analytic account filter.
|
741
738
|
(<a class="reference external" href="https://github.com/oca/mis-builder/issues/228">#228</a>)</li>
|
742
739
|
<li>Display company in account details rows in multi-company mode.
|
743
740
|
(<a class="reference external" href="https://github.com/oca/mis-builder/issues/242">#242</a>)</li>
|
744
741
|
</ul>
|
745
742
|
<p><strong>Bugfixes</strong></p>
|
746
743
|
<ul class="simple">
|
747
|
-
<li>Propagate context to xlsx report, so the analytic account filter
|
748
|
-
|
744
|
+
<li>Propagate context to xlsx report, so the analytic account filter works
|
745
|
+
when exporting to xslx too. This also requires a fix to
|
749
746
|
<tt class="docutils literal">report_xlsx</tt> (see
|
750
747
|
<a class="reference external" href="https://github.com/OCA/reporting-engine/pull/259">https://github.com/OCA/reporting-engine/pull/259</a>).
|
751
748
|
(<a class="reference external" href="https://github.com/oca/mis-builder/issues/178">#178</a>)</li>
|
752
|
-
<li>In columns of type Sum, preserve styles for KPIs that are not
|
753
|
-
|
754
|
-
|
749
|
+
<li>In columns of type Sum, preserve styles for KPIs that are not summable
|
750
|
+
(eg percentage values). Before this fix, such cells were displayed
|
751
|
+
without style.
|
755
752
|
(<a class="reference external" href="https://github.com/oca/mis-builder/issues/219">#219</a>)</li>
|
756
753
|
<li>In Excel export, keep the percentage point suffix (pp) instead of
|
757
754
|
replacing it with %.
|
@@ -764,8 +761,8 @@ replacing it with %.
|
|
764
761
|
<ul class="simple">
|
765
762
|
<li>New year-to-date mode for defining periods.
|
766
763
|
(<a class="reference external" href="https://github.com/oca/mis-builder/issues/165">#165</a>)</li>
|
767
|
-
<li>Add support for move lines with negative debit or credit. Used by
|
768
|
-
|
764
|
+
<li>Add support for move lines with negative debit or credit. Used by some
|
765
|
+
for storno accounting. Not officially supported.
|
769
766
|
(<a class="reference external" href="https://github.com/oca/mis-builder/issues/175">#175</a>)</li>
|
770
767
|
<li>In Excel export, use a number format with thousands separator. The
|
771
768
|
specific separator used depends on the Excel configuration (eg
|
@@ -847,8 +844,8 @@ displayed). (<a class="reference external" href="https://github.com/OCA/mis-buil
|
|
847
844
|
<div class="section" id="section-23">
|
848
845
|
<h2><a class="toc-backref" href="#toc-entry-29">11.0.3.2.1 (2018-05-29)</a></h2>
|
849
846
|
<ul class="simple">
|
850
|
-
<li>[FIX] Missing comparison operator for AccountingNone leading to
|
851
|
-
|
847
|
+
<li>[FIX] Missing comparison operator for AccountingNone leading to errors
|
848
|
+
in pbal computations
|
852
849
|
(<a class="reference external" href="https://github.com/OCA/mis-builder/issue/93">#93</a>)</li>
|
853
850
|
</ul>
|
854
851
|
</div>
|
@@ -941,14 +938,14 @@ migration to the new mechanism.</li>
|
|
941
938
|
<li>[ADD] Sum column source, to create columns that add/subtract other
|
942
939
|
columns.</li>
|
943
940
|
<li>[ADD] mis.kpi.data abstract model as a basis for manual KPI values
|
944
|
-
supporting automatic ajustment to the reporting time period (the
|
945
|
-
|
941
|
+
supporting automatic ajustment to the reporting time period (the basis
|
942
|
+
for budget item, but could also server other purposes, such as
|
946
943
|
manually entering some KPI values, such as number of employee)</li>
|
947
944
|
<li>[ADD] mis_builder_budget module providing a new budget data source</li>
|
948
945
|
<li>[ADD] new “hide empty” style property</li>
|
949
946
|
<li>[IMP] new AEP method to get accounts involved in an expression (this
|
950
|
-
is useful to find which KPI relate to a given P&L acount, to
|
951
|
-
|
947
|
+
is useful to find which KPI relate to a given P&L acount, to implement
|
948
|
+
budget control)</li>
|
952
949
|
<li>[IMP] many UI improvements</li>
|
953
950
|
<li>[IMP] many code style improvements and some refactoring</li>
|
954
951
|
<li>[IMP] add the column date_from, date_to in expression evaluation
|
@@ -1011,15 +1008,15 @@ form</li>
|
|
1011
1008
|
<li>[FIX] Fix sum aggregation of non-stored fields
|
1012
1009
|
(<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/178">https://github.com/OCA/account-financial-reporting/issues/178</a>)</li>
|
1013
1010
|
<li>[IMP] There is now a default style at the report level</li>
|
1014
|
-
<li>[CHG] Number display properties (rounding, prefix, suffix, factor)
|
1015
|
-
|
1011
|
+
<li>[CHG] Number display properties (rounding, prefix, suffix, factor) are
|
1012
|
+
now defined in styles</li>
|
1016
1013
|
<li>[CHG] Percentage difference are rounded to 1 digit instead of the
|
1017
1014
|
kpi’s rounding, as the KPI rounding does not make sense in this case</li>
|
1018
1015
|
<li>[CHG] The divider suffix (k, M, etc) is not inserted automatically
|
1019
1016
|
anymore because it is inconsistent when working with prefixes; you
|
1020
1017
|
need to add it manually in the suffix</li>
|
1021
|
-
<li>[IMP] AccountingExpressionProcessor now supports ‘balu’ expressions
|
1022
|
-
|
1018
|
+
<li>[IMP] AccountingExpressionProcessor now supports ‘balu’ expressions to
|
1019
|
+
obtain the unallocated profit/loss of previous fiscal years;
|
1023
1020
|
get_unallocated_pl is the corresponding convenience method</li>
|
1024
1021
|
<li>[IMP] AccountingExpressionProcessor now has easy methods to obtain
|
1025
1022
|
balances by account: get_balances_initial, get_balances_end,
|
@@ -1034,8 +1031,7 @@ Generated” menu, they are garbaged collected automatically, unless
|
|
1034
1031
|
saved permanently, which can be done using a Save button</li>
|
1035
1032
|
<li>[IMP] there is now a beginner mode to configure simple reports with
|
1036
1033
|
only one period</li>
|
1037
|
-
<li>[IMP] it is now easier to configure periods with fixed start/end
|
1038
|
-
dates</li>
|
1034
|
+
<li>[IMP] it is now easier to configure periods with fixed start/end dates</li>
|
1039
1035
|
<li>[IMP] the new sub-kpi mechanism allows the creation of columns with
|
1040
1036
|
multiple values, or columns with different values</li>
|
1041
1037
|
<li>[IMP] thanks to the new style model, the Excel export is now styled</li>
|
@@ -1044,8 +1040,8 @@ multiple values, or columns with different values</li>
|
|
1044
1040
|
are added by the user in the expressions</li>
|
1045
1041
|
<li>[FIX] Correctly compute the initial balance of income and expense
|
1046
1042
|
account based on the start of the fiscal year</li>
|
1047
|
-
<li>[IMP] Support date ranges (from OCA/server-tools/date_range) as a
|
1048
|
-
|
1043
|
+
<li>[IMP] Support date ranges (from OCA/server-tools/date_range) as a more
|
1044
|
+
flexible alternative to fiscal periods</li>
|
1049
1045
|
<li>v9 migration: fiscal periods are removed, account charts are removed,
|
1050
1046
|
consolidation accounts have been removed</li>
|
1051
1047
|
</ul>
|
@@ -1068,8 +1064,8 @@ screens. <a class="reference external" href="https://github.com/OCA/account-fina
|
|
1068
1064
|
<li>Include the download buttons inside the MIS Builder widget, and
|
1069
1065
|
refactor the widget to open the door to analytic filtering in the
|
1070
1066
|
previews. <a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/151">https://github.com/OCA/account-financial-reporting/pull/151</a></li>
|
1071
|
-
<li>Add KPI rendering prefixes (so you can print $ in front of the
|
1072
|
-
|
1067
|
+
<li>Add KPI rendering prefixes (so you can print $ in front of the value).
|
1068
|
+
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/158">https://github.com/OCA/account-financial-reporting/pull/158</a></li>
|
1073
1069
|
<li>Add hooks for analytic filtering.
|
1074
1070
|
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/128">https://github.com/OCA/account-financial-reporting/pull/128</a>
|
1075
1071
|
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/131">https://github.com/OCA/account-financial-reporting/pull/131</a></li>
|
@@ -35,6 +35,14 @@ class TestMisReportInstanceDataSources(common.TransactionCase):
|
|
35
35
|
move._post()
|
36
36
|
return move
|
37
37
|
|
38
|
+
@classmethod
|
39
|
+
def setUpClass(cls):
|
40
|
+
super().setUpClass()
|
41
|
+
# Perform the tests with a brand new company to avoid intrusive data from other
|
42
|
+
# modules added to the default company
|
43
|
+
cls.company = cls.env["res.company"].create({"name": "Company Test"})
|
44
|
+
cls.env.user.company_id = cls.company
|
45
|
+
|
38
46
|
def setUp(self):
|
39
47
|
super().setUp()
|
40
48
|
self.account_model = self.env["account.account"]
|