odoo-addon-mis-builder 16.0.5.2.2.2__py3-none-any.whl → 16.0.5.2.3__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.
@@ -7,7 +7,7 @@ MIS Builder
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:2d31d0001908aa246ebf18c6c6f7c3c73dee8fa5357cb82e885367ffb15abce5
10
+ !! source digest: sha256:578ec6e1eb6754314b8a51c950070f53d28faebcd67c3d7014c0a53d82cca432
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -3,7 +3,7 @@
3
3
 
4
4
  {
5
5
  "name": "MIS Builder",
6
- "version": "16.0.5.2.2",
6
+ "version": "16.0.5.2.3",
7
7
  "category": "Reporting",
8
8
  "summary": """
9
9
  Build 'Management Information System' Reports and Dashboards
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: Odoo Server 10.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2024-12-17 11:06+0000\n"
9
+ "PO-Revision-Date: 2024-12-18 13:06+0000\n"
10
10
  "Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11
11
  "Language-Team: none\n"
12
12
  "Language: it\n"
@@ -1595,7 +1595,7 @@ msgstr "Nome stile"
1595
1595
  #. module: mis_builder
1596
1596
  #: model:ir.model.constraint,message:mis_builder.constraint_mis_report_style_style_name_uniq
1597
1597
  msgid "Style name should be unique"
1598
- msgstr ""
1598
+ msgstr "Il nome stile deve essere univoco"
1599
1599
 
1600
1600
  #. module: mis_builder
1601
1601
  #: model:ir.model.fields,field_description:mis_builder.field_mis_report__subkpi_ids
@@ -56,6 +56,13 @@ class Accumulator:
56
56
  custom_field: AccountingNone for custom_field in custom_field_names
57
57
  }
58
58
 
59
+ def has_data(self):
60
+ return (
61
+ self.debit is not AccountingNone
62
+ or self.credit is not AccountingNone
63
+ or any(v is not AccountingNone for v in self.custom_fields.values())
64
+ )
65
+
59
66
  def add_debit_credit(self, debit, credit):
60
67
  self.debit += debit
61
68
  self.credit += credit
@@ -579,7 +586,7 @@ class AccountingExpressionProcessor:
579
586
  key = (ml_domain, mode)
580
587
  account_ids_data = self._data[key]
581
588
  for account_id in self._account_ids_by_acc_domain[acc_domain]:
582
- if account_id in account_ids_data:
589
+ if account_ids_data[account_id].has_data():
583
590
  account_ids.add(account_id)
584
591
 
585
592
  for account_id in account_ids:
@@ -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:2d31d0001908aa246ebf18c6c6f7c3c73dee8fa5357cb82e885367ffb15abce5
370
+ !! source digest: sha256:578ec6e1eb6754314b8a51c950070f53d28faebcd67c3d7014c0a53d82cca432
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/16.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-16-0/mis-builder-16-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&amp;target_branch=16.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 dashboards.
@@ -48,6 +48,14 @@ class TestAEP(common.TransactionCase):
48
48
  "account_type": "income",
49
49
  }
50
50
  )
51
+ self.account_in_no_data = self.account_model.create(
52
+ {
53
+ "company_id": self.company.id,
54
+ "code": "700INNODATA",
55
+ "name": "Income (no data)",
56
+ "account_type": "income",
57
+ }
58
+ )
51
59
  # create journal
52
60
  self.journal = self.journal_model.create(
53
61
  {
@@ -96,6 +104,7 @@ class TestAEP(common.TransactionCase):
96
104
  self.aep.parse_expr("crdp[700I%]")
97
105
  self.aep.parse_expr("bali[400%]")
98
106
  self.aep.parse_expr("bale[700%]")
107
+ self.aep.parse_expr("balp[700I%]")
99
108
  self.aep.parse_expr("fldp.quantity[700%]")
100
109
  self.aep.parse_expr("balp[]" "[('account_id.code', '=', '400AR')]")
101
110
  self.aep.parse_expr(
@@ -299,6 +308,17 @@ class TestAEP(common.TransactionCase):
299
308
  end = self._eval_by_account_id("bale[]")
300
309
  self.assertEqual(end, {self.account_ar.id: 900, self.account_in.id: -800})
301
310
 
311
+ def test_aep_by_account_no_data(self):
312
+ """Test that accounts with no data are not returned."""
313
+ self.aep.done_parsing()
314
+ self._do_queries(
315
+ datetime.date(self.curr_year, 3, 1), datetime.date(self.curr_year, 3, 31)
316
+ )
317
+ variation = self._eval("balp[700I%]")
318
+ self.assertEqual(variation, -500)
319
+ variation_by_account = self._eval_by_account_id("balp[700I%]")
320
+ self.assertEqual(variation_by_account, {self.account_in.id: -500})
321
+
302
322
  def test_aep_convenience_methods(self):
303
323
  initial = AEP.get_balances_initial(self.company, time.strftime("%Y") + "-03-01")
304
324
  self.assertEqual(
@@ -351,10 +371,13 @@ class TestAEP(common.TransactionCase):
351
371
  self.assertEqual(account_ids, {self.account_in.id})
352
372
  expr = "balp[700%]"
353
373
  account_ids = self.aep.get_account_ids_for_expr(expr)
354
- self.assertEqual(account_ids, {self.account_in.id})
374
+ self.assertEqual(account_ids, {self.account_in.id, self.account_in_no_data.id})
355
375
  expr = "bali[400%], bale[700%]" # subkpis combined expression
356
376
  account_ids = self.aep.get_account_ids_for_expr(expr)
357
- self.assertEqual(account_ids, {self.account_in.id, self.account_ar.id})
377
+ self.assertEqual(
378
+ account_ids,
379
+ {self.account_in.id, self.account_ar.id, self.account_in_no_data.id},
380
+ )
358
381
 
359
382
  def test_get_aml_domain_for_expr(self):
360
383
  self.aep.done_parsing()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-mis_builder
3
- Version: 16.0.5.2.2.2
3
+ Version: 16.0.5.2.3
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo-addon-date_range>=16.0dev,<16.1dev
6
6
  Requires-Dist: odoo-addon-report_xlsx>=16.0dev,<16.1dev
@@ -25,7 +25,7 @@ MIS Builder
25
25
  !! This file is generated by oca-gen-addon-readme !!
26
26
  !! changes will be overwritten. !!
27
27
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
- !! source digest: sha256:2d31d0001908aa246ebf18c6c6f7c3c73dee8fa5357cb82e885367ffb15abce5
28
+ !! source digest: sha256:578ec6e1eb6754314b8a51c950070f53d28faebcd67c3d7014c0a53d82cca432
29
29
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
30
30
 
31
31
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -1,6 +1,6 @@
1
- odoo/addons/mis_builder/README.rst,sha256=fUmO6HI_su1o8655Eo5nDW5eub1yClbTajrg1_-W1m0,29747
1
+ odoo/addons/mis_builder/README.rst,sha256=5gwn-IVwClTopE2sZ4-fshrDe35arxdVcjBvogSfmdA,29747
2
2
  odoo/addons/mis_builder/__init__.py,sha256=-8wG-57WxKfMMA5_TFzpubBcfthcsAP5vjTkhXKf7ds,185
3
- odoo/addons/mis_builder/__manifest__.py,sha256=H3i1StJKijDLl3VDWdIiPNGVaqTmNBDpgPH0jouHb_w,1556
3
+ odoo/addons/mis_builder/__manifest__.py,sha256=LBnvlvY5dDYx_M74LIyLjSjGMUMsJdmX9US6M4ttnao,1556
4
4
  odoo/addons/mis_builder/datas/ir_cron.xml,sha256=H5nnz-4CqZPVveJdRoJ_DrBOOsihK4XwOjWcSMYv68A,558
5
5
  odoo/addons/mis_builder/i18n/ca.po,sha256=Bs3X0lNAg5u9K4j3FV6AfrtnWax3TahYE2qJE_ZxfMQ,91012
6
6
  odoo/addons/mis_builder/i18n/de.po,sha256=72QoPmri0QrOKlyON0yeHmlkbeiB7iuScqg7WOZZktg,66321
@@ -9,7 +9,7 @@ odoo/addons/mis_builder/i18n/el_GR.po,sha256=9Z0nBH1vT-DHlpBJAXHy_saAGjx4vjeZA1Y
9
9
  odoo/addons/mis_builder/i18n/es.po,sha256=ABKI06IcLNihS_yMcWnahn3ewfFdEml-pgvipb1Lpdo,88131
10
10
  odoo/addons/mis_builder/i18n/fr.po,sha256=4R-V6LFBJ-CJ-oFFC3gA3M-TVU7F59UWDyqvJDkzdac,84367
11
11
  odoo/addons/mis_builder/i18n/hr.po,sha256=0HSRENH2cNYTqLKEFi-5ZXlUPfA7-FlsBwqZs1gAAYk,68399
12
- odoo/addons/mis_builder/i18n/it.po,sha256=adH8gYuayPKlsZwbyG29FWteURCd4YJ03jz-rqGbNTo,78876
12
+ odoo/addons/mis_builder/i18n/it.po,sha256=LGR0_CVwnaC-TseW1h3Q6ig4GXetoQ208-lT5l72Z-0,78909
13
13
  odoo/addons/mis_builder/i18n/mis_builder.pot,sha256=YAYf8d9o2-GtT8QzI8Qq-ZBtcP8wjVpj8uxZlkuFqtg,63164
14
14
  odoo/addons/mis_builder/i18n/nl.po,sha256=iLVCTcly1KjsdpKbGPcZo_8j-rXKq_5HmT_GbOFkJag,75742
15
15
  odoo/addons/mis_builder/i18n/nl_NL.po,sha256=gkYGrBvveKcYLBVVKcdMPKFh80E-zTvNaRDgISRHNro,75834
@@ -21,7 +21,7 @@ odoo/addons/mis_builder/migrations/16.0.1.0.1/post-migration.py,sha256=kSvTOKc5R
21
21
  odoo/addons/mis_builder/migrations/16.0.5.0.0/end-migrate.py,sha256=YquWWej_lW3mhkYTSQPqEC_BucmxtLRgwGWU1My7fo8,326
22
22
  odoo/addons/mis_builder/models/__init__.py,sha256=_h9tbt-H0JjtHL6kI7-wiEnd5u2qkP855DevyjxLBbI,331
23
23
  odoo/addons/mis_builder/models/accounting_none.py,sha256=6EE6x4slUbyP2TVnHpilsWu8XqWhGZMt79uBOmNLcVs,4156
24
- odoo/addons/mis_builder/models/aep.py,sha256=hPO7mVTfYLKSvexEBWRDE8hWvod6KwzyobSg2k4r69U,26306
24
+ odoo/addons/mis_builder/models/aep.py,sha256=h2FmNgHRJqL8JK0GyhzS03z5yQ83Zo3vPFrKdPuQT8U,26542
25
25
  odoo/addons/mis_builder/models/aggregate.py,sha256=ffOZq2-R7st-1Hsw-lFfiwkMa46ToJZ7m0K6Z9P_gwQ,2892
26
26
  odoo/addons/mis_builder/models/data_error.py,sha256=ltTIrFCbsxYXmdPTVFVJj3ejZxyc83NEsIFQs2s3-L0,442
27
27
  odoo/addons/mis_builder/models/expression_evaluator.py,sha256=honBPA9VOg0q_BOPuB8CkMA_wcoMUMxDbB-ULnjRpb4,2459
@@ -53,7 +53,7 @@ odoo/addons/mis_builder/static/description/ex_report_preview.png,sha256=NKBRn70E
53
53
  odoo/addons/mis_builder/static/description/ex_report_settings.png,sha256=T7j_3DUUtdZ6XKsAvJ3uKsK_-GtRl0sRPD68ZOa6ebA,103790
54
54
  odoo/addons/mis_builder/static/description/ex_report_template.png,sha256=c8KgzyGD5QiZNCmxaVR4u3h1K0TJN50uXZWoNsieN8A,100278
55
55
  odoo/addons/mis_builder/static/description/icon.png,sha256=0OCahdqDvaS_CHV97ZCbajW0_AcBLVVvja_EJA2mC6s,4770
56
- odoo/addons/mis_builder/static/description/index.html,sha256=Ze2SfVRW-4GjkDUlFU9EH9LPC1gIw0kLzZ398curk4A,55964
56
+ odoo/addons/mis_builder/static/description/index.html,sha256=2o4j4I0YkJGmjVxvtF64RFov4RdhjcX1aseJyHhJxE4,55964
57
57
  odoo/addons/mis_builder/static/src/components/mis_report_widget.css,sha256=ew7iozGAv9ue3KPf_8qA_AhHlNGis7pJu8A7tc6CO4Y,1198
58
58
  odoo/addons/mis_builder/static/src/components/mis_report_widget.esm.js,sha256=UzKMeuffo1BT5VmOi0Um9xtplbvdjcrc-_KOkZrTc_A,5528
59
59
  odoo/addons/mis_builder/static/src/components/mis_report_widget.xml,sha256=eKbIbOWmsc_qdT_zYuFdqxZIYpf6JEQGTcXE0vcLax4,5679
@@ -62,7 +62,7 @@ odoo/addons/mis_builder/tests/__init__.py,sha256=ilgojed90T4NL_YXgVf3CACd8fo7nxp
62
62
  odoo/addons/mis_builder/tests/common.py,sha256=7LqnpPyJ8yOi5gA4CwiKZaep6NGY_vIDnK36u8WVC1o,1918
63
63
  odoo/addons/mis_builder/tests/fake_models.py,sha256=DWJsXiIVVXZwXfLQ-9TmUs3eM5KBCXibS2qRXgkFt1c,177
64
64
  odoo/addons/mis_builder/tests/test_accounting_none.py,sha256=satnhbRuI4DdWIOpe-mG7sW9KlamgnyvoVaPQlqZ9FA,239
65
- odoo/addons/mis_builder/tests/test_aep.py,sha256=o931AKWU-VlPGNMocslyMCng8k7JZ5pkPoJdyykkGQM,17701
65
+ odoo/addons/mis_builder/tests/test_aep.py,sha256=H4wGiuvG1O_C9lcUMEK9OHuYQSHgYgrFGHL-_Fqrt5E,18602
66
66
  odoo/addons/mis_builder/tests/test_aggregate.py,sha256=ZXEVW0hMZYUIJM6ikQpmBH9Xc9TaY46xYbBsH8vcXDQ,226
67
67
  odoo/addons/mis_builder/tests/test_data_sources.py,sha256=KK8sycuYtaa6o8s2Lzehi3XbYwGVViL-cE3eReOggAk,7792
68
68
  odoo/addons/mis_builder/tests/test_kpi_data.py,sha256=PrgfJIkrw5liJ8InLoXCGXMD-uc7y23J-7R-UYxWIO8,4860
@@ -81,7 +81,7 @@ odoo/addons/mis_builder/views/mis_report_style.xml,sha256=HRsXhEZZYbuZg7qJyfhdnE
81
81
  odoo/addons/mis_builder/wizard/__init__.py,sha256=qlc_LcwA6U3Wgv-qC9uacPjZXV3jShrV_RBiuKCBNPA,158
82
82
  odoo/addons/mis_builder/wizard/mis_builder_dashboard.py,sha256=DIas3iie9fb2WzJ2eGcrVc7y64IuRyxSG7tJrcV-53g,3404
83
83
  odoo/addons/mis_builder/wizard/mis_builder_dashboard.xml,sha256=ArG86hdyRWm531nK0hYU-j1N87yXtpDVpSuKTmOB47I,1440
84
- odoo_addon_mis_builder-16.0.5.2.2.2.dist-info/METADATA,sha256=1cxRgL08M8q-VoQ7J9DwB-PLuz-WfHOW40JjKgu6YEM,30463
85
- odoo_addon_mis_builder-16.0.5.2.2.2.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
86
- odoo_addon_mis_builder-16.0.5.2.2.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
87
- odoo_addon_mis_builder-16.0.5.2.2.2.dist-info/RECORD,,
84
+ odoo_addon_mis_builder-16.0.5.2.3.dist-info/METADATA,sha256=_Vci0qBMbbIiUmDoIb3upcR_SGlV3JDHp_N8mjgAkKA,30461
85
+ odoo_addon_mis_builder-16.0.5.2.3.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
86
+ odoo_addon_mis_builder-16.0.5.2.3.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
87
+ odoo_addon_mis_builder-16.0.5.2.3.dist-info/RECORD,,