odoo-addon-mis-builder 16.0.5.0.1.1__py3-none-any.whl → 16.0.5.1.1.4__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.
Files changed (27) hide show
  1. odoo/addons/mis_builder/README.rst +7 -0
  2. odoo/addons/mis_builder/__manifest__.py +1 -1
  3. odoo/addons/mis_builder/i18n/ca.po +10 -0
  4. odoo/addons/mis_builder/i18n/de.po +10 -0
  5. odoo/addons/mis_builder/i18n/el.po +10 -0
  6. odoo/addons/mis_builder/i18n/el_GR.po +10 -0
  7. odoo/addons/mis_builder/i18n/es.po +10 -0
  8. odoo/addons/mis_builder/i18n/fr.po +188 -91
  9. odoo/addons/mis_builder/i18n/fr_FR.po +1844 -0
  10. odoo/addons/mis_builder/i18n/hr.po +10 -0
  11. odoo/addons/mis_builder/i18n/it.po +14 -4
  12. odoo/addons/mis_builder/i18n/mis_builder.pot +10 -0
  13. odoo/addons/mis_builder/i18n/nl.po +10 -0
  14. odoo/addons/mis_builder/i18n/nl_NL.po +10 -0
  15. odoo/addons/mis_builder/i18n/pt.po +10 -0
  16. odoo/addons/mis_builder/i18n/pt_BR.po +10 -0
  17. odoo/addons/mis_builder/i18n/sv.po +10 -0
  18. odoo/addons/mis_builder/models/mis_report_instance.py +10 -3
  19. odoo/addons/mis_builder/readme/HISTORY.rst +7 -0
  20. odoo/addons/mis_builder/static/description/index.html +119 -111
  21. odoo/addons/mis_builder/static/src/components/mis_report_widget.esm.js +32 -8
  22. odoo/addons/mis_builder/static/src/components/mis_report_widget.xml +6 -0
  23. odoo/addons/mis_builder/views/mis_report_instance.xml +1 -0
  24. {odoo_addon_mis_builder-16.0.5.0.1.1.dist-info → odoo_addon_mis_builder-16.0.5.1.1.4.dist-info}/METADATA +8 -1
  25. {odoo_addon_mis_builder-16.0.5.0.1.1.dist-info → odoo_addon_mis_builder-16.0.5.1.1.4.dist-info}/RECORD +27 -26
  26. {odoo_addon_mis_builder-16.0.5.0.1.1.dist-info → odoo_addon_mis_builder-16.0.5.1.1.4.dist-info}/WHEEL +0 -0
  27. {odoo_addon_mis_builder-16.0.5.0.1.1.dist-info → odoo_addon_mis_builder-16.0.5.1.1.4.dist-info}/top_level.txt +0 -0
@@ -376,55 +376,56 @@ can be added to Odoo dashboards.</p>
376
376
  <p><strong>Table of contents</strong></p>
377
377
  <div class="contents local topic" id="contents">
378
378
  <ul class="simple">
379
- <li><a class="reference internal" href="#installation" id="id91">Installation</a></li>
380
- <li><a class="reference internal" href="#usage" id="id92">Usage</a></li>
381
- <li><a class="reference internal" href="#development" id="id93">Development</a></li>
382
- <li><a class="reference internal" href="#known-issues-roadmap" id="id94">Known issues / Roadmap</a></li>
383
- <li><a class="reference internal" href="#changelog" id="id95">Changelog</a><ul>
384
- <li><a class="reference internal" href="#id1" id="id96">16.0.5.0.0 (2023-04-01)</a></li>
385
- <li><a class="reference internal" href="#id4" id="id97">15.0.4.0.5 (2022-07-19)</a></li>
386
- <li><a class="reference internal" href="#id6" id="id98">15.0.4.0.4 (2022-07-19)</a></li>
387
- <li><a class="reference internal" href="#id8" id="id99">15.0.4.0.2 (2022-02-16)</a></li>
388
- <li><a class="reference internal" href="#id10" id="id100">14.0.4.0.0 (2022-01-08)</a></li>
389
- <li><a class="reference internal" href="#id15" id="id101">14.0.3.6.7 (2021-06-02)</a></li>
390
- <li><a class="reference internal" href="#id17" id="id102">14.0.3.6.6 (2021-04-23)</a></li>
391
- <li><a class="reference internal" href="#id19" id="id103">14.0.3.6.5 (2021-04-23)</a></li>
392
- <li><a class="reference internal" href="#id21" id="id104">14.0.3.6.4 (2021-04-06)</a></li>
393
- <li><a class="reference internal" href="#id24" id="id105">13.0.3.6.3 (2020-08-28)</a></li>
394
- <li><a class="reference internal" href="#id28" id="id106">13.0.3.6.2 (2020-04-22)</a></li>
395
- <li><a class="reference internal" href="#id30" id="id107">13.0.3.6.1 (2020-04-22)</a></li>
396
- <li><a class="reference internal" href="#id32" id="id108">13.0.3.6.0 (2020-03-28)</a></li>
397
- <li><a class="reference internal" href="#id35" id="id109">13.0.3.5.0 (2020-01-??)</a></li>
398
- <li><a class="reference internal" href="#id36" id="id110">12.0.3.5.0 (2019-10-26)</a></li>
399
- <li><a class="reference internal" href="#id44" id="id111">12.0.3.4.0 (2019-07-09)</a></li>
400
- <li><a class="reference internal" href="#id51" id="id112">12.0.3.3.0 (2019-01-26)</a></li>
401
- <li><a class="reference internal" href="#id61" id="id113">11.0.3.2.2 (2018-06-30)</a></li>
402
- <li><a class="reference internal" href="#id64" id="id114">11.0.3.2.1 (2018-05-29)</a></li>
403
- <li><a class="reference internal" href="#id66" id="id115">10.0.3.2.0 (2018-05-02)</a></li>
404
- <li><a class="reference internal" href="#id70" id="id116">11.0.3.1.2 (2018-02-04)</a></li>
405
- <li><a class="reference internal" href="#id72" id="id117">10.0.3.1.1 (2017-11-14)</a></li>
406
- <li><a class="reference internal" href="#id81" id="id118">10.0.3.0.4 (2017-10-14)</a></li>
407
- <li><a class="reference internal" href="#id83" id="id119">10.0.3.0.3 (2017-10-03)</a></li>
408
- <li><a class="reference internal" href="#id85" id="id120">10.0.3.0.2 (2017-10-01)</a></li>
409
- <li><a class="reference internal" href="#unreleased" id="id121">10.0.2.0.3 (unreleased)</a></li>
410
- <li><a class="reference internal" href="#id86" id="id122">9.0.2.0.2 (2016-09-27)</a></li>
411
- <li><a class="reference internal" href="#id87" id="id123">9.0.2.0.1 (2016-05-26)</a></li>
412
- <li><a class="reference internal" href="#id88" id="id124">9.0.2.0.0 (2016-05-24)</a></li>
413
- <li><a class="reference internal" href="#id89" id="id125">8.0.1.0.0 (2016-04-27)</a></li>
414
- <li><a class="reference internal" href="#id90" id="id126">8.0.0.2.0</a></li>
379
+ <li><a class="reference internal" href="#installation" id="id92">Installation</a></li>
380
+ <li><a class="reference internal" href="#usage" id="id93">Usage</a></li>
381
+ <li><a class="reference internal" href="#development" id="id94">Development</a></li>
382
+ <li><a class="reference internal" href="#known-issues-roadmap" id="id95">Known issues / Roadmap</a></li>
383
+ <li><a class="reference internal" href="#changelog" id="id96">Changelog</a><ul>
384
+ <li><a class="reference internal" href="#id1" id="id97">16.0.5.1.0 (2023-04-04)</a></li>
385
+ <li><a class="reference internal" href="#id2" id="id98">16.0.5.0.0 (2023-04-01)</a></li>
386
+ <li><a class="reference internal" href="#id5" id="id99">15.0.4.0.5 (2022-07-19)</a></li>
387
+ <li><a class="reference internal" href="#id7" id="id100">15.0.4.0.4 (2022-07-19)</a></li>
388
+ <li><a class="reference internal" href="#id9" id="id101">15.0.4.0.2 (2022-02-16)</a></li>
389
+ <li><a class="reference internal" href="#id11" id="id102">14.0.4.0.0 (2022-01-08)</a></li>
390
+ <li><a class="reference internal" href="#id16" id="id103">14.0.3.6.7 (2021-06-02)</a></li>
391
+ <li><a class="reference internal" href="#id18" id="id104">14.0.3.6.6 (2021-04-23)</a></li>
392
+ <li><a class="reference internal" href="#id20" id="id105">14.0.3.6.5 (2021-04-23)</a></li>
393
+ <li><a class="reference internal" href="#id22" id="id106">14.0.3.6.4 (2021-04-06)</a></li>
394
+ <li><a class="reference internal" href="#id25" id="id107">13.0.3.6.3 (2020-08-28)</a></li>
395
+ <li><a class="reference internal" href="#id29" id="id108">13.0.3.6.2 (2020-04-22)</a></li>
396
+ <li><a class="reference internal" href="#id31" id="id109">13.0.3.6.1 (2020-04-22)</a></li>
397
+ <li><a class="reference internal" href="#id33" id="id110">13.0.3.6.0 (2020-03-28)</a></li>
398
+ <li><a class="reference internal" href="#id36" id="id111">13.0.3.5.0 (2020-01-??)</a></li>
399
+ <li><a class="reference internal" href="#id37" id="id112">12.0.3.5.0 (2019-10-26)</a></li>
400
+ <li><a class="reference internal" href="#id45" id="id113">12.0.3.4.0 (2019-07-09)</a></li>
401
+ <li><a class="reference internal" href="#id52" id="id114">12.0.3.3.0 (2019-01-26)</a></li>
402
+ <li><a class="reference internal" href="#id62" id="id115">11.0.3.2.2 (2018-06-30)</a></li>
403
+ <li><a class="reference internal" href="#id65" id="id116">11.0.3.2.1 (2018-05-29)</a></li>
404
+ <li><a class="reference internal" href="#id67" id="id117">10.0.3.2.0 (2018-05-02)</a></li>
405
+ <li><a class="reference internal" href="#id71" id="id118">11.0.3.1.2 (2018-02-04)</a></li>
406
+ <li><a class="reference internal" href="#id73" id="id119">10.0.3.1.1 (2017-11-14)</a></li>
407
+ <li><a class="reference internal" href="#id82" id="id120">10.0.3.0.4 (2017-10-14)</a></li>
408
+ <li><a class="reference internal" href="#id84" id="id121">10.0.3.0.3 (2017-10-03)</a></li>
409
+ <li><a class="reference internal" href="#id86" id="id122">10.0.3.0.2 (2017-10-01)</a></li>
410
+ <li><a class="reference internal" href="#unreleased" id="id123">10.0.2.0.3 (unreleased)</a></li>
411
+ <li><a class="reference internal" href="#id87" id="id124">9.0.2.0.2 (2016-09-27)</a></li>
412
+ <li><a class="reference internal" href="#id88" id="id125">9.0.2.0.1 (2016-05-26)</a></li>
413
+ <li><a class="reference internal" href="#id89" id="id126">9.0.2.0.0 (2016-05-24)</a></li>
414
+ <li><a class="reference internal" href="#id90" id="id127">8.0.1.0.0 (2016-04-27)</a></li>
415
+ <li><a class="reference internal" href="#id91" id="id128">8.0.0.2.0</a></li>
415
416
  </ul>
416
417
  </li>
417
- <li><a class="reference internal" href="#bug-tracker" id="id127">Bug Tracker</a></li>
418
- <li><a class="reference internal" href="#credits" id="id128">Credits</a><ul>
419
- <li><a class="reference internal" href="#authors" id="id129">Authors</a></li>
420
- <li><a class="reference internal" href="#contributors" id="id130">Contributors</a></li>
421
- <li><a class="reference internal" href="#maintainers" id="id131">Maintainers</a></li>
418
+ <li><a class="reference internal" href="#bug-tracker" id="id129">Bug Tracker</a></li>
419
+ <li><a class="reference internal" href="#credits" id="id130">Credits</a><ul>
420
+ <li><a class="reference internal" href="#authors" id="id131">Authors</a></li>
421
+ <li><a class="reference internal" href="#contributors" id="id132">Contributors</a></li>
422
+ <li><a class="reference internal" href="#maintainers" id="id133">Maintainers</a></li>
422
423
  </ul>
423
424
  </li>
424
425
  </ul>
425
426
  </div>
426
427
  <div class="section" id="installation">
427
- <h1><a class="toc-backref" href="#id91">Installation</a></h1>
428
+ <h1><a class="toc-backref" href="#id92">Installation</a></h1>
428
429
  <p>Your preferred way to install addons will work with MIS Builder.</p>
429
430
  <p>An easy way to install it with all its dependencies is using pip:</p>
430
431
  <ul class="simple">
@@ -434,7 +435,7 @@ the MIS Builder application.</li>
434
435
  </ul>
435
436
  </div>
436
437
  <div class="section" id="usage">
437
- <h1><a class="toc-backref" href="#id92">Usage</a></h1>
438
+ <h1><a class="toc-backref" href="#id93">Usage</a></h1>
438
439
  <p>To configure this module, you need to:</p>
439
440
  <ul class="simple">
440
441
  <li>Go to Accounting &gt; Configuration &gt; MIS Reporting &gt; MIS Report Templates where
@@ -460,7 +461,7 @@ and export it to PDF or Excel.</li>
460
461
  </div>
461
462
  </div>
462
463
  <div class="section" id="development">
463
- <h1><a class="toc-backref" href="#id93">Development</a></h1>
464
+ <h1><a class="toc-backref" href="#id94">Development</a></h1>
464
465
  <p>A typical extension is to provide a mechanism to filter reports on analytic dimensions
465
466
  or operational units. To implement this, you can override _get_additional_move_line_filter
466
467
  and _get_additional_filter to further filter move lines or queries based on a user
@@ -469,15 +470,22 @@ or even on mis.report.instance.period if you want different columns to show diff
469
470
  analytic accounts.</p>
470
471
  </div>
471
472
  <div class="section" id="known-issues-roadmap">
472
- <h1><a class="toc-backref" href="#id94">Known issues / Roadmap</a></h1>
473
+ <h1><a class="toc-backref" href="#id95">Known issues / Roadmap</a></h1>
473
474
  <p>The mis_builder <a class="reference external" href="https://github.com/OCA/mis-builder/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement">roadmap</a>
474
475
  and <a class="reference external" href="https://github.com/OCA/mis-builder/issues?q=is%3Aopen+is%3Aissue+label%3Abug">known issues</a> can
475
476
  be found on GitHub.</p>
476
477
  </div>
477
478
  <div class="section" id="changelog">
478
- <h1><a class="toc-backref" href="#id95">Changelog</a></h1>
479
+ <h1><a class="toc-backref" href="#id96">Changelog</a></h1>
479
480
  <div class="section" id="id1">
480
- <h2><a class="toc-backref" href="#id96">16.0.5.0.0 (2023-04-01)</a></h2>
481
+ <h2><a class="toc-backref" href="#id97">16.0.5.1.0 (2023-04-04)</a></h2>
482
+ <p><strong>Features</strong></p>
483
+ <ul class="simple">
484
+ <li>Improve UX by adding the option to edit the pivot date directly on the view.</li>
485
+ </ul>
486
+ </div>
487
+ <div class="section" id="id2">
488
+ <h2><a class="toc-backref" href="#id98">16.0.5.0.0 (2023-04-01)</a></h2>
481
489
  <p><strong>Features</strong></p>
482
490
  <ul class="simple">
483
491
  <li>Migration to 16.0<ul>
@@ -512,29 +520,29 @@ the report configuration form.</li>
512
520
  <li>Fix access error when previewing or printing report. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/415">#415</a>)</li>
513
521
  </ul>
514
522
  </div>
515
- <div class="section" id="id4">
516
- <h2><a class="toc-backref" href="#id97">15.0.4.0.5 (2022-07-19)</a></h2>
523
+ <div class="section" id="id5">
524
+ <h2><a class="toc-backref" href="#id99">15.0.4.0.5 (2022-07-19)</a></h2>
517
525
  <p><strong>Bugfixes</strong></p>
518
526
  <ul class="simple">
519
527
  <li>Support users without timezone. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/388">#388</a>)</li>
520
528
  </ul>
521
529
  </div>
522
- <div class="section" id="id6">
523
- <h2><a class="toc-backref" href="#id98">15.0.4.0.4 (2022-07-19)</a></h2>
530
+ <div class="section" id="id7">
531
+ <h2><a class="toc-backref" href="#id100">15.0.4.0.4 (2022-07-19)</a></h2>
524
532
  <p><strong>Bugfixes</strong></p>
525
533
  <ul class="simple">
526
534
  <li>Allow deleting a report that has subreports. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/431">#431</a>)</li>
527
535
  </ul>
528
536
  </div>
529
- <div class="section" id="id8">
530
- <h2><a class="toc-backref" href="#id99">15.0.4.0.2 (2022-02-16)</a></h2>
537
+ <div class="section" id="id9">
538
+ <h2><a class="toc-backref" href="#id101">15.0.4.0.2 (2022-02-16)</a></h2>
531
539
  <p><strong>Bugfixes</strong></p>
532
540
  <ul class="simple">
533
541
  <li>Fix access right issue when clicking the “Save” button on a MIS Report Instance form. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/410">#410</a>)</li>
534
542
  </ul>
535
543
  </div>
536
- <div class="section" id="id10">
537
- <h2><a class="toc-backref" href="#id100">14.0.4.0.0 (2022-01-08)</a></h2>
544
+ <div class="section" id="id11">
545
+ <h2><a class="toc-backref" href="#id102">14.0.4.0.0 (2022-01-08)</a></h2>
538
546
  <p><strong>Features</strong></p>
539
547
  <ul class="simple">
540
548
  <li>Remove various field size limits. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/332">#332</a>)</li>
@@ -559,8 +567,8 @@ change to use <tt class="docutils literal">parent_state</tt>, we now remove this
559
567
  </li>
560
568
  </ul>
561
569
  </div>
562
- <div class="section" id="id15">
563
- <h2><a class="toc-backref" href="#id101">14.0.3.6.7 (2021-06-02)</a></h2>
570
+ <div class="section" id="id16">
571
+ <h2><a class="toc-backref" href="#id103">14.0.3.6.7 (2021-06-02)</a></h2>
564
572
  <p><strong>Bugfixes</strong></p>
565
573
  <ul class="simple">
566
574
  <li>When on a MIS Report Instance, if you wanted to generate a new line of type comparison, you couldn’t currently select any existing period to compare.
@@ -568,15 +576,15 @@ This happened because the field domain was searching in a NewId context, thus no
568
576
  Changing the domain and making it use a computed field with a search for the _origin record solves the problem. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/361">#361</a>)</li>
569
577
  </ul>
570
578
  </div>
571
- <div class="section" id="id17">
572
- <h2><a class="toc-backref" href="#id102">14.0.3.6.6 (2021-04-23)</a></h2>
579
+ <div class="section" id="id18">
580
+ <h2><a class="toc-backref" href="#id104">14.0.3.6.6 (2021-04-23)</a></h2>
573
581
  <p><strong>Bugfixes</strong></p>
574
582
  <ul class="simple">
575
583
  <li>Fix drilldown action name when the account model has been customized. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/350">#350</a>)</li>
576
584
  </ul>
577
585
  </div>
578
- <div class="section" id="id19">
579
- <h2><a class="toc-backref" href="#id103">14.0.3.6.5 (2021-04-23)</a></h2>
586
+ <div class="section" id="id20">
587
+ <h2><a class="toc-backref" href="#id105">14.0.3.6.5 (2021-04-23)</a></h2>
580
588
  <p><strong>Bugfixes</strong></p>
581
589
  <ul class="simple">
582
590
  <li>While duplicating a MIS report instance, comparison columns are ignored because
@@ -584,8 +592,8 @@ they would raise an error otherwise, as they keep the old source_cmpcol_from_id
584
592
  and source_cmpcol_to_id from the original record. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/343">#343</a>)</li>
585
593
  </ul>
586
594
  </div>
587
- <div class="section" id="id21">
588
- <h2><a class="toc-backref" href="#id104">14.0.3.6.4 (2021-04-06)</a></h2>
595
+ <div class="section" id="id22">
596
+ <h2><a class="toc-backref" href="#id106">14.0.3.6.4 (2021-04-06)</a></h2>
589
597
  <p><strong>Features</strong></p>
590
598
  <ul class="simple">
591
599
  <li>The drilldown action name displayed on the breadcrumb has been revised.
@@ -595,8 +603,8 @@ of the kpi’s technical definition. (<a class="reference external" href="https:
595
603
  view. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/320">#320</a>)</li>
596
604
  </ul>
597
605
  </div>
598
- <div class="section" id="id24">
599
- <h2><a class="toc-backref" href="#id105">13.0.3.6.3 (2020-08-28)</a></h2>
606
+ <div class="section" id="id25">
607
+ <h2><a class="toc-backref" href="#id107">13.0.3.6.3 (2020-08-28)</a></h2>
600
608
  <p><strong>Bugfixes</strong></p>
601
609
  <ul class="simple">
602
610
  <li>Having a “Compare columns” added on a KPI with an associated style using a
@@ -608,23 +616,23 @@ when exporting to XLSX. (<a class="reference external" href="https://github.com/
608
616
  <li><a class="reference external" href="https://github.com/OCA/mis-builder/issues/280">#280</a>, <a class="reference external" href="https://github.com/OCA/mis-builder/issues/296">#296</a></li>
609
617
  </ul>
610
618
  </div>
611
- <div class="section" id="id28">
612
- <h2><a class="toc-backref" href="#id106">13.0.3.6.2 (2020-04-22)</a></h2>
619
+ <div class="section" id="id29">
620
+ <h2><a class="toc-backref" href="#id108">13.0.3.6.2 (2020-04-22)</a></h2>
613
621
  <p><strong>Bugfixes</strong></p>
614
622
  <ul class="simple">
615
623
  <li>The “Settings” button is now displayed for users with the “Show full accounting features” right when previewing a report. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/281">#281</a>)</li>
616
624
  </ul>
617
625
  </div>
618
- <div class="section" id="id30">
619
- <h2><a class="toc-backref" href="#id107">13.0.3.6.1 (2020-04-22)</a></h2>
626
+ <div class="section" id="id31">
627
+ <h2><a class="toc-backref" href="#id109">13.0.3.6.1 (2020-04-22)</a></h2>
620
628
  <p><strong>Bugfixes</strong></p>
621
629
  <ul class="simple">
622
630
  <li>Fix <tt class="docutils literal">TypeError: 'module' object is not iterable</tt> when using
623
631
  budgets by account. (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/276">#276</a>)</li>
624
632
  </ul>
625
633
  </div>
626
- <div class="section" id="id32">
627
- <h2><a class="toc-backref" href="#id108">13.0.3.6.0 (2020-03-28)</a></h2>
634
+ <div class="section" id="id33">
635
+ <h2><a class="toc-backref" href="#id110">13.0.3.6.0 (2020-03-28)</a></h2>
628
636
  <p><strong>Features</strong></p>
629
637
  <ul class="simple">
630
638
  <li>Add column-level filters on analytic account and analytic tags.
@@ -639,12 +647,12 @@ Sheet” to create new KPI’s for the ratios (e.g. balance_sheet.current_assets
639
647
  balance_sheet.total_assets). (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/155">#155</a>)</li>
640
648
  </ul>
641
649
  </div>
642
- <div class="section" id="id35">
643
- <h2><a class="toc-backref" href="#id109">13.0.3.5.0 (2020-01-??)</a></h2>
650
+ <div class="section" id="id36">
651
+ <h2><a class="toc-backref" href="#id111">13.0.3.5.0 (2020-01-??)</a></h2>
644
652
  <p>Migration to odoo 13.0.</p>
645
653
  </div>
646
- <div class="section" id="id36">
647
- <h2><a class="toc-backref" href="#id110">12.0.3.5.0 (2019-10-26)</a></h2>
654
+ <div class="section" id="id37">
655
+ <h2><a class="toc-backref" href="#id112">12.0.3.5.0 (2019-10-26)</a></h2>
648
656
  <p><strong>Features</strong></p>
649
657
  <ul class="simple">
650
658
  <li>The <tt class="docutils literal">account_id</tt> field of the model selected in ‘Move lines source’
@@ -674,8 +682,8 @@ style. (<a class="reference external" href="https://github.com/oca/mis-builder/i
674
682
  <li>In Excel export, keep the percentage point suffix (pp) instead of replacing it with %. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/220">#220</a>)</li>
675
683
  </ul>
676
684
  </div>
677
- <div class="section" id="id44">
678
- <h2><a class="toc-backref" href="#id111">12.0.3.4.0 (2019-07-09)</a></h2>
685
+ <div class="section" id="id45">
686
+ <h2><a class="toc-backref" href="#id113">12.0.3.4.0 (2019-07-09)</a></h2>
679
687
  <p><strong>Features</strong></p>
680
688
  <ul class="simple">
681
689
  <li>New year-to-date mode for defining periods. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/165">#165</a>)</li>
@@ -693,8 +701,8 @@ non-multi expressions yield tuples of incorrect lenght. (<a class="reference ext
693
701
  <li>Fix rendering of percentage types in Excel export. (<a class="reference external" href="https://github.com/oca/mis-builder/issues/192">#192</a>)</li>
694
702
  </ul>
695
703
  </div>
696
- <div class="section" id="id51">
697
- <h2><a class="toc-backref" href="#id112">12.0.3.3.0 (2019-01-26)</a></h2>
704
+ <div class="section" id="id52">
705
+ <h2><a class="toc-backref" href="#id114">12.0.3.3.0 (2019-01-26)</a></h2>
698
706
  <p><strong>Features</strong></p>
699
707
  <p><em>Dynamic analytic filters in report preview are not yet available in 11,
700
708
  this requires an update to the JS widget that proved difficult to implement
@@ -734,8 +742,8 @@ is checked, as for all other syle elements. (<cite>#121 &lt;https://github.com/O
734
742
  <p>If you use <tt class="docutils literal">Actuals (alternative)</tt> data source in combination with analytic
735
743
  filters, the underlying model must now have an <tt class="docutils literal">analytic_account_id</tt> field.</p>
736
744
  </div>
737
- <div class="section" id="id61">
738
- <h2><a class="toc-backref" href="#id113">11.0.3.2.2 (2018-06-30)</a></h2>
745
+ <div class="section" id="id62">
746
+ <h2><a class="toc-backref" href="#id115">11.0.3.2.2 (2018-06-30)</a></h2>
739
747
  <ul class="simple">
740
748
  <li>[FIX] Fix bug in company_default_get call returning
741
749
  id instead of recordset
@@ -746,16 +754,16 @@ need to be displayed).
746
754
  (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/46">#46</a>)</li>
747
755
  </ul>
748
756
  </div>
749
- <div class="section" id="id64">
750
- <h2><a class="toc-backref" href="#id114">11.0.3.2.1 (2018-05-29)</a></h2>
757
+ <div class="section" id="id65">
758
+ <h2><a class="toc-backref" href="#id116">11.0.3.2.1 (2018-05-29)</a></h2>
751
759
  <ul class="simple">
752
760
  <li>[FIX] Missing comparison operator for AccountingNone
753
761
  leading to errors in pbal computations
754
762
  (<a class="reference external" href="https://github.com/OCA/mis-builder/issue/93">#93</a>)</li>
755
763
  </ul>
756
764
  </div>
757
- <div class="section" id="id66">
758
- <h2><a class="toc-backref" href="#id115">10.0.3.2.0 (2018-05-02)</a></h2>
765
+ <div class="section" id="id67">
766
+ <h2><a class="toc-backref" href="#id117">10.0.3.2.0 (2018-05-02)</a></h2>
759
767
  <ul class="simple">
760
768
  <li>[FIX] make subkpi ordering deterministic
761
769
  (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/71">#71</a>)</li>
@@ -769,13 +777,13 @@ resp positive balances)
769
777
  (<a class="reference external" href="https://github.com/OCA/mis-builder/issues/86">#86</a>)</li>
770
778
  </ul>
771
779
  </div>
772
- <div class="section" id="id70">
773
- <h2><a class="toc-backref" href="#id116">11.0.3.1.2 (2018-02-04)</a></h2>
780
+ <div class="section" id="id71">
781
+ <h2><a class="toc-backref" href="#id118">11.0.3.1.2 (2018-02-04)</a></h2>
774
782
  <p>Migration to Odoo 11. No new feature.
775
783
  (<a class="reference external" href="https://github.com/OCA/mis-builder/pull/67">#67</a>)</p>
776
784
  </div>
777
- <div class="section" id="id72">
778
- <h2><a class="toc-backref" href="#id117">10.0.3.1.1 (2017-11-14)</a></h2>
785
+ <div class="section" id="id73">
786
+ <h2><a class="toc-backref" href="#id119">10.0.3.1.1 (2017-11-14)</a></h2>
779
787
  <p>New features:</p>
780
788
  <ul class="simple">
781
789
  <li>[ADD] month and year relative periods, easier to use than
@@ -812,24 +820,24 @@ created (not yet saved) report instances.
812
820
  <li>Alternative move line data sources must have a company_id field.</li>
813
821
  </ul>
814
822
  </div>
815
- <div class="section" id="id81">
816
- <h2><a class="toc-backref" href="#id118">10.0.3.0.4 (2017-10-14)</a></h2>
823
+ <div class="section" id="id82">
824
+ <h2><a class="toc-backref" href="#id120">10.0.3.0.4 (2017-10-14)</a></h2>
817
825
  <p>Bug fix:</p>
818
826
  <ul class="simple">
819
827
  <li>[FIX] issue with initial balance rounding.
820
828
  <a class="reference external" href="https://github.com/OCA/mis-builder/issues/30">#30</a></li>
821
829
  </ul>
822
830
  </div>
823
- <div class="section" id="id83">
824
- <h2><a class="toc-backref" href="#id119">10.0.3.0.3 (2017-10-03)</a></h2>
831
+ <div class="section" id="id84">
832
+ <h2><a class="toc-backref" href="#id121">10.0.3.0.3 (2017-10-03)</a></h2>
825
833
  <p>Bug fix:</p>
826
834
  <ul class="simple">
827
835
  <li>[FIX] fix error saving KPI on newly created reports.
828
836
  <a class="reference external" href="https://github.com/OCA/mis-builder/issues/18">#18</a></li>
829
837
  </ul>
830
838
  </div>
831
- <div class="section" id="id85">
832
- <h2><a class="toc-backref" href="#id120">10.0.3.0.2 (2017-10-01)</a></h2>
839
+ <div class="section" id="id86">
840
+ <h2><a class="toc-backref" href="#id122">10.0.3.0.2 (2017-10-01)</a></h2>
833
841
  <p>New features:</p>
834
842
  <ul class="simple">
835
843
  <li>[ADD] Alternative move line source per report column.
@@ -873,7 +881,7 @@ expressions were used in a KPI</li>
873
881
  </ul>
874
882
  </div>
875
883
  <div class="section" id="unreleased">
876
- <h2><a class="toc-backref" href="#id121">10.0.2.0.3 (unreleased)</a></h2>
884
+ <h2><a class="toc-backref" href="#id123">10.0.2.0.3 (unreleased)</a></h2>
877
885
  <ul class="simple">
878
886
  <li>[IMP] more robust behaviour in presence of missing expressions</li>
879
887
  <li>[FIX] indent style</li>
@@ -885,23 +893,23 @@ reports with no objects</li>
885
893
  <li>[IMP] provide full access to mis builder style for group Adviser.</li>
886
894
  </ul>
887
895
  </div>
888
- <div class="section" id="id86">
889
- <h2><a class="toc-backref" href="#id122">9.0.2.0.2 (2016-09-27)</a></h2>
896
+ <div class="section" id="id87">
897
+ <h2><a class="toc-backref" href="#id124">9.0.2.0.2 (2016-09-27)</a></h2>
890
898
  <ul class="simple">
891
899
  <li>[IMP] Add refresh button in mis report preview.</li>
892
900
  <li>[IMP] Widget code changes to allow to add fields in the widget more easily.</li>
893
901
  </ul>
894
902
  </div>
895
- <div class="section" id="id87">
896
- <h2><a class="toc-backref" href="#id123">9.0.2.0.1 (2016-05-26)</a></h2>
903
+ <div class="section" id="id88">
904
+ <h2><a class="toc-backref" href="#id125">9.0.2.0.1 (2016-05-26)</a></h2>
897
905
  <ul class="simple">
898
906
  <li>[IMP] remove unused argument in declare_and_compute_period()
899
907
  for a cleaner API. This is a breaking API changing merged in
900
908
  urgency before it is used by other modules.</li>
901
909
  </ul>
902
910
  </div>
903
- <div class="section" id="id88">
904
- <h2><a class="toc-backref" href="#id124">9.0.2.0.0 (2016-05-24)</a></h2>
911
+ <div class="section" id="id89">
912
+ <h2><a class="toc-backref" href="#id126">9.0.2.0.0 (2016-05-24)</a></h2>
905
913
  <p>Part of the work for this release has been done at the Sorrento sprint
906
914
  April 26-29, 2016. The rest (ie a major refactoring) has been done in
907
915
  the weeks after.</p>
@@ -948,8 +956,8 @@ flexible alternative to fiscal periods</li>
948
956
  consolidation accounts have been removed</li>
949
957
  </ul>
950
958
  </div>
951
- <div class="section" id="id89">
952
- <h2><a class="toc-backref" href="#id125">8.0.1.0.0 (2016-04-27)</a></h2>
959
+ <div class="section" id="id90">
960
+ <h2><a class="toc-backref" href="#id127">8.0.1.0.0 (2016-04-27)</a></h2>
953
961
  <ul class="simple">
954
962
  <li>The copy of a MIS Report Instance now copies period.
955
963
  <a class="reference external" href="https://github.com/OCA/account-financial-reporting/pull/181">https://github.com/OCA/account-financial-reporting/pull/181</a></li>
@@ -973,13 +981,13 @@ the widget to open the door to analytic filtering in the previews.
973
981
  <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>
974
982
  </ul>
975
983
  </div>
976
- <div class="section" id="id90">
977
- <h2><a class="toc-backref" href="#id126">8.0.0.2.0</a></h2>
984
+ <div class="section" id="id91">
985
+ <h2><a class="toc-backref" href="#id128">8.0.0.2.0</a></h2>
978
986
  <p>Pre-history. Or rather, you need to look at the git log.</p>
979
987
  </div>
980
988
  </div>
981
989
  <div class="section" id="bug-tracker">
982
- <h1><a class="toc-backref" href="#id127">Bug Tracker</a></h1>
990
+ <h1><a class="toc-backref" href="#id129">Bug Tracker</a></h1>
983
991
  <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/mis-builder/issues">GitHub Issues</a>.
984
992
  In case of trouble, please check there if your issue has already been reported.
985
993
  If you spotted it first, help us smashing it by providing a detailed and welcomed
@@ -987,15 +995,15 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
987
995
  <p>Do not contact contributors directly about support or help with technical issues.</p>
988
996
  </div>
989
997
  <div class="section" id="credits">
990
- <h1><a class="toc-backref" href="#id128">Credits</a></h1>
998
+ <h1><a class="toc-backref" href="#id130">Credits</a></h1>
991
999
  <div class="section" id="authors">
992
- <h2><a class="toc-backref" href="#id129">Authors</a></h2>
1000
+ <h2><a class="toc-backref" href="#id131">Authors</a></h2>
993
1001
  <ul class="simple">
994
1002
  <li>ACSONE SA/NV</li>
995
1003
  </ul>
996
1004
  </div>
997
1005
  <div class="section" id="contributors">
998
- <h2><a class="toc-backref" href="#id130">Contributors</a></h2>
1006
+ <h2><a class="toc-backref" href="#id132">Contributors</a></h2>
999
1007
  <ul class="simple">
1000
1008
  <li>Stéphane Bidoul &lt;<a class="reference external" href="mailto:stephane.bidoul&#64;acsone.eu">stephane.bidoul&#64;acsone.eu</a>&gt;</li>
1001
1009
  <li>Laetitia Gangloff &lt;<a class="reference external" href="mailto:laetitia.gangloff&#64;acsone.eu">laetitia.gangloff&#64;acsone.eu</a>&gt;</li>
@@ -1027,7 +1035,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
1027
1035
  </ul>
1028
1036
  </div>
1029
1037
  <div class="section" id="maintainers">
1030
- <h2><a class="toc-backref" href="#id131">Maintainers</a></h2>
1038
+ <h2><a class="toc-backref" href="#id133">Maintainers</a></h2>
1031
1039
  <p>This module is maintained by the OCA.</p>
1032
1040
  <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
1033
1041
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
@@ -1,11 +1,13 @@
1
1
  /** @odoo-module **/
2
2
 
3
3
  import {Component, onWillStart, useState, useSubEnv} from "@odoo/owl";
4
- import {SearchBar} from "@web/search/search_bar/search_bar";
4
+ import {useBus, useService} from "@web/core/utils/hooks";
5
+ import {DatePicker} from "@web/core/datepicker/datepicker";
5
6
  import {FilterMenu} from "@web/search/filter_menu/filter_menu";
7
+ import {SearchBar} from "@web/search/search_bar/search_bar";
6
8
  import {SearchModel} from "@web/search/search_model";
9
+ import {parseDate} from "@web/core/l10n/dates";
7
10
  import {registry} from "@web/core/registry";
8
- import {useBus, useService} from "@web/core/utils/hooks";
9
11
 
10
12
  export class MisReportWidget extends Component {
11
13
  setup() {
@@ -15,7 +17,10 @@ export class MisReportWidget extends Component {
15
17
  this.action = useService("action");
16
18
  this.view = useService("view");
17
19
  this.JSON = JSON;
18
- this.state = useState({mis_report_data: {header: [], body: []}});
20
+ this.state = useState({
21
+ mis_report_data: {header: [], body: []},
22
+ pivot_date: null,
23
+ });
19
24
  this.searchModel = new SearchModel(this.env, {
20
25
  user: this.user,
21
26
  orm: this.orm,
@@ -39,6 +44,8 @@ export class MisReportWidget extends Component {
39
44
  "widget_show_filters",
40
45
  "widget_show_settings_button",
41
46
  "widget_search_view_id",
47
+ "pivot_date",
48
+ "widget_show_pivot_date",
42
49
  ],
43
50
  {context: this.context}
44
51
  );
@@ -47,7 +54,8 @@ export class MisReportWidget extends Component {
47
54
  this.widget_show_settings_button = result.widget_show_settings_button;
48
55
  this.widget_search_view_id =
49
56
  result.widget_search_view_id && result.widget_search_view_id[0];
50
-
57
+ this.state.pivot_date = parseDate(result.pivot_date);
58
+ this.widget_show_pivot_date = result.widget_show_pivot_date;
51
59
  if (this.showSearchBar) {
52
60
  // Initialize the search model
53
61
  await this.searchModel.load({
@@ -68,6 +76,10 @@ export class MisReportWidget extends Component {
68
76
  );
69
77
  }
70
78
 
79
+ get showPivotDate() {
80
+ return this.widget_show_pivot_date;
81
+ }
82
+
71
83
  /**
72
84
  * Return the id of the mis.report.instance to which the widget is
73
85
  * bound.
@@ -92,13 +104,20 @@ export class MisReportWidget extends Component {
92
104
  }
93
105
 
94
106
  get context() {
107
+ var ctx = super.context;
95
108
  if (this.showSearchBar) {
96
- return {
97
- ...super.context,
109
+ ctx = {
110
+ ...ctx,
98
111
  mis_analytic_domain: this.searchModel.searchDomain,
99
112
  };
100
113
  }
101
- return super.context;
114
+ if (this.showPivotDate && this.state.pivot_date) {
115
+ ctx = {
116
+ ...ctx,
117
+ mis_pivot_date: this.state.pivot_date,
118
+ };
119
+ }
120
+ return ctx;
102
121
  }
103
122
 
104
123
  async drilldown(event) {
@@ -150,9 +169,14 @@ export class MisReportWidget extends Component {
150
169
  );
151
170
  this.action.doAction(action);
152
171
  }
172
+
173
+ onDateTimeChanged(ev) {
174
+ this.state.pivot_date = ev;
175
+ this.refresh();
176
+ }
153
177
  }
154
178
 
155
- MisReportWidget.components = {FilterMenu, SearchBar};
179
+ MisReportWidget.components = {FilterMenu, SearchBar, DatePicker};
156
180
  MisReportWidget.template = "mis_builder.MisReportWidget";
157
181
 
158
182
  registry.category("fields").add("mis_report_widget", MisReportWidget);
@@ -14,6 +14,12 @@
14
14
  <div class="oe_mis_builder_cp_right_bottom">
15
15
  <div class="oe_mis_builder_filter_buttons">
16
16
  <FilterMenu t-if="showSearchBar" />
17
+ <DatePicker
18
+ date="state.pivot_date"
19
+ onDateTimeChanged="onDateTimeChanged.bind(this)"
20
+ placeholder="'Base date...'"
21
+ t-if="showPivotDate"
22
+ />
17
23
  </div>
18
24
  <div class="oe_mis_builder_action_buttons">
19
25
  <button t-on-click="refresh" class="btn">
@@ -205,6 +205,7 @@
205
205
  attrs="{'invisible': [('widget_show_filters', '=', False)]}"
206
206
  />
207
207
  <field name="widget_show_settings_button" />
208
+ <field name="widget_show_pivot_date" />
208
209
  </group>
209
210
  </page>
210
211
  </notebook>