summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/graph_widget.js
AgeCommit message (Collapse)Author
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