summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/graph_widget.js
AgeCommit message (Collapse)Author
2017-04-11[REF] web, *: redesign all JS viewsGéry Debongnie
This commit introduce a full redesign of all JS views. We started basically from scratch. The goal was to unify all the various views under a common framework, to make them testable, to make then usable in different conditions (in studio, or in the frontend), and to make our lives easier. Some important points are: - we introduced new coding guidelines (camelCase, 80 chars width, ...) - we have a brand new testing framework (still QUnit based) - kanban view moved to the web addon - calendar view (formerly web_calender) moved to web as well - the tree view was removed - all new code should be documented We hope that this code is the start of a new era for the Odoo web client, we want to have a high quality codebase, well documented, well tested, well designed. Work done by the framework team: mostly aab, ged, chm, dmo, qsm
2017-01-18[IMP] web: pie chart with a percentage labelFabien Pinckaers
2017-01-02[FIX] web: error if chart with only zero valuesNicolas Lempereur
We could get an js error if the chart contained zero values. opw-703245
2016-12-22[FIX] web: y-axis width in graph viewNicolas Martinelli
Simplifies the left margin calculation logic with a pre-defined width. In practice, more use cases should be taken into account, and that could just make the logic overkill. opw-697626
2016-12-22[FIX] web: y-axis precisionNicolas Martinelli
In graph view, the y-axis always uses the standard float precision with 2 digits. This might not be enough if the precision was defined differently for a given float type. opw-697625
2016-12-22[FIX] web: rotate graph labelNicolas Martinelli
When there are too many labels to display on the x-axis, they overlap and it simply becomes unreadable. By slightly rotating them, this can be avoided in most cases. opw-697625 opw-697626
2016-12-08[FIX] web: prevent crash in line chart with 1 recordGéry Debongnie
Since commit 86252428846607cd5f4b18c, the graph view crashed when displaying a line chart with only one record. The reason is that the method display_line can return undefined (if no line chart can be displayed). In that case, there is no reasy to try to display its tooltip. This commit simply protect against the case where it is undefined.
2016-11-17[MERGE] forward port branch saas-11 up to 3b2f4e2Christophe Simonis
2016-11-17[MERGE] forward port branch 9.0 up to 7ee09edChristophe Simonis
2016-11-16[FIX] web: properly destroy nvtooltips when switching viewsqsm-odoo
If the graph view was left while a nvtooltip was shown (thanks to keyboard shortcuts or during loading time), the nvtooltip remained and was only destroyed when leaving the action. Now they are automatically removed with the view as they are now placed inside of them instead of inside the body element.
2016-07-15[MERGE] forward port branch saas-11 up to a62b8cfChristophe Simonis
2016-07-14[MERGE] forward port branch saas-10 up to 156dee2Christophe Simonis
2016-07-07[IMP] web: Quantity is very misleading in reporting views --> e.g. SO Line ↵Fabien Pinckaers
Quantity is perceived as Quantity of products, whereas it's the count of SO Lines. Renaming to Count
2016-06-08[MERGE] forward port of branch saas-11 up to ac50230Christophe Simonis
2016-06-08[MERGE] forward port of branch saas-10 up to 2f948c7Christophe Simonis
2016-06-02[MERGE] forward port of branch saas-6 up to 589751cChristophe Simonis
2016-05-30[FIX] web: incorrect reference to openerpGéry Debongnie
I assume the problem was introduced by a forward port. But whatever the case, we should not ever use the variable 'openerp' in jsland.
2016-05-24[MERGE] forward port of branch saas-10 up to fac4cc7Christophe Simonis
2016-05-17[FIX] web: left margin of graphNicolas Martinelli
The left margin of the graph doesn't take into account the width of the maximum Y-axis value. In case the values are high (> 10^7), they are cropped. The fix is to adapt the left margin as a function of the size of the maximum value. opw-676538
2016-05-17[FIX] web: Y-axis formattingNicolas Martinelli
In case of a line graph, the values of the Y axis are not formatted as numbers, although they are on the bar graph.
2016-04-21[REF] web: stop duplicating webAaron Bohy
Avoid duplicating web addon in enterprise by extracting a common basis. Enterprise features stay in enterprise, but use that common basis. Mainly: - JS refactoring and linting - Conversion of .sass into .less split into multiple files - Templates cleaning and DOM simplification - Re-generation of web.pot, and update of .po files
2016-04-08[FIX] web: graph_view now actually supports 'stacked' attributeGéry Debongnie
For some reason, it was lost. Probably in the graph view/pivot view split. This commit simply accepts the attribute, but default to true, so nothing changes unless you have explicitely set it to false. Also, fixes en error introduced by a forward port (the use of openerp.web.format_value)
2015-11-19[IMP] web: graph legend tweaks when many itemNicolas Lempereur
The legend of the graph when there was too much items in it could prevent user to see a part or even the whole graph. On non-mobile device, move the Pie Chart legend to the right, thus if it overflows the char is still visible and we can toggle the seen top legend item. Otherway, the legend on top is hidden when : - there is more than 25 legend items and the device has width < 768 - there is more than 50 legend items and the device has 768 <= width < 992 - there is more than 75 legend items and the device has 992 <= width < 1200 - there is more than 100 legend items and the device has 1200 <= width Since this is based only on the number of legend items but legend items could have variable name lengths, there will still be edge case where the legend obstruct the graphical data display. In this situation the current way to cope with this further filter the displayed data. opw-653445
2015-10-29[FIX] web,account,website_links: update nvd3 to last versionGéry Debongnie
This commit was necessary to fix weird problems in 9.0-nightly. Phantomjs and the old nvd3 implementations did not play well together. * transitionDuration() replaced by duration() * tooltips() & tooltipContent replaced by tooltip.enable and tooltip.contentGenerator * remove useless less for tooltip Thanks to mge for his help
2015-10-12[FIX] web: export terms of communityMartin Trigaux
not enterprise + community Fix typo in description string (was already done in enterprise)
2015-07-10[IMP] web: split model.js into model.js and data_model.js. Web js modules ↵Christophe Matthieu
must call web.DataModel.
2015-05-28[MERGE] forward port of branch saas-6 up to bf1e999Christophe Simonis
2015-03-21[MERGE] forward port of branch saas-6 up to 42db2dbChristophe Simonis
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] web: add module system to the web clientGéry Debongnie
This commit introduces a new module system for the javascript code. Instead of using global (namespaced) variables everywhere (like openerp.web.whatever, ...), each file declare one (or more) module with its dependencies. Each module will be loaded after its dependencies, and will be given a reference to the return values. This change is a massive departure from the way the client worked previously. It will sadly break some/most history, but I am sure that the future git ecosystem will allow you to easily browse the history past this revision (one can dream). This commit feature: * main namespace is now odoo instead of openerp * a way to define modules and dependencies (inspired by requirejs) * many files have been splitted in simpler subfiles * basic support for debugging in odoo.__DEBUG__ * no global variable (i.e. nothing in window.openerp) * many bug fixes, many new bugs Future vision: this modularization should simplify future code development, simplify debugging and will allow a serious testing effort