summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/view_tree.js
AgeCommit message (Collapse)Author
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
2015-02-05[ADD] py.js: len() and truthiness on lists, tuples and dictsArthur Maniet
* use new support to colorize reconciled bank statement lines * fixes tokenization of ``is not`` to not blow up on ``not foo`` * improves calling code to get truthiness of evaluated expression instead of truthiness of javascript-equivalent objects: an empty list is falsy in Python but truthy in javascript, since the evaluated expression is in Python one would expect Python truthiness rules without having to manually convert to boolean closes #5070
2015-01-30[FIX] web: unbreak tree viewGéry Debongnie
The do_show and do_hide methods did not call their _super, which is bad. Also, add an icon for the poor treeview.
2015-01-19[MERGE] forward port of branch 8.0 up to 0aab81cChristophe Simonis
2015-01-14[CHG] Fix task 7536 / PR #499 differentlyXavier Morel
Issue was the propagation of contextual values across actions, more precisely conserving the selected fiscal year when selecting an account from the chart of accounts tree view: the chart of accounts tree view is generally opened for a specific fiscal year, and it seemed sensible that opening an account would show only the journal items for the previously selected fiscal years rather than all items ever. PR #649 altered action.read by tentatively evaluating the action's context, however this has the side-effect of providing evaluated contexts when creating or editing actions via the UI, usually breaking them in the process (as the context at this point is basically nonsensical for the action's purpose). This backs out the previous fix, and creates a fix restricted to the tree view's JS (thereby removing the feature for window actions not invoked from a tree view). closes #4677, closes #4690
2014-11-05[FIX] web: fix remarks from prCedric Snauwaert
2014-11-05[FIX] web: remove datejs and replace by momentjsCedric Snauwaert
2013-09-11[MERGE] point_of_sale: various fixes and improvementsFrédéric van der Essen
bzr revid: chs@openerp.com-20130910125223-5iu0tohmourxcz64 bzr revid: fva@openerp.com-20130911155921-xyqskhjx9r9pgw9c
2013-08-23[MERGE] forward port of branch saas-1 up to revid 3743 ↵Christophe Simonis
chs@openerp.com-20130823145204-xwpnlwg0gg2259f6 bzr revid: chs@openerp.com-20130823145527-fz58kta3qpup4sb2
2013-08-29[FIX] tree views: rename variable parent-id to avoid conflicts with record ↵Martin Trigaux
fields name (eg: account.account) bzr revid: mat@openerp.com-20130829124448-xr89v0gsuoukqhao
2013-08-06[IMP] Removed old JavaScript module loading system in the 'web' addons. ↵niv-openerp
Still has some retro-compatibility for other addons. bzr revid: nicolas.vanhoren@openerp.com-20130806125022-bzjbtn0nqk40ak4g
2013-07-05[IMP]Add parent-id attribute to get childrens of that parentid and show ↵bth-openerp
selected parent's childrens rather than else. lp bug: https://launchpad.net/bugs/1183156 fixed bzr revid: bth@tinyerp.com-20130705121036-0pn454ts3z9wkwxr
2012-12-13[IMP] lot of small improvements to better detect when a view has finished ↵niv-openerp
loading bzr revid: nicolas.vanhoren@openerp.com-20121213140914-8d1u01h17r2x4fpu
2012-12-06[FIX] error in tree view during refactoringFabien Meghazi
bzr revid: fme@openerp.com-20121206091334-c2z76kbmibqq0jgq
2012-12-04[IMP] Removed fields_view_get from controllers. Add a helper client side.Fabien Meghazi
bzr revid: fme@openerp.com-20121204163948-pctxvy55w34e1pg9
2012-11-26[REM] EVALPOCALYPSE PART 2: no more python-side evalXavier Morel
trigger an error if a nonliteral context is pushed to the server (through a new object_hook) bzr revid: xmo@openerp.com-20121126140525-ni2x5m56upss610b
2012-11-23[REM] server-side eval_domain_and_contextXavier Morel
bzr revid: xmo@openerp.com-20121123113932-siz0u2vp2u7z6wk2
2012-11-08[MERGE] trunkFabien Meghazi
bzr revid: fme@openerp.com-20121108091548-enm1aftirkzngld1
2012-11-07[REV] nicolas.vanhoren@openerp.com-20120712074237-xugmbw19wjjoes9lXavier Morel
eagerly loaded treeviews, making heavily loaded charts of accounts completely unusable bzr revid: xmo@openerp.com-20121107143740-31i16933dfg4t6xk
2012-10-30[IMP] jQuery deferred API changes refactoring. Changed 'then's in ↵Fabien Meghazi
'done'/'fail' and 'pipe's in 'then' bzr revid: fme@openerp.com-20121030140630-gf20ye8fou1ebxft
2012-10-03[IMP]In rpc method remove callback and modify relate codeggh-openerp
bzr revid: ggh@tinyerp.com-20121003122836-36g8ijxdcjwgntjl
2012-08-24[IMP] made a whole-application replace of $element by $elniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20120824182707-vt91ef40ieeudwyw
2012-07-03[IMP]minor changes.Vidhin Mehta (OpenERP)
bzr revid: vme@tinyerp.com-20120703133508-33lfisga2u4tlepe
2012-07-03[IMP]expand all and render all records with at one time.Vidhin Mehta (OpenERP)
bzr revid: vme@tinyerp.com-20120703121914-yf9hbri57grukuff
2012-07-02[IMP]implement css and collapse all functionality.Vidhin Mehta (OpenERP)
bzr revid: vme@tinyerp.com-20120702121927-wbg5pncvw4qo8cni
2012-06-27[IMP] Support for @class in views definitionsFabien Meghazi
bzr revid: fme@openerp.com-20120627151733-cgtfminjoqoxix11
2012-06-27[CHG] Ashes to ashes, dashes to underscores.Fabien Meghazi
bzr revid: fme@openerp.com-20120627141249-o10e2htxqtio72l7
2012-04-17[imp] remaining of refactoringniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20120417121559-e94wr8ym8sb2f7c1
2012-04-05[imp] refactoring to allow easy usage of embedded view in any viewniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20120405160315-vn2gawdesxuy53b3
2012-03-05[MERGE] bug fixes form 6.1 branchXavier Morel
bzr revid: xmo@openerp.com-20120305070634-li0eloj7vhsljguu
2012-02-27[UP] py.parse 0.2 to py.js 0.4 ↵Xavier Morel
~ should probably go through a testing phase (checking its result against that of eval_domain_and_context) for a while, but apart from that it's supposed to work. 'stdlib' stuff (datetime.date.today, datetime.timedelta, time.localtime, time.time, time.strftime) still need to be written. Isn't there also a dateutil.relativedeleta somewhere? Anyway that needs to be done and the various evaluation contexts need to be defined, but the valuator itself should mostly work. bzr revid: xmo@openerp.com-20120227073721-nkgeiqacbzch8xev
2012-02-17[FIX] evaluate compound context from treeview before executing actionXavier Morel
not actually sure if ActionManager#do_action is supposed to get a literal or a nonliteral context at this point... but ViewManager(Action) does not seem to like nonlit contexts at all so... lp bug: https://launchpad.net/bugs/933360 fixed bzr revid: xmo@openerp.com-20120217093541-pudzg8x4u1dhbkjf
2012-01-30[FIX] don't forget to set py.bool in context of py.eval/py.evaluateXavier Morel
py.eval really needs to automatically have builtins in its evaluation context... lp bug: https://launchpad.net/bugs/922651 fixed bzr revid: xmo@openerp.com-20120130085557-oqmjs0owgdrwshu0
2012-01-10[IMP] More dataset refactoringFabien Meghazi
bzr revid: fme@openerp.com-20120110165451-pvchn668y0b1p645
2012-01-10[IMP] Refactored Dataset#read_ids usageFabien Meghazi
bzr revid: fme@openerp.com-20120110154500-466y26mkyb947nze
2011-12-16[ADD] lazy translation function, to correctly translate strings in contexts ↵Xavier Morel
evaluated before the translation db has been loaded bzr revid: xmo@openerp.com-20111216130000-56qd717d79529opy
2011-12-16[ADD] translatable name to viewsXavier Morel
lp bug: https://launchpad.net/bugs/904989 fixed bzr revid: xmo@openerp.com-20111216112054-xys9q3ap6dcatppr
2011-12-16[FIX] minimal handling of url for tree viewsChristophe Simonis
bzr revid: chs@openerp.com-20111216105024-m39408ii7mqplhy3
2011-11-18[FIX] correctly pass active_* context keys along when executing an action ↵Xavier Morel
from the treeview lp bug: https://launchpad.net/bugs/888397 fixed bzr revid: xmo@openerp.com-20111118134555-tmnh06kmx81mvqhx
2011-11-18[IMP] pass along the action context when requesting a tree viewXavier Morel
bzr revid: xmo@openerp.com-20111118134502-t6ltgtooij0ob0bt
2011-10-12[FIX} incorrect condition for not going into colors management on tree viewsXavier Morel
bzr revid: xmo@openerp.com-20111012111429-duldg0ko9wuq2zje
2011-10-11[IMP] copy colorization code from listview to treeviewXavier Morel
bzr revid: xmo@openerp.com-20111011112924-ih7on411mirf5wmi
2011-09-15[imp] changed init of most views + the places were we init themniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20110915094944-7l229rjknptr5vcl
2011-09-12[IMP] fix more jsdoc to not have any global extracted in jsdocXavier Morel
bzr revid: xmo@openerp.com-20110912120604-ojzbfhjkobgoueo6
2011-09-07[IMP] Removed global QWeb. Now instanciate a QWeb2.Engine for each session: ↵Fabien Meghazi
instance.web.qweb bzr revid: fme@openerp.com-20110907093743-k0224c5qjb74hxvb
2011-09-06[IMP] factorize view/load part1Antony Lesuisse
bzr revid: al@openerp.com-20110906205438-wk1x6dx2mp103en2
2011-09-05rename base into web part1Antony Lesuisse
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1