Commit Graph
394 Commits
Author SHA1 Message Date
Xavier Morel fb2e7a4a06 [FIX] have form widget elements behave correctly in case of classes with dots. Thanks valentin
bzr revid: xmo@openerp.com-20111004132854-sg8vo4m3b4bvtecf
2011-10-04 15:28:54 +02:00
Xavier Morel 29cef016f9 [FIX] re-rendering of a given list's row (e.g. onchange, edition, etc...): 'view' needs to be in the context so the row's color can be computed
bzr revid: xmo@openerp.com-20111004104848-277ajqmaud8oc8hn
2011-10-04 12:48:48 +02:00
Xavier Morel 3190884fa1 [FIX] don't perform a search_read when switching view from list to form
I don't remember why I did that originally, it does not seem to serve any purpose and it causes problems in case of records with binary fields

bzr revid: xmo@openerp.com-20111004102115-lz6kgyiw35vp1t99
2011-10-04 12:21:15 +02:00
Valentin Lab 63cf2019e5 [imp] more efficient selector.
bzr revid: valentin.lab@kalysto.org-20111004102050-http3jvu0sf78fmx
2011-10-04 12:20:50 +02:00
Fabien Meghazi f76b2f55ae [MERGE] ViewManager now triggers do_search() in on_mode_switch()
The views doesn't have to worry about the search in do_show().
They just have to listen to do_search() if they are searchable.

bzr revid: fme@openerp.com-20111004094738-at91ab6a2kkxf8bq
2011-10-04 11:47:38 +02:00
Xavier Morel 112710c783 [IMP] move fetching notebook page widget into form widgets registry, thanks Valentin
bzr revid: xmo@openerp.com-20111004085119-ll3x1s2r2akcm8p2
2011-10-04 10:51:19 +02:00
Fabien Meghazi e2b6e03c3c [FIX] Save last search before triggering do_search
bzr revid: fme@openerp.com-20111004075039-n8a30wnuueiwnbwt
2011-10-04 09:50:39 +02:00
Valentin Lab 2bb8cadb4d [imp] notebookpage is now in registry also.
bzr revid: valentin.lab@kalysto.org-20111004074321-b2z121y64yynt948
2011-10-04 09:43:21 +02:00
Valentin Lab 8c1e052007 [fix] use a more solid selector to get $element
bzr revid: valentin.lab@kalysto.org-20111004072424-uwx50578hhafe2xm
2011-10-04 09:24:24 +02:00
Fabien Meghazi e5e4ab5739 [FIX] Fixed error for sidebar-less embedded list views
bzr revid: fme@openerp.com-20111003150049-n5xtpo0wjibsrhjx
2011-10-03 17:00:49 +02:00
Fabien Meghazi e80894b775 [FIX] Fixed error for sidebar-less embedded list views
bzr revid: fme@openerp.com-20111003150049-hty30u42ozakevc8
2011-10-03 17:00:49 +02:00
Fabien Meghazi 82006438fe [MERGE] Merge with trunk
bzr revid: fme@openerp.com-20111003135613-8d2ep2fv3bv713t7
2011-10-03 15:56:13 +02:00
Fabien Meghazi 3e1b007478 [IMP] Viewmanager sets dataset's domain & context on_search
bzr revid: fme@openerp.com-20111003135203-d3p18cfdh5jko976
2011-10-03 15:52:03 +02:00
Xavier Morel d7edda1b3c [FIX] open/close listview sidebar based on records being selected or not
bzr revid: xmo@openerp.com-20111003115502-nla7uqi50s0z6l3i
2011-10-03 13:55:02 +02:00
Xavier Morel 1e50dac2b8 [FIX] open/close listview sidebar based on records being selected or not
bzr revid: xmo@openerp.com-20111003115502-jivrqwcc9kcaa4kb
2011-10-03 13:55:02 +02:00
Xavier Morel a9da2abd9f [FIX] double-load on successful login
Session#session_restore is automatically called when the client
session is started, and it performs an RPC call. This RPC call is
checked and leads to the opening of the login form iif the user is not
currently logged in (does not have a valid session).

Due to the behavior of Session#rpc_ajax, this failure on grounds of
invalid session leads to the restore continuation being stored for
deferred execution once the user logs in.

Issue is that both Session#session_login and Session#session_restore
call Session#on_session_valid which tries to load all modules. As a
result and because the '_modules_loaded' flag is only set five billion
years after 'load_modules' is called both calls will try to load all
modules in parallel, leading to double downloading and execution of
all JS and CSS files coming from module data (including translation
files).

bzr revid: xmo@openerp.com-20111003090709-ree0luomezw1wzup
2011-10-03 11:07:09 +02:00
Xavier Morel 03e842f672 [FIX] double-load on successful login
Session#session_restore is automatically called when the client
session is started, and it performs an RPC call. This RPC call is
checked and leads to the opening of the login form iif the user is not
currently logged in (does not have a valid session).

Due to the behavior of Session#rpc_ajax, this failure on grounds of
invalid session leads to the restore continuation being stored for
deferred execution once the user logs in.

Issue is that both Session#session_login and Session#session_restore
call Session#on_session_valid which tries to load all modules. As a
result and because the '_modules_loaded' flag is only set five billion
years after 'load_modules' is called both calls will try to load all
modules in parallel, leading to double downloading and execution of
all JS and CSS files coming from module data (including translation
files).

bzr revid: xmo@openerp.com-20111003090709-1izso4hrbzk91sf3
2011-10-03 11:07:09 +02:00
Xavier Morel bb596c1bfc [FIX] al hacks
bzr revid: xmo@openerp.com-20111003084150-6ti0fa221h14wiik
2011-10-03 10:41:50 +02:00
Xavier Morel 013e01a52b [FIX] al hacks
bzr revid: xmo@openerp.com-20111003084150-oz87j979djfng6xb
2011-10-03 10:41:50 +02:00
kbh e2acbb9db7 [FIX] Minor change in issue of open sidebar on checked list record.
bzr revid: kbh@bde-desktop-20111003071807-9rmozt1m9h9tqxci
2011-10-03 12:48:07 +05:30
kbh 335c99fda4 [FIX] Minor change in issue of open sidebar on checked list record.
lp bug: https://launchpad.net/bugs/856376 fixed

bzr revid: kbh@bde-desktop-20111003071807-33zlrcc0vopiahoz
2011-10-03 12:48:07 +05:30
kbh de41cf7234 [FIX] change in listview for sidebar.
bzr revid: kbh@bde-desktop-20111003060239-v92vo8vc0iiq649k
2011-10-03 11:32:39 +05:30
kbh fdfe102cc4 [FIX] change in listview for sidebar.
bzr revid: kbh@bde-desktop-20111003060239-l7bwy55n8t9fkz66
2011-10-03 11:32:39 +05:30
Antony Lesuisse 3a12aa8d7c [FIX] dont use werkzeug.urls not available in 0.5 (lucid)
bzr revid: al@openerp.com-20111001175924-s1rk41xx2i22plax
2011-10-01 19:59:24 +02:00
Antony Lesuisse 4ec1113d94 [IMP] deprecate web_preload in favor of --load, server_wide_modules config option
bzr revid: al@openerp.com-20110930201018-aw9s26iqyd6rns05
2011-09-30 22:10:18 +02:00
niv-openerp ea79880c3c [imp] disable buttons in form views during the execution of its action
bzr revid: nicolas.vanhoren@openerp.com-20110930161506-bbffc4gjdt43pbvn
2011-09-30 18:15:06 +02:00
niv-openerp c3d08fa5dd [fix] problem with o2m displaying clickable button in unsaved record
bzr revid: nicolas.vanhoren@openerp.com-20110930154612-d2q5z3fy1ouih1fm
2011-09-30 17:46:12 +02:00
Xavier Morel d4d2b1b5b8 [FIX] don't break when @colors end with a semicolon
bzr revid: xmo@openerp.com-20110930132941-mw8byod4xanb8dat
2011-09-30 15:29:41 +02:00
niv-openerp d364df65ce [fix] lot of potential problems when we change something in the code due to the pickled session containing the config
bzr revid: nicolas.vanhoren@openerp.com-20110930130729-yfys0tklsujgm3ti
2011-09-30 15:07:29 +02:00
niv-openerp c3a9330838 [imp] removed some useless parameters in the openerp session
bzr revid: nicolas.vanhoren@openerp.com-20110930125809-x6n119zuu9o546u7
2011-09-30 14:58:09 +02:00
Xavier Morel 6bb8d8ea85 [ADD] readonly & movable form view
bzr revid: xmo@openerp.com-20110930081247-wl1d0i7hz206244o
2011-09-30 10:12:47 +02:00
niv-openerp 58ece9f856 [fix] error message when login invalid broken
bzr revid: nicolas.vanhoren@openerp.com-20110929151322-zcymbsemo962ky0j
2011-09-29 17:13:22 +02:00
niv-openerp 5c2d8e4cdc [fix] problem in database when creating a new database
bzr revid: nicolas.vanhoren@openerp.com-20110929145751-4oh0b9uqll8wx3zj
2011-09-29 16:57:51 +02:00
Xavier Morel ba86faac47 [IMP] shave ~190ms off of *big* listview rendering speed
make conversion of internal Records to form-shape faster by iterating over the attributes object directly instead of using _.each

bzr revid: xmo@openerp.com-20110929145031-q7mqf43gza94ekj6
2011-09-29 16:50:31 +02:00
Fabien Meghazi 59e70f4544 [FIX] si la vue est pas searchable on va appeler 'this.searchview[true]()'
bzr revid: fme@openerp.com-20110929144915-mgh3eaztp14cbbfp
2011-09-29 16:49:15 +02:00
Xavier Morel 3cde15fe01 [ADD] evaluator proof of concept: colors in list rows
bzr revid: xmo@openerp.com-20110929144036-7u2w6pf6lwkvzck0
2011-09-29 16:40:36 +02:00
Xavier Morel d793d6c1ae [ADD] atom context keys (uid and current_date) to evaluation context of row colors
bzr revid: xmo@openerp.com-20110929142410-1f9btd6f3ws0srpj
2011-09-29 16:24:10 +02:00
Xavier Morel d32d0c5637 [IMP] update py.parse to 0.2
bzr revid: xmo@openerp.com-20110929135449-ssommvnyof6auy29
2011-09-29 15:54:49 +02:00
niv-openerp a658311000 [imp] now uses a global connector for connection to OpenERP server
bzr revid: nicolas.vanhoren@openerp.com-20110929121732-xydsj26xw9fyn1hr
2011-09-29 14:17:32 +02:00
Fabien Meghazi c0736631ca [IMP] Search also when controller is not yet instanciate
bzr revid: fme@openerp.com-20110929114720-cjpkgjr7rm03w5rn
2011-09-29 13:47:20 +02:00
Fabien Meghazi 03585c43c5 [MERGE] Merge with trunk
bzr revid: fme@openerp.com-20110929113120-30k2cdyyxw7tpfot
2011-09-29 13:31:20 +02:00
Fabien Meghazi 38ef100ec8 [FIX] Introduced a bug in last commit
bzr revid: fme@openerp.com-20110929104000-vnahwe0w09p03cqx
2011-09-29 12:40:00 +02:00
Fabien Meghazi e34b07e1e3 [IMP] Fixed list view in order to support new do_search
bzr revid: fme@openerp.com-20110929103229-l9pfjqbezj28ihd9
2011-09-29 12:32:29 +02:00
niv-openerp 3c7093aa6e [imp] synch with client lib
bzr revid: nicolas.vanhoren@openerp.com-20110929102832-j3sdi29poe48vq2o
2011-09-29 12:28:32 +02:00
Fabien Meghazi a4336966fe [FIX] Forgot to merge dataset domain and contexts
bzr revid: fme@openerp.com-20110929102637-it9gxczwo40o1qqr
2011-09-29 12:26:37 +02:00
Fabien Meghazi 63223b30ab [IMP] Evaluate domain and context in viewmanager
bzr revid: fme@openerp.com-20110929095305-kol38i614124nvv7
2011-09-29 11:53:05 +02:00
Xavier Morel c6e77707ee [FIX] match first form header only so that we get the header for current form not sub-forms
bzr revid: xmo@openerp.com-20110929090205-0vn4dt4qixao5us1
2011-09-29 11:02:05 +02:00
Fabien Meghazi 96a350194a [FIX] Only trigger do_search on searchable controllers
bzr revid: fme@openerp.com-20110929080917-4ogqufkoyrwm5jej
2011-09-29 10:09:17 +02:00
Xavier Morel ccd607aae5 [IMP] cleanup and simplify graph view implementation, update underscore.string
bzr revid: xmo@openerp.com-20110929075550-o58x8sxa165sky1r
2011-09-29 09:55:50 +02:00
Antony Lesuisse 3a4c322e83 [FIX] consider typeless action as ir.actions.act_window_close
bzr revid: al@openerp.com-20110928224705-cf4dwwrz85oqv8y8
2011-09-29 00:47:05 +02:00