Commit Graph

45 Commits

Author SHA1 Message Date
Antony Lesuisse 711b22f52c controllers is family fixes 5
bzr revid: al@openerp.com-20110718151739-lrr6dibg4ed5tb2k
2011-07-18 17:17:39 +02:00
Antony Lesuisse 823f2efd05 [IMP] dashboard css
bzr revid: al@openerp.com-20110714151113-49vur1m55m7z0ybm
2011-07-14 17:11:13 +02:00
Fabien Meghazi 13cf80a229 [IMP] graph&dashboard: do not instantiate ActionManager directly anymore
bzr revid: fme@openerp.com-20110713104351-wy7dwm2v8ywsz2tf
2011-07-13 12:43:51 +02:00
Xavier Morel 94ed3f9e75 [FIX] some warnings
bzr revid: xmo@openerp.com-20110711145907-inumrb183i01a35n
2011-07-11 16:59:07 +02:00
Xavier Morel df955d1dc8 [IMP] remove some intermediate variables crud in graph
bzr revid: xmo@openerp.com-20110711145816-lrk9y1iijcy6yptl
2011-07-11 16:58:16 +02:00
Kunal Chavda (OpenERP) 2213b2bd32 [FIX]Fixed issue of automatically load graph when switch from list to graph and implement code for click on graph in dashboard will switch list view.
bzr revid: kch@tinyerp.com-20110707112822-of7q11div3hy8jl2
2011-07-07 16:58:22 +05:30
Kunal Chavda (OpenERP) d0f1ff3a38 [IMP]Improved code for when more than one field has group, legend and tooltip.
bzr revid: kch@tinyerp.com-20110701063956-40c62ommlbubzqmr
2011-07-01 12:09:56 +05:30
Kunal Chavda (OpenERP) 543460f23a [IMP]Improved code for x-axis label rotation upto sixty degree.
bzr revid: kch@tinyerp.com-20110621105031-cqb165ocpgh3og6t
2011-06-21 16:20:31 +05:30
Kunal Chavda (OpenERP) f41b9ccfa0 [FIX]fixed code for stackbar chart.
bzr revid: kch@tinyerp.com-20110621052643-q084w0yh1rky63ej
2011-06-21 10:56:43 +05:30
Xavier Morel 9853c3a23f [FIX] incompatibility between dhtmlx.Scheduler and dhtmlx.Chart, bug in dhtmlx.Chart when first data serties contains the value 0 in some places, race condition in graph addon
bzr revid: xmo@openerp.com-20110620170922-9443v3gtqza3vu2z
2011-06-20 19:09:22 +02:00
Xavier Morel ec186dfb7d [FIX] race condition between graph view loading and search request: View.start() should return a promise if it makes an async call, so caller (ViewManager in this case) knows when the graph view is ready for action
Also inherit from View

bzr revid: xmo@openerp.com-20110620143946-tv0qx84e0y06zxu7
2011-06-20 16:39:46 +02:00
Xavier Morel 2397a86d19 [MEH] whitespace changes PyCharm insists on making when I open dhtmlxChart
bzr revid: xmo@openerp.com-20110620130457-2eooal5w8opt3pn7
2011-06-20 15:04:57 +02:00
Xavier Morel fd89c4d708 [FIX] bug in dhtmlxChart in case of stacked bar chart where the first series contains a value of 0
bzr revid: xmo@openerp.com-20110620130427-kghvj8gbjth4z1aw
2011-06-20 15:04:27 +02:00
Kunal Chavda (OpenERP) d44a542efb [IMP]implement code for there is no data than show axis and pass element_id instead of view_id.
bzr revid: kch@tinyerp.com-20110620121525-kq2rw54ouu3fo8da
2011-06-20 17:45:25 +05:30
Xavier Morel ca34076fbd [IMP] rollback namespace-alteration to dhtmlXChart, fix dhtmlxscheduler and dhtmlxgantt to not fuck up the root dhtmlx namespace (which is what breaks chart)
bzr revid: xmo@openerp.com-20110620100557-zya9u6a3zuhhs0c3
2011-06-20 12:05:57 +02:00
Xavier Morel 0aedbd386c [FIX] use Number.toFixed instead of doing decimal rounding by hand
bzr revid: xmo@openerp.com-20110620075502-3p1v1asit32ti9um
2011-06-20 09:55:02 +02:00
Xavier Morel f9fad97b47 [IMP] try to improve naming slightly
bzr revid: xmo@openerp.com-20110620063848-qltrrdm88v1ww3cy
2011-06-20 08:38:48 +02:00
Xavier Morel 872f7e163d [IMP] invert tests and bail out early in order to reduce excessive nesting of functions
bzr revid: xmo@openerp.com-20110617133156-g3fk9f386tdrdcje
2011-06-17 15:31:56 +02:00
Xavier Morel 5e516e5331 [IMP] move COLOR_PALETTE to toplevel constant, so it does not have to be recreated every time we go through the corresponding function
bzr revid: xmo@openerp.com-20110617132550-b5add9fv7xuxjilz
2011-06-17 15:25:50 +02:00
Xavier Morel 57bd9de502 [IMP] reduce variable scopes: move instance variables to function scopes, remove unneeded temps, move variables to inner function scopes.
Variable scopes should be as small as possible (but no smaller) in order to make their data flow easy to understand

bzr revid: xmo@openerp.com-20110617132222-p0jabvioctjcn9o4
2011-06-17 15:22:22 +02:00
Xavier Morel 413054ce53 [IMP] use object literals when possible: clearer lower amount of noise, and clearer relations between the object and its components
bzr revid: xmo@openerp.com-20110617115559-n89evkkufc3f8k9t
2011-06-17 13:55:59 +02:00
Xavier Morel 8ad063965d [FIX] do not use for...in to iterate on arrays, avoid using it to iterate on object as well. Use _.each in either cases. See doc for rationale
bzr revid: xmo@openerp.com-20110617115226-21meg23d0tg43wgv
2011-06-17 13:52:26 +02:00
Xavier Morel 23d76c574f [FIX] Assigning variables to themselves is a NOOP in Javascript, and just noise
bzr revid: xmo@openerp.com-20110617093259-eltod1l1ytsyq82h
2011-06-17 11:32:59 +02:00
Xavier Morel 485adfdef9 [FIX] avoid reusing variables in completely different contexts, especially function parameters. Also avoid declaring the same variables multiple times in the same function, either split the usage into different variables (if it's reuse) or declare only once (if it's alternate initialization)
bzr revid: xmo@openerp.com-20110617093222-8mx8tkshkcave3g1
2011-06-17 11:32:22 +02:00
Xavier Morel c5e061fec9 [FIX] don't make explicit boolean comparisons without identity
In javascript, '0 == false', '1 == true' and even '"1" == true'. Either use variables directly in a boolean context, or use type-strict equality (===) to ensure the variable is an actual boolean, not some other type coerced to a boolean

bzr revid: xmo@openerp.com-20110617092436-s8b5v4v5ytbonvi1
2011-06-17 11:24:36 +02:00
Xavier Morel 933272263b [IMP] simplify summing: use the += operator to avoid redundancies and excessively long lines
bzr revid: xmo@openerp.com-20110617091354-nus2mw3r7g2bvbrr
2011-06-17 11:13:54 +02:00
Xavier Morel 7ed58deec7 [FIX] remove trailing commas in object literals
bzr revid: xmo@openerp.com-20110617091344-mlal79a9poagjwm3
2011-06-17 11:13:44 +02:00
Xavier Morel ceda49fbad [FIX] terminate statements missing semicolons
bzr revid: xmo@openerp.com-20110617091335-r9k07mr5m5lp9f0o
2011-06-17 11:13:35 +02:00
Xavier Morel 3bbb11353a [FIX] non-instance should all be declared with 'var'
See doc for rationale

bzr revid: xmo@openerp.com-20110617090746-z35n4jsdqvicoa9h
2011-06-17 11:07:46 +02:00
Kunal Chavda (OpenERP) 21c1626f5e [IMP]Arrange dhtmlxchart.js and minor change in css which cuts y_axis label.
bzr revid: kch@tinyerp.com-20110613113539-1fwmqzzd731cba2q
2011-06-13 17:05:39 +05:30
Kunal Chavda (OpenERP) 8521bf46a3 [FIX]fixed code for dashboard overriding graph and x-axis label.
bzr revid: kch@tinyerp.com-20110613052846-zxzetxg6dk06qzw1
2011-06-13 10:58:46 +05:30
Kunal Chavda (OpenERP) a4e00cabc0 [IMP]Implement switch view when click on pie or bar column.
bzr revid: kch@tinyerp.com-20110606055754-hfb41vvvxog6q69j
2011-06-06 11:27:54 +05:30
Kunal Chavda (OpenERP) 233f743315 [IMP]Improved code for groupby when domain is there.
bzr revid: kch@tinyerp.com-20110525113949-3spob7ruoskuws33
2011-05-25 17:09:49 +05:30
Kunal Chavda (OpenERP) 47b14bddc5 [IMP]Improved code for two operator fields are in view.
bzr revid: kch@tinyerp.com-20110525060900-n85m7ezzjhww5bw3
2011-05-25 11:39:00 +05:30
Kunal Chavda (OpenERP) a3131539a6 [IMP]Improved code for axis label.
bzr revid: kch@tinyerp.com-20110519130413-5i4uz4fjd4o6tvlm
2011-05-19 18:34:13 +05:30
Kunal Chavda (OpenERP) cc41897bd2 [MERGE] latest trunk-proto61.
bzr revid: kch@tinyerp.com-20110518055511-zg1wuyfv10xalnxm
2011-05-18 11:25:11 +05:30
Kunal Chavda (OpenERP) 963fd40ab2 [IMP]code for piechart with default color and improved code for groupby.
bzr revid: kch@tinyerp.com-20110517063718-bets5l1knkpwqhr5
2011-05-17 12:07:18 +05:30
Kunal Chavda (OpenERP) e5dc3d5d54 [IMP]show stackbarchart when there is group and improved code for legend and color.
bzr revid: kch@tinyerp.com-20110506124108-ov131ru1os1acel6
2011-05-06 18:11:08 +05:30
Kunal Chavda (OpenERP) 6b56e10d11 [IMP]Improved code for search and group record.
bzr revid: kch@tinyerp.com-20110421090552-ynzfrg2nvduseov3
2011-04-21 14:35:52 +05:30
vda (OpenERP) 7b37f59317 [IMP] Improved bar chart.decompressed dhtmlxchar js because we using dhtmlx library for graph,calendar and grant and dhtmlx object conflicts.so changed dhtmlx to dhtmlxchart.
bzr revid: vda@tinyerp.com-20110418055228-kmyskjruyohckpsk
2011-04-18 11:22:28 +05:30
vda (OpenERP) b6564900ad [FIX] Graph According to type.
bzr revid: vda@tinyerp.com-20110415064241-3rq913vloy9mchc1
2011-04-15 12:12:41 +05:30
Kunal Chavda (OpenERP) 57ea8384a7 [IMP]Initially show stackedbar chart with static data.
bzr revid: kch@tinyerp.com-20110411103925-6o0bgwp71njh33bs
2011-04-11 16:09:25 +05:30
Kunal Chavda (OpenERP) 6cd59e4cfd [IMP]Improvement in show bar chart with data.
bzr revid: kch@tinyerp.com-20110408132824-vi85a34pg4in9ndw
2011-04-08 18:58:24 +05:30
Kunal Chavda (OpenERP) 20c75c45d8 [IMP]Initialy show bar chart with data.
bzr revid: kch@tinyerp.com-20110408085005-hv9jv2wcfopnxrgm
2011-04-08 14:20:05 +05:30
Kunal Chavda (OpenERP) 8f9edb9a10 [ADD]view_graph at initial level.
bzr revid: kch@tinyerp.com-20110407133026-wtotf1dlj7m2wadf
2011-04-07 19:00:26 +05:30