Commit Graph

639 Commits

Author SHA1 Message Date
Martin Trigaux 269f92998b [IMP] remove useless import
bzr revid: mat@openerp.com-20140401123052-01ylsjx5q3vkoxbq
2014-04-01 14:30:52 +02:00
Martin Trigaux a85d116872 [FIX] default is False, style format is different than DEFAULT_SERVER_DATE{TIME}_FORMAT, datetime is instance of date
bzr revid: mat@openerp.com-20140401100752-twixfgj2gmggy922
2014-04-01 12:07:52 +02:00
Martin Trigaux 6243d18852 [FIX] export: Excel data should be in raw format to be handle correctly
lp bug: https://launchpad.net/bugs/844569 fixed

bzr revid: mat@openerp.com-20140331151749-cx333j01f1hw5ya8
2014-03-31 17:17:49 +02:00
Kersten Jeremy 1d4b43eb38 [FIX] Redirect user from /web if a get redirect is found.
If you redirect an user not logged, into /web?redirect=xxx, he was correctly redirect to /web/login?redirect=/web?redirect=xxx. But when user come back on /web?redirect=xxx, he was not redirected to xxx.

The question should be to have only one behavior when we redirect people, as well /web?redirect as well /web/login?redirect. But because we use both in actual code, we need to accept both for retro-compatibility.

bzr revid: jke@openerp.com-20140321115018-x4e3l3d1v0tp0dyo
2014-03-21 12:50:18 +01:00
Antony Lesuisse b0888ec29b [MERGE] db dump/restore new zip based file format
bzr revid: al@openerp.com-20140312181724-hs26iumd4na2avns
2014-03-12 19:17:24 +01:00
Fabien Meghazi cf68961f66 [IMP] /web/login redirects if already logged in
bzr revid: fme@openerp.com-20140312103239-deyoc7t00g8kusd1
2014-03-12 11:32:39 +01:00
Fabien Meghazi 27405c0c83 [FIX] ensure_db() werkzeug.BaseResponse.url usage leads to encoded hashes loss
bzr revid: fme@openerp.com-20140311205220-kk0pal10lodurcst
2014-03-11 21:52:20 +01:00
Christophe Simonis c3827cb8f7 [MERGE] forward port of branch saas-3 up to revid 3967 jke@openerp.com-20140311093515-02xw8phrcqhgz6zx
bzr revid: chs@openerp.com-20140311132200-1bln6gaj80njyh18
2014-03-11 14:22:00 +01:00
Christophe Simonis 20efa0e287 [FIX] web: redirect to original page after login
bzr revid: chs@openerp.com-20140310153639-ntfa8cvm4loecm9a
2014-03-10 16:36:39 +01:00
Kersten Jeremy 47d7045f76 [FIX] Move bootstrap.css outside from the single css file generate.
Without that, OpenERP become unusable in IE due to the follows limitations:
   - All style tags after the first 31 style tags are not applied.
   - All style rules after the first 4,095 rules are not applied.
   - On pages that uses the @import rule to continously import external style sheets that import other style sheets, style sheets that are more than three levels deep are ignored.
  (http://support.microsoft.com/kb/262161/en)

bzr revid: jke@openerp.com-20140307174411-hejt3x324nlv6tjr
2014-03-07 18:44:11 +01:00
Christophe Simonis 36f2ff879a [FIX] web: use jinja2.FileSystemLoader instead of PackageLoader on windows
bzr revid: chs@openerp.com-20140307151431-5k24u6lnlypv1s64
2014-03-07 16:14:31 +01:00
Christophe Simonis 5d95027f0a [IMP] web: database manager: restore copy database
bzr revid: chs@openerp.com-20140305124444-1jzxmffrm7502t4e
2014-03-05 13:44:44 +01:00
Randhir Mayatra (OpenERP) 8c666af35c [IMP] remove menu_id from user model
bzr revid: rajmyt@gmail.com-20140304085659-lufot16ae59y1jca
2014-03-04 14:26:59 +05:30
Fabien Meghazi e76c36d704 [FIX] Database selector issue
ensure_db() If the request.session.db is different than
the computed db abort and redirect in order to properly
dispatch on computed db

bzr revid: fme@openerp.com-20140227164018-iukowle122spr2c5
2014-02-27 17:40:18 +01:00
Fabien Meghazi c1d9449a57 [MERGE] upstream
bzr revid: fme@openerp.com-20140227101745-k6iseaz765qnflnm
2014-02-27 11:17:45 +01:00
Christophe Simonis e1daea744f [FIX] web: bootstrap template rendered using request uid
bzr revid: chs@openerp.com-20140226155536-5z7r50bzxxackg1d
2014-02-26 16:55:36 +01:00
Fabien Meghazi 434f100fb8 [MERGE] upstream
bzr revid: fme@openerp.com-20140225094914-419sm2gji3kiq2e2
2014-02-25 10:49:14 +01:00
Denis Ledoux ec0f9de9dc [FIX] web: preserve order of saved export fields list
bzr revid: dle@openerp.com-20140221115855-ycny8ai1vyb23cdd
2014-02-21 12:58:55 +01:00
Denis Ledoux e84aaa7d74 [MERGE] Forward-port of latest saas-2 bugfixes, up to rev. 3903 revid:dle@openerp.com-20140221120519-1pj3wc8kqgkr5uda
bzr revid: dle@openerp.com-20140221120632-dn3ll7yrjkax17q5
2014-02-21 13:06:32 +01:00
Christophe Simonis acb010a985 [MERGE] forward port of branch 7.0 up to revid 4162 launchpad_translations_on_behalf_of_openerp-20140318062141-rdiqz2ptnz3qmxd0
bzr revid: chs@openerp.com-20140129095637-mbfz82r5pyz4dctc
bzr revid: dle@openerp.com-20140210140818-5mtk1qhheo219bm1
bzr revid: dle@openerp.com-20140214114445-krexrwm9o2nrxepk
bzr revid: mat@openerp.com-20140219111353-cxo860z7ctz7om30
bzr revid: dle@openerp.com-20140221120519-1pj3wc8kqgkr5uda
bzr revid: chs@openerp.com-20140318112743-tqv492026y2pnbff
2014-03-18 12:27:43 +01:00
Fabien Meghazi f8ddf1dcb7 [FIX] /web/login renders with the wrong user id
bzr revid: fme@openerp.com-20140220144106-ge85vlbjeawa9982
2014-02-20 15:41:06 +01:00
Fabien Meghazi 6cce7e6dba [REM] Removed LazyResponse from webclient, use request.render() instead
bzr revid: fme@openerp.com-20140218161806-j7qn4dutjtlfqjc1
2014-02-18 17:18:06 +01:00
Fabien Meghazi 2bb8b4ebfb [FIX] forward port ensure_db fix from saas-3
bzr revid: fme@openerp.com-20140213134219-pn5xmo5alxn1d57u
2014-02-13 14:42:19 +01:00
Fabien Meghazi 92b8aafe97 [FIX] /web/login: Set request.uid on auth=none so it's correct if overloaded with auth="public"
bzr revid: fme@openerp.com-20140211113916-2to1g41pccimbsgq
2014-02-11 12:39:16 +01:00
Fabien Meghazi af668b891c [FIX] pass request.context in /web/login
bzr revid: fme@openerp.com-20140211113603-0wsr288gejz416dw
2014-02-11 12:36:03 +01:00
Christophe Simonis 0b9bf8e2bf [FIX] ensure_db():
When user ask a specific database on a new session, the nodb router
 has been used to find the route.
 Depending on installed module in the database, the rendering of the page
 may depend on data injected by the database route dispatcher.
 Thus, we redirect the user to the same page but with the session cookie set.
 This will force using the database route dispatcher...

bzr revid: chs@openerp.com-20140207154703-o0gl58i2b56eridx
2014-02-07 16:47:03 +01:00
Christophe Simonis 79caa8e186 [IMP] extract save/get session actions as methods on session object
bzr revid: chs@openerp.com-20140206115253-ed7ahi6j83mgpw4y
2014-02-06 12:52:53 +01:00
Fabien Meghazi 42952bb7cf [REM] Remove LoginForm javascript
bzr revid: fme@openerp.com-20140205091749-39333kr3hz0dt4wg
2014-02-05 10:17:49 +01:00
Denis Ledoux 54dff0857d [ADD]web: controller to redirect /apps/{appname} to install module form (not yet perfect, the menu is not displayed, but meanwhile this is something)
bzr revid: dle@openerp.com-20140131113347-twndgtaq6d16eycc
2014-01-31 12:33:47 +01:00
Fabien Meghazi 526c5fb6cb [FIX] Login redirection problem
bzr revid: fme@openerp.com-20140131095606-xlyzzhm2tc0myq0s
2014-01-31 10:56:06 +01:00
Antony Lesuisse f051043a26 [MERGE] trunk-website-al
bzr revid: al@openerp.com-20140131005202-sjsfy3tc8ys1a325
2014-01-31 01:52:02 +01:00
Christophe Simonis ca844edcf8 [IMP] web: alternative routes for company logo
bzr revid: chs@openerp.com-20140130180827-xior7wc6shtamcgu
2014-01-30 19:08:27 +01:00
Denis Ledoux 9c8a59b60b [FIX] web: use werkzeug instead of urllib, as werkzeug handle utf-8 while urllib doesnt
bzr revid: dle@openerp.com-20140130112741-mxonv6j1gt89f1uj
2014-01-30 12:27:41 +01:00
Fabien Meghazi ef019949f4 [FIX] ensure db param is legit in order to avoid xss
bzr revid: fme@openerp.com-20140130103045-up2bcqmqu8wm3sl9
2014-01-30 11:30:45 +01:00
Fabien Meghazi 469c5d3f1c [MOV] Move ensure_db() helper from
Since we removed auth="admin" in favor of auth="none" with explicit superuser id usage,
the disable_db clause in ir_http#...auth_none() has only sense for /web and /web/login routes.
The web module is an exception because it's routes are registered for the nodb dispatching.
This is why the ensure_db() helper is moved to web client and will take care of the
web's auth="none" routes that needs a db to work with

bzr revid: fme@openerp.com-20140130091820-xezgqezsv2vnmlq1
2014-01-30 10:18:20 +01:00
Fabien Meghazi 07235017aa [REM] Remove single auth="admin" left
bzr revid: fme@openerp.com-20140129144623-a8fy4xx3hmvcww0j
2014-01-29 15:46:23 +01:00
Christophe Simonis 83345e4414 [MERGE] forward port of branch saas-2 up to revid 3899 chs@openerp.com-20140129095637-mbfz82r5pyz4dctc
bzr revid: chs@openerp.com-20140129101004-44ft0oaeo201guhd
2014-01-29 11:10:04 +01:00
Fabien Meghazi b91b265cb8 [IMP] Use ensure_db() for /web and /web/login. Logout controller does not clear the db anymore
bzr revid: fme@openerp.com-20140128211802-9y77th2zojfhp35q
2014-01-28 22:18:02 +01:00
Fabien Meghazi f4e33da924 [ADD] Database selector to login screen
bzr revid: fme@openerp.com-20140124151656-swy3jknclfnxkwzx
2014-01-24 16:16:56 +01:00
Christophe Simonis 457d661ae0 [FIX] test: correct Mock of search_read
[IMP] search_read: build order index using dict comprehension

bzr revid: chs@openerp.com-20140123170836-4qu0ei6zucaprwxs
2014-01-23 18:08:36 +01:00
Frédéric van der Essen 2f2c1057b3 [FIX] read: fix performance issue due to O(n)^2 sorting
bzr revid: fva@openerp.com-20140123161523-xvc8so45uwj3uivs
2014-01-23 17:15:23 +01:00
Fabien Meghazi fff9749edd [ADD] TODO for database manager
bzr revid: fme@openerp.com-20140122105712-cawi7lp0mnm9k9hv
2014-01-22 11:57:12 +01:00
Fabien Meghazi 9981100807 [FIX] keep backward compatibility for saas
bzr revid: fme@openerp.com-20140121160140-wgm0av3kaw0nvc61
2014-01-21 17:01:40 +01:00
Fabien Meghazi 9e9ad95ce3 [MOV] redirection helpers from webclient to server
bzr revid: fme@openerp.com-20140121155432-3sd85jqnqgxrnjr5
2014-01-21 16:54:32 +01:00
Fabien Meghazi 3087646d34 [FIX] render bootstrap template checks request.debug
bzr revid: fme@openerp.com-20140121105233-h2c2nfs75qxc6w10
2014-01-21 11:52:33 +01:00
Fabien Meghazi f43f06a6b0 [IMP] use 'error' key in login template
bzr revid: fme@openerp.com-20140121093224-8auf7b00jxfq8940
2014-01-21 10:32:24 +01:00
Fabien Meghazi bb3118ac3d [IMP] Honor db query param in /web/login too
bzr revid: fme@openerp.com-20140117140746-v86qxs3msxd0u6mu
2014-01-17 15:07:46 +01:00
Martin Trigaux 4b7799c0c7 [IMP] search_read: use search_read from the orm instead of rewritting it
skip search_count when getting no result from search_read
remove useless test based on implementation details

bzr revid: mat@openerp.com-20140117120047-9b5emsrbtjauvegl
2014-01-17 13:00:47 +01:00
Martin Trigaux bd2bd8dbbc [FIX] export: ignore unexistant field when retrieving field labels in saved field list
This avoids getting an error if a list contains a field no longer present in the model (eg: removed custom field)

bzr revid: mat@openerp.com-20140117101655-gz05oxkebn0bue8w
2014-01-17 11:16:55 +01:00
Fabien Meghazi c0dda700f1 [MERGE] upstream
bzr revid: fme@openerp.com-20140116181519-xtzhzm7u98u6xz18
2014-01-16 19:15:19 +01:00
Fabien Meghazi 4b663489a6 [IMP] Restore redirect_with_hash()
bzr revid: fme@openerp.com-20140116181357-kv5iq8zcr5kk948u
2014-01-16 19:13:57 +01:00
Denis Ledoux 5649e0bbf2 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9770 revid:chs@openerp.com-20140116154645-sy4zhdgqc48xaqbx
bzr revid: dle@openerp.com-20131224112612-5gjit5uu1aaaqstx
bzr revid: dle@openerp.com-20140103094532-mbczi9ssr3gc90o1
bzr revid: dle@openerp.com-20140108105833-gblxqdw3if1gt35k
bzr revid: dle@openerp.com-20140115121441-bskbyxxbc09ubavh
bzr revid: dle@openerp.com-20140115165506-yuux9km39gbv7k4n
bzr revid: dle@openerp.com-20140116161415-0y9m0kgavcytzj9z
2014-01-16 17:14:15 +01:00
Christophe Simonis 0e870fc7a7 [MERGE] forward port of branch saas-2 up to revid 3897 dle@openerp.com-20140115121441-bskbyxxbc09ubavh
bzr revid: chs@openerp.com-20140115221349-3lw7b0kpo3f2d04l
2014-01-15 23:13:49 +01:00
Fabien Meghazi 2c7dd54fec [IMP] make /web/login route return a lazy response
bzr revid: fme@openerp.com-20140115170142-szl5y22p0rciz21t
2014-01-15 18:01:42 +01:00
Fabien Meghazi 5d540d69b3 [IMP] Allow /login route to redirect after login (useful for Aline's user tests)
bzr revid: fme@openerp.com-20140114151553-fehc82gxz1nq25yu
2014-01-14 16:15:53 +01:00
Fabien Meghazi cd213eb652 [FIX] Honnor --no-database-list option
bzr revid: fme@openerp.com-20140114140153-0zt2iqt6di6h3hw2
2014-01-14 15:01:53 +01:00
Fabien Meghazi 01f3648d3a [ADD] javascript hooks for LoginForm and debug forwarding
bzr revid: fme@openerp.com-20140114111707-ts3ik25p4o2vysxb
2014-01-14 12:17:07 +01:00
Fabien Meghazi 3f34405c7c [IMP] login user at db creation
bzr revid: fme@openerp.com-20140113173643-ire4cnb2nbxhs8dh
2014-01-13 18:36:43 +01:00
Fabien Meghazi b7450672c0 [IMP] Always allow /web/session/logout even if not logged in
bzr revid: fme@openerp.com-20140113171312-sf2erlwby1kpw3a6
2014-01-13 18:13:12 +01:00
Fabien Meghazi 4c4755ffae [ADD] redirect option to /web/login
bzr revid: fme@openerp.com-20140113143702-20j30wc3wuglp3mn
2014-01-13 15:37:02 +01:00
Fabien Meghazi 0058291979 [IMP] Use qweb template for login and webclient bootstrap
The database manager should be rewritten server side

bzr revid: fme@openerp.com-20140109151140-8x3ia8zpdpw1lics
2014-01-09 16:11:40 +01:00
Denis Ledoux e00c236693 [FIX] web: redirect with hash always use html redirect
# Most IE and Safari versions decided not to preserve location.hash upon
# redirect. And even if IE10 pretends to support it, it still fails
# inexplicably in case of multiple redirects (and we do have some).
# See extensive test page at http://greenbytes.de/tech/tc/httpredirects/

bzr revid: dle@openerp.com-20140108105307-8dzzkxvtesb5d813
2014-01-08 11:53:07 +01:00
Fabien Meghazi 16be0fa33a [IMP] update TODO
bzr revid: fme@openerp.com-20140107114801-nlsi6zh1uhga805k
2014-01-07 12:48:01 +01:00
Fabien Meghazi e8a0021741 [IMP] Replace html_template by webclient_bootstrap for /web/ route
bzr revid: fme@openerp.com-20140107114535-u0kbdfeu3x9m01mv
2014-01-07 12:45:35 +01:00
Fabien Meghazi adfd2631e4 [FIX] correctly manager login query param
bzr revid: fme@openerp.com-20131219180717-s9ec0oi5a0jl21o0
2013-12-19 19:07:17 +01:00
Fabien Meghazi da780aa478 [IMP] Database selector and manager
bzr revid: fme@openerp.com-20131219143648-5jvlcet3yjsw6vq6
2013-12-19 15:36:48 +01:00
Fabien Meghazi b4918347cc [IMP] webclient entry point controller
bzr revid: fme@openerp.com-20131218111937-hp5vfutci5x7k2p5
2013-12-18 12:19:37 +01:00
Antony Lesuisse 4c45774b6d [IMP] manual exception handling for non-json controllers
bzr revid: al@openerp.com-20131203191621-xu2350cw0u3izn3s
2013-12-03 20:16:21 +01:00
Christophe Simonis 9f52ab382b [MERGE] forward port of branch saas-2 up to revid 3887 chs@openerp.com-20131122172422-tsd8wzqkbqknrw1w
bzr revid: chs@openerp.com-20131125160506-30uia4pdwzpp54gj
2013-11-25 17:05:06 +01:00
Olivier Dony 6c109ece30 [FIX] root redirect_with_hash: IE10 also behaves abnormally in case of multiple redirects
bzr revid: odo@openerp.com-20131119105326-0t1cjz1d1ebfzhwq
2013-11-19 11:53:26 +01:00
Christophe Simonis 322578383c [FIX] web: it's better if the route allowing users to log in is accessible without being logged in.
bzr revid: chs@openerp.com-20131114185202-yyhg7opc004hte02
2013-11-14 19:52:02 +01:00
niv-openerp c281862604 [FIX] Attempt to resolve the bug that makes the runbot crash
bzr revid: nicolas.vanhoren@openerp.com-20131113155340-srjkfv372jsyg5vl
2013-11-13 16:53:40 +01:00
Antony Lesuisse 14245e24fc [FIX] /web always save the provided db in session
guessed_db is only computed by the /web controller, so even if the provided db
match the guessed_db we should save it in the http session. Because all rpc
call made before the authentication wont compute the guessed_db, so the
request.db will be wrong for those calls.

bzr revid: al@openerp.com-20131110010411-s7ermjwmfbile1ix
2013-11-10 02:04:11 +01:00
niv-openerp 419c5e0c67 [FIX] Incorrect reference to / in /web/session/logout controller
bzr revid: nicolas.vanhoren@openerp.com-20131105152138-2628ehdke7rdc1ov
2013-11-05 16:21:38 +01:00
Fabien Meghazi 684c629556 [FIX] session destroy
Sorry all

bzr revid: fme@openerp.com-20131105102036-34g9mk2u694eqvhn
2013-11-05 11:20:36 +01:00
niv-openerp fd863b8501 [FIX] potential bug with the /login url, it could not possibly work due to its authorization level.
Also modified a function that is supposed to redirect to the backend and was still using '/'.

bzr revid: nicolas.vanhoren@openerp.com-20131105101548-jdsnyh2j4ak0kdbk
2013-11-05 11:15:48 +01:00
Fabien Meghazi 9a281f829b [ADD] redirect on login and logout controller
bzr revid: fme@openerp.com-20131104171530-96irkaom2vjsj9s5
2013-11-04 18:15:30 +01:00
Christophe Simonis 88292396c7 [MERGE] forward port of branch saas-2 up to revid 3865 chs@openerp.com-20131031111945-u3wi11e4rykpslme
bzr revid: chs@openerp.com-20131030183314-d75tbpxjjk3u79er
bzr revid: chs@openerp.com-20131031144026-09f3eqfwfj2bcefs
2013-10-31 15:40:26 +01:00
niv-openerp 866148efa4 [FIX] Corrected the redirect_with_hash() method that produced an incorrect url in IE and safari
bzr revid: nicolas.vanhoren@openerp.com-20131029090150-u397wkzdo9an9n0w
2013-10-29 10:01:50 +01:00
niv-openerp abe6df638d [FIX] Reverted modification of behavior in 3858 and replaced it with a fix that solves the core problem
(the fact that the function redirect_with_hash() didn't produced the expected effect in safari). To solve
that problem, the method was simply modified to use the same trick already used in IE that has the same
problem than safari.

bzr revid: nicolas.vanhoren@openerp.com-20131029085356-hb2sk4g7j3xh4zar
2013-10-29 09:53:56 +01:00
Antony Lesuisse 401099d358 [IMP] move http layer from openerp-web to openobject-server, convert controllers to the new route api
bzr revid: al@openerp.com-20131027171717-dzqx2264p152lq8y
2013-10-27 18:17:17 +01:00
Denis Ledoux 6bf5d02627 [MERGE] Forward-port of latest saas-2 bugfixes, up to rev. 3859 rev-id: dle@openerp.com-20131023110926-tc2n3oqg0l2ga138
bzr revid: dle@openerp.com-20131023113414-mlwppd4d7vyh1tyj
2013-10-23 13:34:14 +02:00
Christophe Simonis d97bd2bce2 [FIX] web: avoid useless redirection when in mono db mode
bzr revid: chs@openerp.com-20131022104145-janmthq1r6sibm2e
2013-10-22 12:41:45 +02:00
niv-openerp e080294dc0 [MERGE] saas2
bzr revid: nicolas.vanhoren@openerp.com-20131018103631-vennug4iy21zhp3x
2013-10-18 12:36:31 +02:00
Christophe Simonis f263e02bc0 [REM] web: /web/report: remove useless check on action data
bzr revid: chs@openerp.com-20131009131658-xjbr16zx3loy45x2
2013-10-09 15:16:58 +02:00
Antony Lesuisse 097dc15ded [REM] shortcuts, deprecated by bookmarks
bzr revid: al@openerp.com-20131006132310-rrycbi10x441i2ef
2013-10-06 15:23:10 +02:00
Antony Lesuisse 36b103d83f [REM] web_shortcut
bzr revid: al@openerp.com-20131006124813-nkw1iw72os5bsk22
2013-10-06 14:48:13 +02:00
niv-openerp 5a70bc038a Changed base url
bzr revid: nicolas.vanhoren@openerp.com-20131002143740-jr8xz6j4qgs97ztp
2013-10-02 16:37:40 +02:00
Frédéric van der Essen eae9b15731 [IMP] helpful exception message
bzr revid: fva@openerp.com-20130924151913-mq8sj2a8hahylmig
2013-09-24 17:19:13 +02:00
ima-openerp 0afff9aae3 [IMP]removed unused method which is defined only for web shortcuts module.
bzr revid: ishwarmalvi13@gmail.com-20130918065854-u0aiyu5e1z7tf09g
2013-09-18 12:28:54 +05:30
niv-openerp 53b7baf1ce [FIX] fixed some problems related to magic guess of db, now only tries to perform the magic guess when the --dbfilter argument is specified
bzr revid: nicolas.vanhoren@openerp.com-20130913102444-u30boym4nklatnf1
2013-09-13 12:24:44 +02:00
niv-openerp 1bd4b62142 Perfected translations integration in the framework
bzr revid: nicolas.vanhoren@openerp.com-20130805151012-wnc7wkyiz0eay5oh
2013-08-05 17:10:12 +02:00
niv-openerp b3c4d02590 Improved translation controller to be more flexible
bzr revid: nicolas.vanhoren@openerp.com-20130805144431-ycv6gwv99c5bh1p1
2013-08-05 16:44:31 +02:00
niv-openerp d256d16e3a Fixed potential security issue + some details
bzr revid: nicolas.vanhoren@openerp.com-20130805133309-jds80qa5j5lgwslq
2013-08-05 15:33:09 +02:00
niv-openerp 22c56b1dd8 Ported some authentication methods to the Session class
bzr revid: nicolas.vanhoren@openerp.com-20130805111250-ws23n3b6os54qsp3
2013-08-05 13:12:50 +02:00
niv-openerp 6e6108e9b6 [FIX] Problem with exports that make them crash
lp bug: https://launchpad.net/bugs/1205238 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130726084640-lz11kdlsk27mrjec
2013-07-26 10:46:40 +02:00
niv-openerp b105770bbc [IMP] removed hack to force disable the browser's cache and use http headers instead
bzr revid: nicolas.vanhoren@openerp.com-20130724151929-8j1bo1ae64lwkxdw
2013-07-24 17:19:29 +02:00
niv-openerp 2205c3021f Some more correction to always have the db in the url
bzr revid: nicolas.vanhoren@openerp.com-20130724122328-kbnwq2uois37q74n
2013-07-24 14:23:28 +02:00
niv-openerp 3b384da858 [IMP] Removed http param 'db' handling from http.py and put it in the main controller in main.py
bzr revid: nicolas.vanhoren@openerp.com-20130724100030-yxbpntlz58kohy1n
2013-07-24 12:00:30 +02:00
niv-openerp 761ba75055 [IMP] Cleaned some more http.py, removed 'debug' handling and put it in the controller serving the home page
bzr revid: nicolas.vanhoren@openerp.com-20130724073624-uhshc0cn2m3rs7iq
2013-07-24 09:36:24 +02:00
niv-openerp 3885ee3330 [FIX] some more problems with werkzeug 0.9.1
bzr revid: nicolas.vanhoren@openerp.com-20130716131548-aa60tcfn3zwchqd0
2013-07-16 15:15:48 +02:00
niv-openerp 788071f34f [FIX] some more problems with werkzeug 0.9.1
bzr revid: nicolas.vanhoren@openerp.com-20130716131401-abj3i020a8831l98
2013-07-16 15:14:01 +02:00
niv-openerp b00689306c [FIX] problem with werkzeug 0.9.1 that makes the code crash when we generate a report
bzr revid: nicolas.vanhoren@openerp.com-20130715122835-4gtyu2xle8y7fls1
2013-07-15 14:28:35 +02:00
niv-openerp d42d50df57 [FIX] problem with werkzeug 0.9.1 that crashes when we generate a report
bzr revid: nicolas.vanhoren@openerp.com-20130715122648-a926d3tov4efbyrk
2013-07-15 14:26:48 +02:00
niv-openerp e6fc23d980 Forgot some refactoring
bzr revid: nicolas.vanhoren@openerp.com-20130711141832-8y5yj3lj7h4gb94q
2013-07-11 16:18:32 +02:00
niv-openerp 47b5a82ae8 Completely removed all ways to specify session identifiers and reduced them to 2 possibilities:
* The http argument 'session_id' (higher priority)
* The cookie 'session_id' (lower priority)

bzr revid: nicolas.vanhoren@openerp.com-20130711122034-3nvmkw4q5z4io4tm
2013-07-11 14:20:34 +02:00
niv-openerp a7adac1189 Now OpenERPSession is a subclass of werkzeug's session
bzr revid: nicolas.vanhoren@openerp.com-20130711103422-w7y05ox7tq0hz0og
2013-07-11 12:34:22 +02:00
Christophe Matthieu e4aad29beb [FIX] web report: use get to find active_ids inside the context. Check if report_ids is defined
bzr revid: chm@openerp.com-20130708105425-p8279f00xa7925xh
2013-07-08 12:54:25 +02:00
chs f15f706313 [FIX] monodb: correct behaviour in no-db-list mode (manual forward port of 7.0 rev 3991 mat@openerp.com-20130702122014-6l79a748lb946hkq)
bzr revid: mat@openerp.com-20130702122404-sngh0g283tuvj8ll
2013-07-02 14:24:04 +02:00
niv-openerp c433395b4f Put json-rpc controller in http.py
bzr revid: nicolas.vanhoren@openerp.com-20130621145455-n933uz1dcdmsv9t7
2013-06-21 16:54:55 +02:00
niv-openerp 770751c7d7 removed some useless code
bzr revid: nicolas.vanhoren@openerp.com-20130621143648-fh7vnyt3o6a7swqj
2013-06-21 16:36:48 +02:00
niv-openerp d57bbfd2ff merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130621135207-7oq7v2ubzfdrkrbr
2013-06-21 15:52:07 +02:00
niv-openerp 52d1b26b2f Put db_monodb() method in http.py
bzr revid: nicolas.vanhoren@openerp.com-20130621124143-pe5hgwj81j2degg6
2013-06-21 14:41:43 +02:00
niv-openerp 95f9491252 Rewrite db_monodb
bzr revid: nicolas.vanhoren@openerp.com-20130621123149-ukxjzz9jyckf9a4r
2013-06-21 14:31:49 +02:00
niv-openerp 2fd53a468c multiple refactoring with authentication
bzr revid: nicolas.vanhoren@openerp.com-20130621121510-gx22b6j9pwsfe352
2013-06-21 14:15:10 +02:00
niv-openerp 4119d7ce99 Added werkzeug's arguments
bzr revid: nicolas.vanhoren@openerp.com-20130620121026-btc06m36x9jg1ok0
2013-06-20 14:10:26 +02:00
niv-openerp 5a2c7af297 Refactored main.py
bzr revid: nicolas.vanhoren@openerp.com-20130619165957-nw7eb80c7gqqcj7v
2013-06-19 18:59:57 +02:00
niv-openerp 69ae9cc0b5 Big refactoring to prepare even more refactoring
bzr revid: nicolas.vanhoren@openerp.com-20130619161627-543e0brldclvvw98
2013-06-19 18:16:27 +02:00
chs 4039900383 [FIX] monodb: correct behaviour in no-db-list mode (again)
bzr revid: mat@openerp.com-20130702122014-6l79a748lb946hkq
2013-07-02 14:20:14 +02:00
niv-openerp c44888527b Added werkzeug route building, not yet switched
bzr revid: nicolas.vanhoren@openerp.com-20130614152621-t8jv4474gt9k6yib
2013-06-14 17:26:21 +02:00
Christophe Simonis a61e7cb0c8 [MERGE] forward port of branch saas-1 up to revid 4887 chs@openerp.com-20130612153934-qyp6pb3bc4za4taf
bzr revid: chs@openerp.com-20130613172414-dln3g4j0ykcwaa02
bzr revid: chs@openerp.com-20130613173900-xl7rh321nnw2b04b
2013-06-13 19:39:00 +02:00
niv-openerp d6c89cdb7c Implemented jsonrpc method
bzr revid: nicolas.vanhoren@openerp.com-20130613140418-2i1qsb6jykhx5jaz
2013-06-13 16:04:18 +02:00
niv-openerp 20c0e6fbb7 fixed get_lang_list
bzr revid: nicolas.vanhoren@openerp.com-20130613114421-hv3rgj0rxghpwlgp
2013-06-13 13:44:21 +02:00
niv-openerp 1c0282d09d fixed lot of problem with nodb
bzr revid: nicolas.vanhoren@openerp.com-20130613112027-1fps4v7h6zx5omo0
2013-06-13 13:20:27 +02:00
niv-openerp 50a5a612da Now uses request.cr for Model
bzr revid: nicolas.vanhoren@openerp.com-20130613110005-idverfbs9xe6l32w
2013-06-13 13:00:05 +02:00
niv-openerp c6b4e77df4 Put @nodb on all methods where it is required in main.py
bzr revid: nicolas.vanhoren@openerp.com-20130611165901-l1pyzpvpniq41a29
2013-06-11 18:59:01 +02:00
Christophe Simonis 22a8e5266e [FIX] web: calls to openerp methods do not raises xmlrpc Fault anymore
bzr revid: chs@openerp.com-20130611163527-k6yzb604c36n2wha
2013-06-11 18:35:27 +02:00
Christophe Simonis 6263673720 [MERGE] forward port of branch 7.0 up to revid 3973 chs@openerp.com-20130611145028-f98x6inytlr3ijjg
bzr revid: chs@openerp.com-20130611155251-zk0qkk70z30n81vl
2013-06-11 17:52:51 +02:00
Christophe Simonis ce68573126 [FIX] web: handle monodb correctly when server started with "--no-database-list" option
bzr revid: chs@openerp.com-20130611145028-f98x6inytlr3ijjg
2013-06-11 16:50:28 +02:00
Christophe Simonis 36e113e6bd [FIX] web: handle monodb correctly when server started with "--no-database-list" option
bzr revid: chs@openerp.com-20130611110327-sipc2er6z1ch7leb
2013-06-11 13:03:27 +02:00
niv-openerp a94bbf8e5e [FIX] Merge fix in saas1 for the problem that made the server crash when install a db
bzr revid: nicolas.vanhoren@openerp.com-20130610144915-0nj8vpk7n84ocj3f
bzr revid: nicolas.vanhoren@openerp.com-20130610150657-3xddn91gm0iq0ubp
bzr revid: nicolas.vanhoren@openerp.com-20130610154514-oee6s4f9g17bx63z
2013-06-10 17:45:14 +02:00
Olivier Dony 6901c4f981 [FIX] export: allow excluding special virtual fields from exportable data
For example the virtual "Access Rights" fields on
res.users cannot be browsed and cannot currently
by exported.

bzr revid: odo@openerp.com-20130607093044-y3bct44ralu8yf0o
2013-06-07 11:30:44 +02:00
niv-openerp 956a05e0f2 Replaced main
bzr revid: nicolas.vanhoren@openerp.com-20130607091856-mnjnllza9oafqxb7
2013-06-07 11:18:56 +02:00
niv-openerp 6afbca24f9 [REV] revert of previous improvement
bzr revid: nicolas.vanhoren@openerp.com-20130605092926-dhoumh76dwtl211t
2013-06-05 11:29:26 +02:00
niv-openerp 97b22323aa Refactored main.py
bzr revid: nicolas.vanhoren@openerp.com-20130604153037-h4kzan18r2wlkb62
2013-06-04 17:30:37 +02:00
Thibault Delavallée c4c17fc3d2 [FIX] image controller: all reads (event __last_update) should be encapsulated into a try/catch to avoid having sometimes a placeholder, sometimes a broken image + traceback.
bzr revid: tde@openerp.com-20130528130526-iwzw5jjttr4nevc4
2013-05-28 15:05:26 +02:00
niv-openerp 97110c0a48 [FIX] problem in database manager when db list is desactivated
lp bug: https://launchpad.net/bugs/1166856 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130527122415-pk8i2uqfrgyiac83
2013-05-27 14:24:15 +02:00
Christophe Simonis d086a71131 [IMP] web: allow manifest files to contain remote js/css/qweb files
bzr revid: chs@openerp.com-20130528104352-b1qf79d6bdm8x2ec
2013-05-28 12:43:52 +02:00
Vidhin Mehta d6024fa36b [FIX]add callback function to fetch_lang and in *drop db* which is not created,after drop it shows 'db succesfully droped'.
bzr revid: vme@tinyerp.com-20130516170403-7oil1k6em99a1hmp
2013-05-16 22:34:03 +05:30
Xavier Morel ae1ea1ac58 [FIX] incorrect company logo on databases with uppercase letters
bzr revid: xmo@openerp.com-20130516132200-t4h6gtoplkqzuh1w
2013-05-16 15:22:00 +02:00
niv-openerp f77cf1b603 wip
bzr revid: nicolas.vanhoren@openerp.com-20130515090231-pj7q042poo2183sp
2013-05-15 11:02:31 +02:00
niv-openerp b1338a1c8f fix
bzr revid: nicolas.vanhoren@openerp.com-20130515085618-m72mahjie4iguwhy
2013-05-15 10:56:18 +02:00
Ravi Gohil (OpenERP) 408f17a884 [FIX] Company Logo not shown if database name contains capitals(Courtesy: Karel Marissens). (Maintenance Case: 592257)
lp bug: https://launchpad.net/bugs/1172679 fixed

bzr revid: rgo@tinyerp.com-20130506092751-9zutbjsc5e5mnnvh
2013-05-06 14:57:51 +05:30
Olivier Dony ba5710962e [MERGE] Forward-port of 7.0 bugfixes, up to rev. 3912
revision-id: nicolas.vanhoren@openerp.com-20130430094843-9m1629m517vjtm1o

bzr revid: xmo@openerp.com-20130424102025-w33zyopm96r7q09p
bzr revid: odo@openerp.com-20130430103337-i9wuj8zf3h41h1ay
2013-04-30 12:33:37 +02:00
Antony Lesuisse 44569c06a2 [FIX] http controllers inheritance
minimalist and backward compatible implementation

bzr revid: al@openerp.com-20130423210644-hmvglhh10zlrwp9q
2013-04-23 23:06:44 +02:00
Christophe Simonis e5736828f9 [REVERT] revert commit fme@openerp.com-20130418171750-7oldgiewo1eewxk7: do not break stable API !!!
bzr revid: chs@openerp.com-20130423124151-h025b891xp77flg3
2013-04-23 14:41:51 +02:00
Vidhin Mehta 2d07136d6f [FIX]Remove extra duplicate method,show valid error msg when invalid db to drop, do_render method call after resolving fetch_langs and call always after fetch_db.
lp bug: https://launchpad.net/bugs/1166856 fixed

bzr revid: vme@tinyerp.com-20130423104647-8xvrthahdzk42r08
2013-04-23 16:16:47 +05:30
Fabien Meghazi d94936132a [MERGE] Fixed http controllers inheritance
bzr revid: fme@openerp.com-20130418171750-7oldgiewo1eewxk7
2013-04-18 19:17:50 +02:00
Christophe Simonis ecdc3b1873 [FIX] web: company_logo does not try to load the pool + failback correctly if the database does not exists or is not an openerp database
bzr revid: chs@openerp.com-20130405134747-7rkmz5d4r0buhhxj
2013-04-05 15:47:47 +02:00
Olivier Dony f0320d4258 [FIX] web: company_logo route may be accessed with uid = False in some cases, it should still work
bzr revid: odo@openerp.com-20130404143144-3o2j0xbwh4m84tu8
2013-04-04 16:31:44 +02:00