Commit Graph

689 Commits

Author SHA1 Message Date
Gery Debongnie b9c217e850 [FIX] add $ to jquery variables (addon web_graph)
the rendering code of the pivot table didn't use $ in jquery variables,
this commit fixes that issue and slightly simplify their names.

bzr revid: ged@openerp.com-20140508111311-kargzvzlttutwt47
2014-05-08 13:13:11 +02:00
Gery Debongnie 79c197814b [IMP] improve the way indentation is done in pivot table (addon web_graph)
Previously, it was done in a ugly way: added several spans with the class
.graph_indent.  Now, it simply sets the margin of the content.

bzr revid: ged@openerp.com-20140508110027-bdjdzlpfptjuf4fa
2014-05-08 13:00:27 +02:00
Kersten Jeremy 13d18d2bdb [FIX] Graph - Add context in fields_get to have the right translation in col_header and other places where terms was not translate.
lp bug: https://launchpad.net/bugs/1317079 fixed

bzr revid: jke@openerp.com-20140507154758-0vkq9rywjyl55f5w
2014-05-07 17:47:58 +02:00
Launchpad Translations on behalf of openerp 2b67c9c77b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140506061338-jwpj0jxfcnakph24
bzr revid: launchpad_translations_on_behalf_of_openerp-20140506061359-p8lxp23aopeb6mwh
bzr revid: launchpad_translations_on_behalf_of_openerp-20140506063612-leryt792evbx9hsy
2014-05-06 06:36:12 +00:00
Antony Lesuisse 5e21a4235d [MERGE] saas-4 up to dle@openerp.com-20140501121915-q88k37nd25ietw8c
bzr revid: al@openerp.com-20140501172508-tjennzht30ktw3nz
2014-05-01 19:25:08 +02:00
Fabien Meghazi acf2123123 [MERGE] Web assets moved from manifests to ir.ui.view bundles
bzr revid: fme@openerp.com-20140430151302-e42monb4klz4udw5
2014-04-30 17:13:02 +02:00
Gery Debongnie a6b25061ba [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140430085942-umusyhp4cs2ffezj
bzr revid: ged@openerp.com-20140430140423-kq0vdboq1mux4zfn
2014-04-30 16:04:23 +02:00
Gery Debongnie 1f693aaed6 [FIX] fix a crash in graphview when user clicked rapidly twice on menu item
The issue was that the get_search_fields method tried to get the view's 
corresponding searchview after a rpc (fields_get).  Sadly, if the user
had meanwhile clicked again on the menu item, the first view would be
detached from the view manager and would be unable to reach the search 
view.  The solution is to move the lookup for the search view in the start
method, where it is guaranteed to exist.

bzr revid: ged@openerp.com-20140430084927-m11dxqg9ko0dnu08
2014-04-30 10:49:27 +02:00
Gery Debongnie 36e3aac85e [IMP] large optimizations to the graph view rendering (pivot table)
The pivot table rendering was slow with large tables : it appended to the
table each line, so the browser had to rerender each time the page.  This
was solved by rendering the table to a document fragment, then only add
the fragment to the main document.  This speeds up considerably the process
(from 2600ms to 420ms in one test)

Also, uses basic loops instead of underscore maps in the build_rows method

bzr revid: ged@openerp.com-20140430074733-quhfkzz33rlpahps
2014-04-30 09:47:33 +02:00
Fabien Meghazi 22725bd29f [MERGE] upstream
bzr revid: fme@openerp.com-20140429142729-y4kfuohn4lsklnud
2014-04-29 16:27:29 +02:00
Gery Debongnie 065b3c2176 [IMP] add the expand all button back to the graph view
It was removed a long time ago, but it looks like the 'expand all' button
is useful enough to make a comeback.

Also, this commit removes a few useless lines in graph_widget about the 
grouped/stacked status of bar charts

bzr revid: ged@openerp.com-20140428090221-po3ksrd73093w3qm
2014-04-28 11:02:21 +02:00
Launchpad Translations on behalf of openerp 2d41c2c7d5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140426065503-a38xqdyjfr1qvghz
2014-04-26 06:55:03 +00:00
Gery Debongnie a32d8cb9de [FIX] (partially) fixes a concurrence problem in graph view
The graph view is asynchronous when updating data.  It is not safe when 
the user tries to update quickly the group bys (for example, when adding two 
group bys in quick succession).  

This patch partially fixes the problem: it makes sure that two concurrent updates 
will be correctly serialized.  However, it is not a complete fix: the crash can still happen
when three or more updates are quickly done.  A complete solution require some more work in 
keeping tracks of an update queue and serializing properly the updates. (will be done in trunk)

bzr revid: ged@openerp.com-20140425102501-qe7ve1ug8neq1twv
2014-04-25 12:25:01 +02:00
Fabien Meghazi 560ac34295 [IMP] bundlify rest of web addons
bzr revid: fme@openerp.com-20140424165735-83jty3iyrslci1q0
2014-04-24 18:57:35 +02:00
Fabien Meghazi 2541ded2c1 [IMP] bundlify web client
bzr revid: fme@openerp.com-20140424092520-xx7nocvacx4mcsyw
2014-04-24 11:25:20 +02:00
Gery Debongnie 0241b762b2 [FIX] fix line chart x-axis labels: it now correctly uses the name of the row, and not a number (addon web_graph)
bzr revid: ged@openerp.com-20140422150441-3vll2jw69z319yza
2014-04-22 17:04:41 +02:00
Gery Debongnie 394897383f [FIX] correct the scaling problem of graph bar charts: nvd3 needs a numeric value and was given a [value]. Also, improves the margin of bar/line/pie charts (addon web_graph)
bzr revid: ged@openerp.com-20140422150401-p0t9xmittp73j7hx
2014-04-22 17:04:01 +02:00
Gery Debongnie f584b030bc [FIX] correct fix for the scrolling problem in graph view: the view now saves its scrolling position before redrawing itself (addon web_graph)
bzr revid: ged@openerp.com-20140422150316-m51u750732re8qib
2014-04-22 17:03:16 +02:00
Gery Debongnie 8c001acda0 [FIX] in graph view, save the scrolling position and use it when redrawing the table (addon web_graph)
bzr revid: ged@openerp.com-20140422150209-f06ffxry1h46cpfh
2014-04-22 17:02:09 +02:00
Gery Debongnie c3c56bb2b1 [FIX] disable export to xls button in graph view when there are no data to export, this prevent a crash (addon web)
bzr revid: ged@openerp.com-20140422145955-vfls1hxktnq8m67b
2014-04-22 16:59:55 +02:00
Gery Debongnie 00cb732ea0 [FIX] only hide the export button (and not all the config buttons) in graph view when the module xlwt is not installed (addon web)
bzr revid: ged@openerp.com-20140422145918-s20n3qla1nfte5dj
2014-04-22 16:59:18 +02:00
Launchpad Translations on behalf of openerp 0a6da3662a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140418064151-m29eem9b1jfgy39a
2014-04-18 06:41:51 +00:00
Gery Debongnie f966931b87 [IMP] performance improvement: write a custom isEqual function to use instead of _.isEqual to make the code faster in graph view (isEqual was determined guilty of being slow by profiling on a large view) (addon web_graph)
bzr revid: ged@openerp.com-20140409145735-m21t2fzmaepr1hsa
2014-04-09 16:57:35 +02:00
Gery Debongnie 281c19a751 [FIX] correctly determines when there is no data to read in graph view (instead of the good old crash) (addon web_graph)
bzr revid: ged@openerp.com-20140409123628-erw8dpb2l36l7hu6
2014-04-09 14:36:28 +02:00
Gery Debongnie 8c5a06655d [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140409115954-p49pp91tioc3yw9t
2014-04-09 13:59:54 +02:00
Launchpad Translations on behalf of openerp a8ab53566c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140409064154-4bbr668s262a11mn
bzr revid: launchpad_translations_on_behalf_of_openerp-20140410055655-a13zzhsch5dj1w5r
2014-04-10 05:56:55 +00:00
Gery Debongnie 1330bb615e [IMP] massive optimization of the graph view code: more efficient access to values and smarter code to avoid reading uselessly many cells (graph view in web_graph)
bzr revid: ged@openerp.com-20140409093920-xqls2o6j6tocgf6l
2014-04-09 11:39:20 +02:00
Gery Debongnie 53cca3a046 [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140407080642-b51z9j9cryb72tpc
bzr revid: ged@openerp.com-20140408090852-xmfi9nwd2lzsfbza
2014-04-08 11:08:52 +02:00
Christophe Simonis f1d3f2a0c4 [MERGE] forward port of branch saas-3 up to revid 3995 chs@openerp.com-20140407144625-jfimvsx4mgrkztqv
bzr revid: chs@openerp.com-20140407161728-ccudwnqo970ac8ay
2014-04-07 18:17:28 +02:00
Gery Debongnie 4d79722227 [FIX] add missing semicolons, add a missing 'var' statement and remove trailing whitespace (addon web_graph)
bzr revid: ged@openerp.com-20140404143009-6uk7607bv4acbg4b
2014-04-04 16:30:09 +02:00
Martin Trigaux 28f0649a71 [FIX] skip undefined and keep formating as empty string
bzr revid: mat@openerp.com-20140404151739-u61resk70xoih5he
2014-04-04 17:17:39 +02:00
Martin Trigaux b6c578d54e [IMP] web_graph: when exporting to xls, export float data as raw instead of string
lp bug: https://launchpad.net/bugs/1279803 fixed

bzr revid: mat@openerp.com-20140404085504-t9np8xok33rb0mow
2014-04-04 10:55:04 +02:00
Gery Debongnie 0d4732b5c4 [FIX] makes sure the internal data structure of pivot table is correct after update_data (the children were not correct when the tree of headers was not full, after an expand for example (addon web_graph)
bzr revid: ged@openerp.com-20140403094050-vjeq4dks86mejuub
2014-04-03 11:40:50 +02:00
Gery Debongnie 729cd2ce02 [FIX] correct the expand functionality to avoid creating rows/cols in the other dimension of an unfolding action (addon web_graph)
bzr revid: ged@openerp.com-20140402150817-5s8drvhbznxq0hh9
2014-04-02 17:08:17 +02:00
Gery Debongnie c138b778df [FIX] correctly filters out empty groups in read_group results in the data loading code of graph view (addon web_graph)
bzr revid: ged@openerp.com-20140402114758-8qfdz8j76t2p2juo
2014-04-02 13:47:58 +02:00
Gery Debongnie cf87e07aeb [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140402081047-sh0bjvaabxrtfxmw
2014-04-02 10:10:47 +02:00
Gery Debongnie c4d0299eca [IMP] complete rewrite of the data loading code in the graph view, using the lazy/eager feature of readgroup. The code is simpler and more efficient: it only performs a fixed number of requests (well, the number is 'fixed' in the sense that it does not depend of the size of the data being displayed, but it still depends on the number of dimensions) (addon web_graph)
bzr revid: ged@openerp.com-20140402074341-8cleqizqculxmkys
2014-04-02 09:43:41 +02:00
Launchpad Translations on behalf of openerp 00f57e0710 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140401053916-5sh5hkd0k7j4q6pu
bzr revid: launchpad_translations_on_behalf_of_openerp-20140401061016-u413ch6j6f64dd4m
2014-04-01 06:10:16 +00:00
Launchpad Translations on behalf of openerp 25d2a09812 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140324061240-jlo8rbxvlnlt5a3r
2014-03-24 06:12:40 +00:00
Kersten Jeremy 9d65ff69da [FIX] Hack css for graph view
The best way will be to set svg height, but IE9 does not understand height="xxx". So we override the overflow set by bootstrap.css to fix it.

bzr revid: jke@openerp.com-20140318150059-nd6bdd58uvr1s4um
2014-03-18 16:00:59 +01:00
Launchpad Translations on behalf of openerp 948799e259 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140315070651-iyi1g70tarcqvhdc
bzr revid: launchpad_translations_on_behalf_of_openerp-20140315064235-n9sb0125g9bboyb4
bzr revid: launchpad_translations_on_behalf_of_openerp-20140316054224-hr4a70bglfizxqyy
2014-03-16 05:42:24 +00:00
Christophe Simonis c3827cb8f7 [MERGE] forward port of branch saas-3 up to revid 3967 jke@openerp.com-20140311093515-02xw8phrcqhgz6zx
bzr revid: chs@openerp.com-20140311132200-1bln6gaj80njyh18
2014-03-11 14:22:00 +01:00
Launchpad Translations on behalf of openerp e4488138f7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140306054333-zzdw1cs2090gpmll
bzr revid: launchpad_translations_on_behalf_of_openerp-20140306055603-35zlf1imt9wk0shw
2014-03-06 05:56:03 +00:00
Gery Debongnie a37f96d043 [FIX] adds a missing semicolon... :/ (addon web_graph)
bzr revid: ged@openerp.com-20140226144032-st0eqbkzco8n2unk
2014-02-26 15:40:32 +01:00
Gery Debongnie b453252c2d [IMP] this commit adds two css classes (graph_pivot_mode and graph_chart_mode) to better separate the ui from the code in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140226143919-cejqoq2kd4iwrq04
2014-02-26 15:39:19 +01:00
Gery Debongnie eb1eb48ef3 [IMP] optimizes pivot table so that it doesn't reload data when the groupbys have been changed in such a way that it should only fold some headers (addon web_graph)
bzr revid: ged@openerp.com-20140226130424-rtb5iof0c14caf56
2014-02-26 14:04:24 +01:00
Gery Debongnie e7306f2c4a [FIX] fixes various problems with the graph view and the filters in the searchbar. Now, it should properly compute and update the groupby/col_groupby in the search bar (addon web_graph)
bzr revid: ged@openerp.com-20140226111710-q11qx1tb2l0nryxf
2014-02-26 12:17:10 +01:00
Launchpad Translations on behalf of openerp a900c2f44d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140226063458-06tloufxtz1og92z
2014-02-26 06:34:58 +00:00
Gery Debongnie 47340431f9 [FIX] fixes the tooltip position in chart mode (graph view). The position was wrong because the parent position was not 'relative'. (addon web_graph)
bzr revid: ged@openerp.com-20140225141623-cawr7yur38zhjcz4
2014-02-25 15:16:23 +01:00
Gery Debongnie fed81544ad [IMP] optimizes graph view to avoid reloading data in some cases (such as removing a filter from the search view) (addon web_graph)
bzr revid: ged@openerp.com-20140225104233-zidrw03dh2hlwrng
2014-02-25 11:42:33 +01:00
Gery Debongnie 02b70e2950 [FIX] fixes problems due to the preceding merge (resolved conflict was not properly resolved) (addon web_graph)
bzr revid: ged@openerp.com-20140225103155-9cdbs8p79sa7hkwi
2014-02-25 11:31:55 +01:00
Gery Debongnie 893b7041f9 [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140225091310-pzkj5ip17esl52kz
2014-02-25 10:13:10 +01:00
Gery Debongnie 956b73998c [FIX] fixes various problems with the search bar integration with the graph view. Now, the code correctly computes the group_bys and col_groupbys contained in the various filters in the search bar (addon web_graph)
bzr revid: ged@openerp.com-20140225090349-z6udsjn0cjafu0lt
2014-02-25 10:03:49 +01:00
Launchpad Translations on behalf of openerp eaa20f9586 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140225060535-e6jwphbnlp4q2vc6
2014-02-25 06:05:35 +00:00
Christophe Simonis 49f26ffbc8 [MERGE] forward port of branch saas-2 up to revid 3950 dle@openerp.com-20140220141302-3paib80ixiyi66qg
bzr revid: chs@openerp.com-20140220161753-ec6l9ser1pbnmzgk
2014-02-20 17:17:53 +01:00
Launchpad Translations on behalf of openerp 3eceef7802 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140213054839-bknb7wozzfcl2b5p
bzr revid: launchpad_translations_on_behalf_of_openerp-20140213061121-vm9ot1x4ve6ekaoe
2014-02-13 06:11:21 +00:00
Gery Debongnie 321a4a7402 [FIX] make sure the graph view takes the col_group_by from the search view and not from the context.
It was taken from the context, and had the unfortunate side effect that the user could not ungroup by removing the facet from the search view. (addon web_graph)

bzr revid: ged@openerp.com-20140210153221-olkv8xee02r9voer
2014-02-10 16:32:21 +01:00
Gery Debongnie 9eda870d2b [FIX] fixes a bug caused by two consecutive calls to do_search, with incomplete informations in the first call. These calls then triggered useless queries and caused an incorrect (but brief) display of partial information in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140210112313-z9elwhmjil41jcd2
2014-02-10 12:23:13 +01:00
Gery Debongnie f4bbf7b5d4 [FIX] fixes an issue in graph view (addon web_graph)
when the user clicked several times on a field name to expand it, the dropdown menu was displayed several times, overlapping, instead of being reset to the last click location

bzr revid: ged@openerp.com-20140210091716-of9w9xhjnpmaa5td
2014-02-10 10:17:16 +01:00
Gery Debongnie 817b9bdb7f [IMP] removes the 'expand all' buttons, it was confusing and not really useful (addon web_graph)
bzr revid: ged@openerp.com-20140207142223-pc31xwv7kckt99a0
2014-02-07 15:22:23 +01:00
Gery Debongnie 88b7511f68 [FIX] correctly use the col group by instead of groupby when reading the context and initializing a graph view (addon web_graph)
bzr revid: ged@openerp.com-20140207135339-ohrjh6uvu22tjavh
2014-02-07 14:53:39 +01:00
Gery Debongnie d0961eb09e [FIX] many small tweaks, add some comment, rename variables to have better more informative names in excel export functionality in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140205131406-kdw5ht9u8gct9xbo
2014-02-05 14:14:06 +01:00
Gery Debongnie 19d6d98da8 [IMP] completes the excel export functionality in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140205095808-8lzwv0yqcsjnvff9
2014-02-05 10:58:08 +01:00
Gery Debongnie cfef034321 [IMP] separates the pivot table drawing from the pivot table 'computing' (width, cells, colors,...). This will be useful for the export functionality : the table can be easily serialized in json (addon web_graph)
bzr revid: ged@openerp.com-20140204113135-1igakgqdxewey3aj
2014-02-04 12:31:35 +01:00
Gery Debongnie 6ddbb1f8c6 [IMP] work in progress: adds the export functionality in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140203154704-t2i3uvezupw7kn3n
2014-02-03 16:47:04 +01:00
Gery Debongnie 882fde48f0 [IMP] work in progress: adds the export functionality in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140203113332-fvr9cra2dhj4h0ju
2014-02-03 12:33:32 +01:00
Gery Debongnie 9344f2f851 [FIX] changes the hardcoded string 'undefined' into 'Undefined' in pivot table (addon web_graph)
bzr revid: ged@openerp.com-20140128151157-3opcfcockwrgr3kx
2014-01-28 16:11:57 +01:00
Gery Debongnie f27c1df4d2 [IMP] css changes to improve look and usability of pivot table view (addon web_graph)
bzr revid: ged@openerp.com-20140128151113-g8yxl3lphpht4d89
2014-01-28 16:11:13 +01:00
Gery Debongnie ad76309fbe [IMP] makes the graph view in pivot table mode always display 'Total' instead of the current measure/title (addon web_graph)
bzr revid: ged@openerp.com-20140128132625-pk21iuhuffvx6814
2014-01-28 14:26:25 +01:00
Gery Debongnie 31374c2eef [IMP] this commit translates the hardcoded strings that appears in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140128111022-ghoxwvlmywzr2yke
2014-01-28 12:10:22 +01:00
Gery Debongnie f38017faec [FIX] fixes a crash happening when the context has a groupby attributes which is an array (addon web_graph)
bzr revid: ged@openerp.com-20140127152324-n1jeyfjvii9dfeoh
2014-01-27 16:23:24 +01:00
Gery Debongnie 3a784da015 [MERGE] merge trunk into local branch
bzr revid: ged@openerp.com-20140124153446-2mouqvp02c009y0x
2014-01-24 16:34:46 +01:00
Gery Debongnie 4620c520a1 [FIX] fixes a typo, causing crashes when selecting date fields in groupbys (addon web_graph)
bzr revid: ged@openerp.com-20140124152821-a9ts9soiwlc2niov
2014-01-24 16:28:21 +01:00
Gery Debongnie 7b4f2df8be [FIX] fixes a crash in line chart mode when the view had more than one measure (addon web_graph)
bzr revid: ged@openerp.com-20140124152536-an2aelpaa43ivzjw
2014-01-24 16:25:36 +01:00
Gery Debongnie c43147628b [REF] lots of small tweaks to improve the code, and some small fixes, after xmo's code review (addon web_graph)
bzr revid: ged@openerp.com-20140124151635-14l3dchnrmujo5ni
2014-01-24 16:16:35 +01:00
Gery Debongnie 524324ae4e [FIX] fixes two small issues concerning the groupby dates in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140124125944-wxl4zdya37pxdnqv
2014-01-24 13:59:44 +01:00
Gery Debongnie 29d08d9a6b [IMP] graph_view now properly honors the 'interval' attribute of field names in the xml description (addon web_graph)
bzr revid: ged@openerp.com-20140124084222-dq1gpg1tg8rinozx
2014-01-24 09:42:22 +01:00
Gery Debongnie 59b75a0176 [FIX] fixes a problem with fields selection : the string was not correctly displayed (addon web_graph)
bzr revid: ged@openerp.com-20140123142318-kbk6f2rsug3uxi0j
2014-01-23 15:23:18 +01:00
Gery Debongnie b83cfc2c2b [FIX] fixes a crash happening when in dashboards, the graph view was trying to access undefined attributes (addon web_graph)
bzr revid: ged@openerp.com-20140123113450-ec4fubf1urkdutw7
2014-01-23 12:34:50 +01:00
Gery Debongnie 39e0f4736f [REF] refactoring: removes the 'interval' attributes in groupbys and improves searchbar integration (addon web_graph)
bzr revid: ged@openerp.com-20140122160707-39el7frwfj4pwd4d
2014-01-22 17:07:07 +01:00
Gery Debongnie a3bb723379 [IMP] changes the backend code of graph view to use the new functionality of read_group (use 'field_name:interval' in readgroup instead of context (addon web_graph)
bzr revid: ged@openerp.com-20140122133452-wy3hrsrokhnwc3ru
2014-01-22 14:34:52 +01:00
Gery Debongnie d1e3504b80 [IMP] two small tweaks to improve the code quality in addon web_graph
bzr revid: ged@openerp.com-20140122075652-wz2uk3tv31ady4ej
2014-01-22 08:56:52 +01:00
Launchpad Translations on behalf of openerp 0f2d7e4820 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140122054041-3ebv0zxz43meid0v
2014-01-22 05:40:41 +00:00
Gery Debongnie 2cafcfbde7 [REF] large refactoring in graph view: changes the flow of the program to make it much simpler (addon web_graph)
bzr revid: ged@openerp.com-20140121143034-rid4saax5y63g7i1
2014-01-21 15:30:34 +01:00
Gery Debongnie f404bf8b40 [IMP] optimizes pivot table so that it doesn't reload data when the groupbys have been changed in such a way that it should only fold some headers (addon web_graph)
bzr revid: ged@openerp.com-20140120093254-mta9v6hjmsgfpr2n
2014-01-20 10:32:54 +01:00
Gery Debongnie ba9999c28a [FIX] fix crash happening when user goes to graph view, switch to other view, changes groupby and goes back to graph view. (addon web_graph)
bzr revid: ged@openerp.com-20140117161940-3ojz17luxtsb9qfa
2014-01-17 17:19:40 +01:00
Gery Debongnie 5aade330c2 [FIX] fixes a typo (nodata => no_data), which prevents a crash in graph_view, addon web_graph)
bzr revid: ged@openerp.com-20140117153330-9vc6bzljmso9zu71
2014-01-17 16:33:30 +01:00
Gery Debongnie 86a18410d1 [IMP] keeps the dropdown open when the user selects some measures in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140117152413-ycktqzi51a3lhhz9
2014-01-17 16:24:13 +01:00
Gery Debongnie 9a8d395078 [IMP] display bar chart controls when the size is large enough and when it makes sense (dim x + dim y >= 2) in grap view (addon web_graph)
bzr revid: ged@openerp.com-20140117145056-dby0g4sj7v056gpq
2014-01-17 15:50:56 +01:00
Gery Debongnie c547467442 [IMP] adds checkmarks next to measures when they are used in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140117144303-tqj7cn5xd1c0xvhm
2014-01-17 15:43:03 +01:00
Gery Debongnie 6839fcaddd [IMP] makes sure that the graph view does not reload data if the user removes a measure. Also, display the 'no data' screen if there are no current measure in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140117102339-99kka9v6wfsgesdn
2014-01-17 11:23:39 +01:00
Gery Debongnie c374766f9d [IMP] change the icon and tooltip of heat map (column) in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140117093302-1lprauuu4e5k8s5x
2014-01-17 10:33:02 +01:00
Gery Debongnie feff16b03e [FIX] fixes a typo 'widet_config' => 'widget_config' (it previously crashed the graph view) (addon web_graph)
bzr revid: ged@openerp.com-20140117085842-vxaxes0yv3dr7t24
2014-01-17 09:58:42 +01:00
Gery Debongnie 96835a38a3 [IMP] adds 'hidden-print' class to UI buttons in graph views so they are hidder when printed (addon web_graph)
bzr revid: ged@openerp.com-20140117082137-r249r226idp3x51u
2014-01-17 09:21:37 +01:00
Gery Debongnie 66c78675dc [MERGE] merge trunk into local branch
bzr revid: ged@openerp.com-20140116144400-2t13mcnlsnpsez7p
2014-01-16 15:44:00 +01:00
Gery Debongnie 470d42df75 [IMP] adds a 'title' attribute to the toolbar in graph view, to give some tooltips to the user (addon web_graph)
bzr revid: ged@openerp.com-20140116142748-qigjrtb510flex9s
2014-01-16 15:27:48 +01:00
Gery Debongnie 1c1a02d166 [IMP] changes the UI of the graph view: removes old dropdown buttons and adds a toolbar instead (addon web_graph)
bzr revid: ged@openerp.com-20140116140058-rd6nde1mfupgnajt
2014-01-16 15:00:58 +01:00
Gery Debongnie 588e541387 [FIX] fixes some issues with the col_group_bys in searchbar (main problem was that do_search is called twice when the user swap axis) (addon web_graph)
bzr revid: ged@openerp.com-20140116095549-3f2hbyzj32nuj147
2014-01-16 10:55:49 +01:00
Gery Debongnie 74d6e75007 [IMP] supports col groupby in search view in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140115155137-qwy0sr49zhizgmf6
2014-01-15 16:51:37 +01:00
Gery Debongnie 4343ca278a [FIX] correctly compares groupby in pivot_table to avoid bugs/crashes (now, it ignores the 'interval' attributes) so the table can interact with the graph view (addon web_graph)
bzr revid: ged@openerp.com-20140115105104-qff3t47lo1lyp5wd
2014-01-15 11:51:04 +01:00
Gery Debongnie cf81efda43 [IMP] adds search view integration in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140115093749-t2s0306fchm2tnir
2014-01-15 10:37:49 +01:00
Gery Debongnie b681cff77f [IMP] sets nvd3 library in production mode instead of debug mode (addon web_graph)
bzr revid: ged@openerp.com-20140114130141-b41640a72gpshw1x
2014-01-14 14:01:41 +01:00
Gery Debongnie 11de0f36ed [REF] separates graph view and graph widget into two files, and renames pivot into pivot_table.js (addon web_graph)
bzr revid: ged@openerp.com-20140114125142-9qj3mvu0a1fp4sis
2014-01-14 13:51:42 +01:00
Gery Debongnie de85a1cefb [REF] adds comments and reorganize the functions in PivotTable class (addon web_graph)
bzr revid: ged@openerp.com-20140114092724-z534vyceksc4dnr2
2014-01-14 10:27:24 +01:00
Launchpad Translations on behalf of openerp fb7a497ff0 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140114055838-31j3saw3pdlwevp1
2014-01-14 05:58:38 +00:00
Gery Debongnie 4d550e963e [FIX] fixes some issues with chart drawing in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140113152316-4i3endkgu10jmxgc
2014-01-13 16:23:16 +01:00
Gery Debongnie e2bb629c3c [IMP] adds support for various intervals when grouping by date in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140113133800-3n1hi5ajpioktr3d
2014-01-13 14:38:00 +01:00
Gery Debongnie 58598420fc [FIX] changes xml definition of the dropdown menu in graph view so that it nows corractly selects the chart mode (addon web_graph)
bzr revid: ged@openerp.com-20140113094858-ykasko5a1i0gpyj3
2014-01-13 10:48:58 +01:00
Gery Debongnie bb1069ace8 [REF] removes some code duplication when creating new headers in pivot class (addon web_graph)
bzr revid: ged@openerp.com-20140110151524-i2usd1nyrfpgkody
2014-01-10 16:15:24 +01:00
Gery Debongnie 2b3b08160c [REF] simplification of the way Pivot configuration is done in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140110140837-tl3ts6za0zr46id7
2014-01-10 15:08:37 +01:00
Gery Debongnie dbf064e817 [REF] removes useless comments (addon web_graph)
bzr revid: ged@openerp.com-20140110120149-pi0h75eqlr2tl9n5
2014-01-10 13:01:49 +01:00
Gery Debongnie f625675079 [REF] large refactoring in graph view: changes the underlying data structure of Pivot class and simplifies a lot of code (addon web_graph)
bzr revid: ged@openerp.com-20140110113557-6bs77dg7qcdofy40
2014-01-10 12:35:57 +01:00
Gery Debongnie 0aa0ea9e6c [REF] merges the dataloader and pivot table classes together, where they truly belong. (addon web_graph)
bzr revid: ged@openerp.com-20140107105954-beb16wspdl6ikemw
2014-01-07 11:59:54 +01:00
Gery Debongnie 6a422f27d7 [FIX] fixes the computation of the color displayed in heatmap modes in graph view. (addon web_graph)
bzr revid: ged@openerp.com-20140106083734-qkrvuhe7398me2d2
2014-01-06 09:37:34 +01:00
Gery Debongnie 47762dfca2 [IMP] allows the selection of multiple measures in graph view (addon web_graph)
bzr revid: ged@openerp.com-20140103144418-7mstnfwah6v6jkkx
2014-01-03 15:44:18 +01:00
Gery Debongnie 64775d4098 [IMP] improves the rendering of heatmap modes when multiple measures are displayed (addon web_graph)
bzr revid: ged@openerp.com-20140103143236-80zmxauy75b0n205
2014-01-03 15:32:36 +01:00
Gery Debongnie 2514343b52 [IMP] adds support for more than one measure in graph view. (addon web_graph)
bzr revid: ged@openerp.com-20140103142215-z19pnxmnla8xugx0
2014-01-03 15:22:15 +01:00
Gery Debongnie 8347c44966 [FIX] fixes a crash when the graph view receives an array of values instead of a single value describing a field (addon web_graph)
bzr revid: ged@openerp.com-20140102100127-7bmviyzujjmlfg02
2014-01-02 11:01:27 +01:00
Gery Debongnie 1dd4f9c77a [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140102085536-s87szntgpklj3cq6
2014-01-02 09:55:36 +01:00
Gery Debongnie 9f6aad4fdd [IMP] yet another css fix to add border to tables in graph view (addon web_graph)
bzr revid: ged@openerp.com-20131231121958-8bsz6d710o5xrgli
2013-12-31 13:19:58 +01:00
Gery Debongnie d63db7b67f [IMP] makes sure that the graph view properly honors default mode request as described in the xml (addon web_graph)
bzr revid: ged@openerp.com-20131231094929-giqkzmean1lralow
2013-12-31 10:49:29 +01:00
Gery Debongnie b9f9857454 [IMP] small css fix to make sure the headers are displayed with the same color (addon web_graph)
bzr revid: ged@openerp.com-20131231094823-cxhxdpebrmrq6jyv
2013-12-31 10:48:23 +01:00
Gery Debongnie 3d5b03af08 [IMP] changes the css of the pivot table to make it look decent (at least, not as awful as before), (addon web_graph)
bzr revid: ged@openerp.com-20131231090257-y0os22omx0pgjaqb
2013-12-31 10:02:57 +01:00
Launchpad Translations on behalf of openerp d963fa888c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131231050201-641kcunlgq2qa0ux
2013-12-31 05:02:01 +00:00
Gery Debongnie e69f4d1af6 [FIX] fixes a rendering bug which happened when the rowspan (or colspan) attributes were set to 0. Now, it is always set to a value >= 1 (addon web_graph)
bzr revid: ged@openerp.com-20131227152055-77fvsc27mzs0x5t9
2013-12-27 16:20:55 +01:00
Gery Debongnie fb63eb63ed [IMP] removes the stagger labels in bar charts, only uses the inclined labels when necessary (addon web_graph)
bzr revid: ged@openerp.com-20131227150719-olinm65mh515quc2
2013-12-27 16:07:19 +01:00
Gery Debongnie 650d792413 [IMP] removes the 'group/stack' buttons from the bar chart ui and adds 'group/stack' controls in the option menu of the graph widget. It makes small graphs much cleaner (addon web_graph)
bzr revid: ged@openerp.com-20131227145501-0hf21nieyl8mgomm
2013-12-27 15:55:01 +01:00
Gery Debongnie 66ee322d0f [FIX] fixes a crash happening when the context of some attributes does not have a 'group_by' attribute (in the group fields of the search view)
bzr revid: ged@openerp.com-20131227143508-3g04fn2s5u9vxams
2013-12-27 15:35:08 +01:00
Gery Debongnie 868be53bae [IMP] incline the x-axis text by 15 degree when there are too many bars to display in a bar chart. Also, reduces the number of 'ticks' displayed (addon web_graph)
bzr revid: ged@openerp.com-20131227142814-8ktqqxlthfa5hxe8
2013-12-27 15:28:14 +01:00
Gery Debongnie ed4fdc5108 [REF] simplifies a for loop to make the code simpler (addon web_graph)
bzr revid: ged@openerp.com-20131227102510-dwpjth4fng4ze14e
2013-12-27 11:25:10 +01:00
Gery Debongnie 0650d9d738 [FIX] correctly displays fields of type 'selection' in graph view. Previously, the code only displayed the key and not the value (addon web_graph)
bzr revid: ged@openerp.com-20131227102240-gmgik0p5lujssm3w
2013-12-27 11:22:40 +01:00
Launchpad Translations on behalf of openerp 1e3ebc0285 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131220051750-c2x3cf7wrd35we7a
bzr revid: launchpad_translations_on_behalf_of_openerp-20131227052617-sg1lzd37c8fk1pgm
2013-12-27 05:26:17 +00:00
Gery Debongnie e1e676d737 [FIX] correctly calls the parent of the graph view in the constructor (now, the view manager gets the correct view_id) (graph view, addon web_graph)
bzr revid: ged@openerp.com-20131226161457-a4k3iflz61fiaqj4
2013-12-26 17:14:57 +01:00
Gery Debongnie c44786804d [IMP] adds an image when a graph view has no data to display (it uses the same image as an empty dashboard) (addon web_graph)
bzr revid: ged@openerp.com-20131226133735-x2g7veg6d9p77y2d
2013-12-26 14:37:35 +01:00
Gery Debongnie 5a2ddfdf80 [FIX] forces an update when the user switches back to the graph view, to make sure the data displayed are up to date (graph view, addon web_graph)
bzr revid: ged@openerp.com-20131226123449-qjm7hvkhfsdvi7pw
2013-12-26 13:34:49 +01:00
Gery Debongnie d145c7a8c4 [IMP] displays a nice message when the graph view has no data to display (addon web_graph)
bzr revid: ged@openerp.com-20131224153735-on6cx12v7x2r1ln0
2013-12-24 16:37:35 +01:00
Gery Debongnie 69f6efa000 [IMP] hides controls (stacked/grouped) in graph view when they are useless (i.e., when there's only one dimension which can't be stacked/grouped (addon web_graph)
bzr revid: ged@openerp.com-20131224140942-w0dwy3ck6yslbhxy
2013-12-24 15:09:42 +01:00
Gery Debongnie 457090c1a3 [REF] removes some useless variables and some other cleaning to please jshint (addon web_graph)
bzr revid: ged@openerp.com-20131224112224-q1o0hmp1s2ryi9bn
2013-12-24 12:22:24 +01:00
Gery Debongnie db9cdb7eb0 [IMP] makes some small changes to improves backward compatibility in some edge cases (takes the first 'operator' as a measure instead of the last, ...) in graph view (addon web_graph)
bzr revid: ged@openerp.com-20131224100942-jnrdjeb9lg7rx8d2
2013-12-24 11:09:42 +01:00
Gery Debongnie e844ba1040 [FIX] prevents a crash happening in some cases when the searchview does not initialize a groupbygroup instance before the method register_groupby in graph view used it (addon web_graph)
bzr revid: ged@openerp.com-20131220123925-qycdvanm51nkc4uo
2013-12-20 13:39:25 +01:00
Gery Debongnie 828d06f174 [IMP] makes the graph view accept a new way to define graphs (supports type='col', type='row' and type='measure' attributes to fields, also supports 'stacked' attribute in <graph> (addon web_graph)
bzr revid: ged@openerp.com-20131220110243-sccxichm0mgm21uz
2013-12-20 12:02:43 +01:00
Gery Debongnie 2dffdc7c96 [MERGE] merge from trunk
bzr revid: ged@openerp.com-20131219151851-m5av5iz9e3km2s2u
bzr revid: ged@openerp.com-20131220091306-lbsixx9c1robif1m
2013-12-20 10:13:06 +01:00
Gery Debongnie 261b17d7b8 [REF] removes old useless comments (addon web_graph)
bzr revid: ged@openerp.com-20131219134958-tdgcu3ytbsqszczw
2013-12-19 14:49:58 +01:00
Gery Debongnie 1d92fc0353 [FIX] correctly honors the 'bar' setting in graph views descriptions (addon web_graph)
bzr revid: ged@openerp.com-20131219131058-ng9fix57v5hqu8pq
2013-12-19 14:10:58 +01:00
Gery Debongnie 7fc2afc516 [FIX] properly handles the situation where a user selected twice the same field in the search view groupbys (it simply added the field twice to groupbys instead of removing it (addon web_graph)
bzr revid: ged@openerp.com-20131219125422-n2rpzbekyg7e0eyh
2013-12-19 13:54:22 +01:00
Gery Debongnie 5e1aebc4b5 [REF] simplify the format_data method in pivot table (addon web_graph)
bzr revid: ged@openerp.com-20131219111606-u140yaf9y56q1uhg
2013-12-19 12:16:06 +01:00
Gery Debongnie a41835e296 [REF] refactoring in progress... simplify the load_data and format_data methods in pivot table (addon web_graph)
bzr revid: ged@openerp.com-20131219095708-c164shdvv59hyj9l
2013-12-19 10:57:08 +01:00
Gery Debongnie dd71f5e84b [REF] small improvement to simplify two similar methods in pivot.js. goal is to prepare a larger refactoring (addon web_graph)
bzr revid: ged@openerp.com-20131219084722-00p29m61vu51rdbb
2013-12-19 09:47:22 +01:00
Gery Debongnie 007dfea702 [REF] small refactoring, it simplify the make_cells method in pivot.js (addon web_graph)
bzr revid: ged@openerp.com-20131219080339-7aqnuibtfk1y71a3
2013-12-19 09:03:39 +01:00
Gery Debongnie d7fdeec72f [REF] refactors bar_chart method in graph widget. basically, it removes 80 duplicated lines (addon web_graph)
bzr revid: ged@openerp.com-20131218154949-9jno1wb4s549jyl7
2013-12-18 16:49:49 +01:00