Commit Graph

138 Commits (485645c788f48e8000700668180e12cc9d11a68a)

Author SHA1 Message Date
beau sebastien c1dbd0af6f Merge pull request #179 from acsone/8.0-mis-compute-refactor-2-sbi
[IMP] mis_builder: refactor the compute method
2016-04-26 18:26:08 +02:00
Stéphane Bidoul ec690912b2 [IMP] mis_builder: copy semantics for mis.report.instance 2016-04-26 15:49:24 +02:00
Stéphane Bidoul c914c4ebfb [FIX] mis_builder: fix uninitialized variable 2016-04-11 12:37:44 +02:00
Stéphane Bidoul c57c25d814 [IMP] mis_builder: refactor the compute method
The main computation entry point is now on mis.report instead of
mis.report.instance.period so it can easily be reused by other
module who need to evaluate mis.report's on without creating
full-fledge persistant mis.report.instance (such as a wizard
that allows the user to select the period for a one-off run).
2016-04-09 14:03:41 +02:00
Stéphane Bidoul 3a868b0ea5 [IMP] mis_builder: meaningful copy for MIS Report templates 2016-04-04 14:51:07 +02:00
Pedro M. Baeza f69d436fb1 Merge pull request #169 from ThomasBinsfeld/8.0_add_AccountingNone
[IMP] mis_builder: display blank cells instead of 0.0 when there is no data
2016-03-22 19:08:12 +01:00
Stéphane Bidoul e8cb112c21 mis_builder: render blank instead of +0 comparison columns 2016-03-18 13:09:01 +01:00
Adrien Peiffer (ACSONE) 2e0967fcee [FIX][mis_builder] Fix the creation of a new mis.report.instance. 2016-03-16 10:23:40 +01:00
Stéphane Bidoul 2b1f182d62 [FIX] fix comparison rendering in presence of AccountingNone 2016-03-14 12:18:10 +01:00
Stéphane Bidoul fe4fa678fb Add copyright header and __all__ to accounting_none.py 2016-03-13 22:56:39 +01:00
Stéphane Bidoul 9b626fe5da [IMP] improve AccountingNone wrt comparisons mainly 2016-03-13 22:42:58 +01:00
Stéphane Bidoul 2958d3fa8e [FIX] reset permissions that should not have changed 2016-03-13 22:17:04 +01:00
Adrien Peiffer (ACSONE) e89937c164 [IMP][mis_builder] Improve usability : Display directly report instance instead of report instance settings. 2016-03-09 14:14:26 +01:00
ThomasBinsfeld d91746bb91 [ADD] AccountingNone (singleton) to differentiate balances among which the debit and the credit are zero and balances among which debit and credit nullify 2016-03-07 09:35:39 +01:00
Pedro M. Baeza 631e6d98e0 Merge pull request #166 from acsone/8.0-forward-port-sbi
[8.0] mis_builder forward port of 7.0 fix
2016-03-06 15:59:55 +01:00
Laetitia Gangloff a4c9230b7e mis_builder : in compute do not set val in localdict if there was a computation error 2016-03-06 10:56:17 +01:00
Adrien Peiffer (ACSONE) 7ed1806781 [IMP][mis_builder] MIS Builder widget improvement, add print and export button in the widget. 2016-02-23 10:51:39 +01:00
jbeficent 17a84fa8c5 [IMP] add prefixes. comes from PR #145 2016-02-11 12:11:29 +01:00
Stéphane Bidoul cb17def7be [IMP] mis_builder: _get_additional_query_filter on period model
This is more consistent in case we want to have an analytic filter on the columns.
2015-10-29 18:28:35 +01:00
Stéphane Bidoul f4fbab3c1e [ADD] mis_builder: hooks for analytic filtering 2015-10-27 22:01:34 +01:00
Stéphane Bidoul f4d0bb25eb [FIX] mis_builder: correct implementation and doctests for _min/_max 2015-08-30 16:35:03 +02:00
Stéphane Bidoul 9cad3666ad [IMP] mis_builder: update min/max function signatures
so min(x, y, ...) and min([x, y, ..]) both work as expected.
2015-08-28 14:45:28 +02:00
Stéphane Bidoul 09d69b97ea [IMP] mis_builder: improve eval context of query domain
Make it closer to the evaluation context available for server actions.
2015-08-22 11:31:37 +02:00
Alexis de Lattre feb11730a5 PEP8 2015-07-29 16:25:02 +02:00
Alexis de Lattre 4bc6080ce0 Add ability to use ('user_id', '=', uid) in a domain 2015-07-29 16:23:45 +02:00
Stéphane Bidoul 57a9bbb31d [FIX] mis_builder: do not arbitrarily filter on company in queries 2015-07-26 23:12:46 +02:00
Stéphane Bidoul 4cd4a14390 [FIX] mis_builder: do not crash on aggregate queries with no results 2015-07-26 23:12:45 +02:00
Stéphane Bidoul 65c95b5a77 [IMP] mis_builder: fix docstring and improve readability of get_aml_domain_for_expr 2015-07-26 23:12:45 +02:00
Stéphane Bidoul e6888b7581 [FIX] mis_builder: fix time computation regression introduced in new api conversion 2015-07-26 23:12:45 +02:00
Stéphane Bidoul 009dbafcca [IMP] mis_builder: remove old api remnant 2015-07-26 23:12:45 +02:00
Stéphane Bidoul 0cb1658556 [FIX] mis_builder: translatable comparison column header 2015-07-26 23:12:45 +02:00
Stéphane Bidoul 42fd267ffb [FIX] mis_builder: better locale-aware date headers 2015-07-26 23:12:45 +02:00
Stéphane Bidoul 7c3f0a53e6 [IMP] mis_builder: log conditional style evaluation errors 2015-07-26 23:12:45 +02:00
Stéphane Bidoul ce8eef95e3 [IMP] mis_builder: improve kpi _onchange_type 2015-07-26 23:12:45 +02:00
Stéphane Bidoul 68c5a4b12a [IMP] mis_builder: root account must be selected by user
Instead of attempting to deduce it from company.
2015-07-26 23:12:45 +02:00
Stéphane Bidoul 1850957539 [FIX] mis_builder: fix regexp in legacy mode for account codes containing letters 2015-07-26 23:12:45 +02:00
Stéphane Bidoul 203891ddb5 [IMP] mis_builder: new api 2015-07-26 23:12:44 +02:00
Stéphane Bidoul aeb1b48cdf [IMP] mis_builder: pep8 2015-07-26 23:12:44 +02:00
Stéphane Bidoul 2303798ee0 [FIX] mis_builder: percentage comparison in presence of negative values 2015-07-26 23:12:44 +02:00
Stéphane Bidoul d5ec45aa24 [IMP] mis_builder: improve docstrings 2015-07-26 23:12:44 +02:00
Adrien Peiffer (ACSONE) ab1318d6cc [ADD] mis_builder: Add possibility to define orientation on pdf report 2015-07-26 23:12:44 +02:00
Stéphane Bidoul cf975bd822 [IMP] mis_builder: pdf export embryo (working but not styled yet) 2015-07-26 23:12:44 +02:00
Stéphane Bidoul 965b3712b6 [IMP] mis_builder: no need to restrict report and instance name length 2015-07-26 23:12:44 +02:00
Stéphane Bidoul 92eb54808c [IMP] mis_builder: add copyright header to aep.py 2015-07-26 23:12:44 +02:00
Stéphane Bidoul afdf1002d7 [IMP] mis_buidler: avoid non-sense % comparisons with base value close to 0 2015-07-26 23:12:43 +02:00
Stéphane Bidoul 7c0e35c684 [IMP] mis_builder: code cosmetics 2015-07-26 23:12:43 +02:00
Stéphane Bidoul f772b14b67 [IMP] mis_builder: use non-breaking hyphen for negative sign
Also refactor _render_num() for readability.
2015-07-26 23:12:43 +02:00
Stéphane Bidoul 41827e60e9 [FIX] mis_builder: excel export works again... strange 2015-07-26 23:12:43 +02:00
Stéphane Bidoul 16e45f245e [FIX] mis_builder: OrderedDict serializes to json dict
So this was relying on non-standard and unreliable feature of
browsers to preserve order.
2015-07-26 23:12:43 +02:00
Stéphane Bidoul 615e67e02a [IMP] mis_builder: tiny refactoring 2015-07-26 23:12:43 +02:00