Commit Graph
360 Commits
Author SHA1 Message Date
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 bb596c1bfc [FIX] al hacks
bzr revid: xmo@openerp.com-20111003084150-6ti0fa221h14wiik
2011-10-03 10:41:50 +02:00
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
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
niv-openerp 3c7093aa6e [imp] synch with client lib
bzr revid: nicolas.vanhoren@openerp.com-20110929102832-j3sdi29poe48vq2o
2011-09-29 12:28:32 +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
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
Antony Lesuisse 015d2ae88b [FIX] remove openerpdispatch openerlib need to catch openerp.exceptions.* and raise as openerplib.exceptions.*
bzr revid: al@openerp.com-20110928221344-z2e9ve48js0fi4be
2011-09-29 00:13:44 +02:00
niv-openerp 62a8080818 [fix] problem with context keys not passed correctly in some cases, here the invoice created from a sale order
bzr revid: nicolas.vanhoren@openerp.com-20110928164428-07tzfmcip03xspjq
2011-09-28 18:44:28 +02:00
niv-openerp e43790f7f2 [imp] refactoring to improve the way the components are destroyed
bzr revid: nicolas.vanhoren@openerp.com-20110928151613-8suxvi1rzn9t40gd
2011-09-28 17:16:13 +02:00
niv-openerp b41131cdc6 [fix] problem with al making refactorings like a baraki de kermesse
bzr revid: nicolas.vanhoren@openerp.com-20110928123746-xudpsdgx353s2fnz
2011-09-28 14:37:46 +02:00
niv-openerp 3400e13621 [fix] problem in o2m, not restoring correctly the status of some o2m which caused problem in chart of account wizard
bzr revid: nicolas.vanhoren@openerp.com-20110928115537-8fa3lls2e04b3fau
2011-09-28 13:55:37 +02:00
Antony Lesuisse 0ecd9811b3 [MERGE] login nivified
bzr revid: al@openerp.com-20110928094122-qvlqcxya0ba3u7p7
2011-09-28 11:41:22 +02:00
Fabien Meghazi ad8a70c763 [FIX] Context of actions loaded by buttons were not properly evaluated
bzr revid: fme@openerp.com-20110928093553-571zsugcocpkk1hm
2011-09-28 11:35:53 +02:00
Christophe Simonis a578747e53 [FIX] wrap Login template
bzr revid: chs@openerp.com-20110928091958-3pbgyvug309bfmb1
2011-09-28 11:19:58 +02:00
niv-openerp 68df0092f1 [imp] added test in context/domain decoder to check possible error from javascript side
bzr revid: nicolas.vanhoren@openerp.com-20110928091552-8ghutbmy1ixif5l9
2011-09-28 11:15:52 +02:00
Christophe Simonis b223c0a650 merge upstream
bzr revid: chs@openerp.com-20110928085150-nkupuglnbrrzixyy
2011-09-28 10:51:50 +02:00
Christophe Simonis e4c2cfb4ba [FIX] nivification of Login Widget
bzr revid: chs@openerp.com-20110927155347-dcqeg7hlyaq5djis
2011-09-27 17:53:47 +02:00
Antony Lesuisse 5dfc14d359 [IMP] web_preload js part
bzr revid: al@openerp.com-20110927111402-teb8bpavj4atghle
2011-09-27 13:14:02 +02:00
Christophe Simonis 567cd953ca [IMP] nivification of Login widget
bzr revid: chs@openerp.com-20110927093232-j6rdzec2k1u6g2h1
2011-09-27 11:32:32 +02:00
Christophe Simonis 6b8d98b54a [FIX] correct the js-ification of module list to preload
bzr revid: chs@openerp.com-20110927085947-ip3jv93fb5pvqth3
2011-09-27 10:59:47 +02:00
Christophe Simonis 1d2d17a365 [MERGE] merge upstream + code adaptation to revid:al@openerp.com-20110927001435-vttw23epyru5gm0b
bzr revid: chs@openerp.com-20110927085435-pipko7w752conp3a
2011-09-27 10:54:35 +02:00
Antony Lesuisse 5e303d0ea4 [IMP] web_preload python-side
bzr revid: al@openerp.com-20110927001435-vttw23epyru5gm0b
2011-09-27 02:14:35 +02:00
Xavier Morel 56c026fbc4 [UP] underscore.string to version 1.1.6
bzr revid: xmo@openerp.com-20110926162529-n0ok06nmh0yowoms
2011-09-26 18:25:29 +02:00
niv-openerp 78cdb8d1ab [fix] problem in o2m form view with read only fields, now saves result of default_get
bzr revid: nicolas.vanhoren@openerp.com-20110926160057-zss7934ji5hhtq44
2011-09-26 18:00:57 +02:00
Antony Lesuisse 211713396a [IMP] multiple addons-path
bzr revid: al@openerp.com-20110926125330-9ddpet3tdho3gq2o
2011-09-26 14:53:30 +02:00
niv-openerp 02549a9c0e [imp] refactoring of form view to allow recursize save for o2m
bzr revid: nicolas.vanhoren@openerp.com-20110926123929-35bespquay2qxmfe
2011-09-26 14:39:29 +02:00
Christophe Simonis 4261f1ad11 merge upstream
bzr revid: chs@openerp.com-20110926112623-q68d3tebr80qt6l9
2011-09-26 13:26:23 +02:00
Xavier Morel 47094e8adb [ADD] import
bzr revid: xmo@openerp.com-20110926101440-y5j45bgie4xnhmqf
2011-09-26 12:14:40 +02:00
Xavier Morel 7fd9078fed [ADD] basic auto-matching of imported file columns to model fields
todo: if exact equality with field name and field string fail, a levenshtein distance test
with the field string would be pretty cool (mostly for importing stuff)

bzr revid: xmo@openerp.com-20110926100744-1mcucy3njp9fd3r5
2011-09-26 12:07:44 +02:00
Xavier Morel 60207baf44 [FIX] prevent setting a field name which does not exist in the list
bzr revid: xmo@openerp.com-20110926093024-et5kvpvvq1vm811h
2011-09-26 11:30:24 +02:00
Xavier Morel c94872fc02 [ADD] basic colors support to listview via py.parse
bzr revid: xmo@openerp.com-20110925180407-n0asxrrjeb1oo5a4
2011-09-25 20:04:07 +02:00
Antony Lesuisse 124fcbbd9b [FIX] temporary web module heuristics use static/
bzr revid: al@openerp.com-20110925114051-y3eex2xnn4guu3d0
2011-09-25 13:40:51 +02:00
Antony Lesuisse da30237801 [FIX] local backend catch exceptions
bzr revid: al@openerp.com-20110925104234-plzpwopgcdxgni8m
2011-09-25 12:42:34 +02:00
Antony Lesuisse adc30aa10f [IMP] web.common.dispatch only load module with controllers
bzr revid: al@openerp.com-20110925015054-1223jdthddb1wrah
2011-09-25 03:50:54 +02:00
Antony Lesuisse cd95f48ee7 [IMP] dbfilter option from openerp-server in embedded mode
bzr revid: al@openerp.com-20110925005523-krlap0jdgc5ukott
2011-09-25 02:55:23 +02:00