Commit Graph

24 Commits

Author SHA1 Message Date
Goffin Simon 0ef0e141c0 [FIX] web_graph: Adding to dashboard a customized view
When reading customized views from our dashbord in reporting,
the measures selected in the customized views were not taken into
account. It happened when the customized view was build from a report.

opw:698105
2017-01-04 10:28:33 +01:00
Christophe Simonis e2e60bf4eb [MERGE] forward port of branch saas-3 up to fe8106f 2014-09-26 12:53:59 +02:00
Géry Debongnie 0305010f2f [FIX] fix context problem in graph view
The group_by query expects the context to have group_by_no_leaf = true,
so we can not just blindly forward the context to the groupby query.
This is a defensive way to fix the problem, to avoid other possible
crashes.  But the context shouldn't have group_by_no_leaf anyway,
it does not make sense to explicitely do that in the action
2014-09-26 11:43:59 +02:00
Géry Debongnie 4c031b95d0 [FIX] correctly forward context in graph view
the new graph view silently ignored the context when doing its rpc
read_group.  Usually, it's not really a problem, which is why it is only
now being fixed, but some models actually use the context in read_group.
(for ex, account_entries_report)
2014-09-22 11:18:41 +02:00
Géry Debongnie 22b1f5ce0c [FIX] web: fixes issues with custom filters and search view
The problem was that when the user manipulates the graph view (in pivot
table mode), the graph view resetted the group by facet in the search
view.  It was not a problem unless a custom filter with a groupby was
already there, in which case, the group bys were duplicated.

The search view is now smarter, it only resets the additional groupbys
(and col_groupbys).   Also, to prevent usability problems, the graph
view disable the '+/-' groupbys added by a custom filters.

Note that this fix is only temporary: a revamp of custom filters, facets,
search view is coming in the next months. (at least, that's the idea). Right
now, too much 'search logic' is in the graph view.

Another note: this fix is somewhat fragile: it makes some assumptions
about the search query (mainly that the custom filter is the first facet,
also, that no other filters add groupbys/col_groupbys)
2014-09-15 09:52:34 +02:00
Raphael Collet 2ad092b5e5 [ADD] doc: new documentation, with training tutorials, and new scaffolding 2014-08-22 17:51:20 +02:00
qdc 8307a5f6ed [IMP] Graph views: show always measure + filters record measures in context 2014-08-21 11:09:49 +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 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
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 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 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 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 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 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 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 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 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 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 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