Commit Graph

245 Commits (7f4fde0ec4201ef70b27facfd8db32763d06be28)

Author SHA1 Message Date
Stéphane Bidoul (ACSONE) b633d1461e [FIX] mis_builder: fix comparison when there are no subkpis (#237)
[FIX] mis_builder: fix comparison when there are no subkpis
2016-10-11 09:04:19 +02:00
Thomas Binsfeld 9af17587fc [IMP] prepare_locals_dict (#199) 2016-09-25 12:47:48 +02:00
Thomas Binsfeld 1e5dc31137 [FIX] mis_builder: iter_cell_tuples (#198) 2016-05-27 16:27:27 +02:00
Stéphane Bidoul (ACSONE) 851a01570f [IMP] mis_builder: removed unused argument (#197)
Was forgotten in 53192385fb
2016-05-27 10:24:56 +02:00
Stéphane Bidoul 53192385fb [IMP] mis_builder: use company currency decimal place in deciding if initial balances are null or 0 2016-05-24 08:31:29 +02:00
Stéphane Bidoul 189483bba6 [IMP] mis_builder: change precision rounding from 2 to 4 to distinguish 0 from null in initial balances
This should be slightly on the safer side. Ideally, this rounding precision
should come from the kpi style (which defaults to the report style), but
that would be a lot of code for little benefits.
2016-05-23 18:29:46 +02:00
Stéphane Bidoul f4a9b0d082 [FIX] mis_builder: typo in docstring 2016-05-23 18:03:37 +02:00
Stéphane Bidoul 3e68d3d435 [IMP] mis_builder: remove deprecated api.one 2016-05-17 12:08:45 +02:00
Stéphane Bidoul 343a570bbd [IMP] mis_builder: more lint 2016-05-17 11:20:47 +02:00
Stéphane Bidoul c1adf834e9 [IMP] mis_builder: lint 2016-05-17 10:32:14 +02:00
Stéphane Bidoul 4fdc99014d [IMP] mis_builder: more tests and fixes wrt DataError in results 2016-05-16 21:51:05 +02:00
Stéphane Bidoul 9ab6489694 [IMP] mis_builder: attempt to silence spurious pylint error 2016-05-16 20:40:04 +02:00
Stéphane Bidoul 068cc14c63 [FIX] mis_builder: handle corner case errors raised by the test suite
Plus, handle even more corner cases related to NameError handling.
2016-05-16 20:31:03 +02:00
Stéphane Bidoul e34bd39f17 [IMP] mis_builder: add a wide-coverage integration test
This reveals a couple of bugs!
2016-05-16 19:38:49 +02:00
Stéphane Bidoul b45a346abb [IMP] mis_builder: better way to disable eval-used lint check 2016-05-16 19:32:11 +02:00
Stéphane Bidoul 5167dec5aa [IMP] mis_builder: be more consistent in naming row/column labels
- label: the main row/column label
- description: a more detailed description of the row/column,
  currently displayed as a second line in the header cell
- comment: a even more detailed comment,
  currently displayed as a tooltip in the interactive widget only
2016-05-16 12:49:35 +02:00
Stéphane Bidoul 992a14b316 [IMP] mis_builder: simplify widget template
Plus more consistent vocabulary for row/col labels
2016-05-16 09:38:51 +02:00
Stéphane Bidoul 6fdb58ce23 [IMP] mis_builder: remove _ from some method names
because they are part of the public API (though not usable over rpc)
2016-05-15 22:24:27 +02:00
Stéphane Bidoul a812c15447 [FIX] mis_builder: fix sum aggregation of non-stored field in non-accounting queries
fixes #178
2016-05-15 22:21:31 +02:00
Stéphane Bidoul 222874d4f6 [IMP] mis_builder: restore style expressions
The addition is local and propagates automatically to the the
widget, xls and pdf exports \o/
2016-05-15 18:20:29 +02:00
Stéphane Bidoul c832020749 [IMP] mis_builder: default values for colors 2016-05-15 18:19:28 +02:00
Stéphane Bidoul 542ac94eda [WIP] mis_builder: add TODO related to sub-kpi naming in SimpleArray 2016-05-15 18:19:05 +02:00
Stéphane Bidoul 180801d171 [IMP] mis_builder: do not talk about periods in KpiMatrix, only columns 2016-05-15 17:59:10 +02:00
Stéphane Bidoul da6556a239 [IMP] mis_builder: move comparison code to the style class
Ultimately KpiMatrix should not have to know about kpi at all, it should
become a kind of spreadsheet object that can render values in row/cols/subcols
with styles. At this stage, the qweb and pdf reports, as well as the as_dict()
method of the matrix already work without knowning anything about kpis.
2016-05-15 17:41:49 +02:00
Stéphane Bidoul 5fd1c48574 [FIX] mis_builder: multi-kpi comparison column ordering 2016-05-15 16:57:10 +02:00
Stéphane Bidoul 39917120e5 [FIX] mis_builder: tweak xlsx number format 2016-05-15 15:34:19 +02:00
Stéphane Bidoul e8aa6dd2c8 [IMP] mis_builder: number format are now part of styles
Plus a default style at the report level.
Plus correct number rendering for comparisons in Excel export.
2016-05-15 15:30:50 +02:00
Stéphane Bidoul 5fc18628e4 [FIX] mis_builder: another attempt to silence a spurious pylint-odoo error 2016-05-14 16:07:10 +02:00
Stéphane Bidoul 67ea6c8ce1 [IMP] mis_builder: comparison rendering tests and tweaks 2016-05-14 16:06:47 +02:00
Stéphane Bidoul eb409cbd99 [IMP] mis_builder: add value rendering tests, and tune the code 2016-05-14 14:10:17 +02:00
Stéphane Bidoul d2bc009961 [WIP] mis_builder refactoring: restore drilldown with support for account details 2016-05-13 21:40:33 +02:00
Stéphane Bidoul d287d34748 [LNT] mis_builder: yes, I do want to use eval() 2016-05-13 14:06:47 +02:00
Stéphane Bidoul cad22130f2 [WIP] mis_builder refactoring: add a menu entry for styles
Plus do some more source renaming around styles.
2016-05-13 13:39:48 +02:00
Stéphane Bidoul 7a17fca354 [IMP] mis_builder: cosmetics in style form 2016-05-13 08:36:57 +02:00
Stéphane Bidoul 1eaa80622a [IMP] mis_builder: add no-break space for better display of multi-formula expressions 2016-05-13 08:25:15 +02:00
Stéphane Bidoul d66f7b92fc [IMP] mis_builder: style for auto-expanded detail rows 2016-05-13 08:24:41 +02:00
Stéphane Bidoul 272427006b [WIP] mis_builder refactoring: fix and clean the test 2016-05-12 22:02:56 +02:00
Stéphane Bidoul 585516b116 [FIX] mis_builder: minor tweak to avoid empty style attributs in widget 2016-05-11 14:01:55 +02:00
Stéphane Bidoul 8e9a245dd2 [WIP] mis_builder refactoring: split compute method
So the matrix computation can be used without the json rendering.
2016-05-11 13:00:57 +02:00
Stéphane Bidoul 53f27b2edd [WIP] mis_builder refactoring: restore tooltips and make them work with subkpis 2016-05-11 11:15:54 +02:00
Stéphane Bidoul aed8023d49 [FIX] mis_builder: a few bug in mis_builder_style 2016-05-11 11:11:52 +02:00
Stéphane Bidoul 8324ef2e01 [WIP] mis_builder refactoring: split mis_builder.py in two
mis_report.py has the heavy stuff, and contains all the computation
and rendering code
2016-05-10 18:47:31 +02:00
Stéphane Bidoul 83d943be5f [WIP] mis_builder refactoring: move the "json" conversion to the matrix
mis.report.instance.compute() is now as simple as possible, and rest
is nicely factored in manageable methods \o/
2016-05-10 18:40:02 +02:00
Stéphane Bidoul 3461d123d3 [WIP] mis_builder refactoring: restore and improve comparison columns 2016-05-10 18:30:45 +02:00
Stéphane Bidoul e8993c90f9 [WIP] mis_builder refactoring: remove old, ugly code \o/ 2016-05-08 13:23:23 +02:00
Stéphane Bidoul dd52a844a6 [FIX] mis_builder: fix period comment (date from/to) display 2016-05-08 13:19:55 +02:00
Stéphane Bidoul 059ccdb975 [WIP] mis_builder refactoring: fix bug with detail accounts 2016-05-08 13:06:28 +02:00
Stéphane Bidoul 0744a803a7 [WIP] mis_builder refactoring: restore period titles in widget 2016-05-08 12:48:27 +02:00
Stéphane Bidoul fd718ca933 [WIP] mis_builder refactoring: restore proper display and sorting of detail rows 2016-05-08 11:49:47 +02:00
Stéphane Bidoul e7126a0689 [FIX] mis_builder: aep issue with smart ending balance computation 2016-05-08 11:48:53 +02:00