Launchpad Translations on behalf of openerp
08abc4345a
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131112054140-gta82n1b3iww6qy5
bzr revid: launchpad_translations_on_behalf_of_openerp-20131031051733-nnutbi7hidixsxsb
bzr revid: launchpad_translations_on_behalf_of_openerp-20131102055746-d0emb2aocq3sq1d1
bzr revid: launchpad_translations_on_behalf_of_openerp-20131103052149-y4usleohxatdgczx
bzr revid: launchpad_translations_on_behalf_of_openerp-20131105052928-1izkptj5zusflrvb
bzr revid: launchpad_translations_on_behalf_of_openerp-20131108054204-hrtuxxze2u1ivvez
bzr revid: launchpad_translations_on_behalf_of_openerp-20131110055420-zl5ang9w8lbcvt9d
bzr revid: launchpad_translations_on_behalf_of_openerp-20131111051738-smtttsszytn06ld4
bzr revid: launchpad_translations_on_behalf_of_openerp-20131112054158-7ewd3oxiyxg8s4zw
2013-11-12 05:41:58 +00:00
Antony Lesuisse
ee4c1f702e
[IMP] http move db dispatching to AbstractModel ir.http
...
Allow module to override the http dispatching process:
- The default implementation uses werkzeug.routing but any other method could
be used, it'a also possible to pre/postprocess (i.e. url aliases)
- Authentication (auth param on route) is plugggable by defining now
_auth_method_<methodname>
- Error handler are overridable, any module can define a new exception and
handle it by orverriding the _handle_<error_code> method.
- Add model converters for routes, to directly get the browse record example
@route(['/job/detail/<model("hr.job"):job>'], type='http', auth="user")
This is done by splitting dispatching, when the db is unknown low level http.py
dispatching is used, it's only used by a few controller in base and web. When
the db is known, ir_http is used because it's a regular Model it is fully
overridable by openerp modules.
bzr revid: al@openerp.com-20131110142731-qi9910fkty25cdtd
2013-11-10 15:27:31 +01:00
Antony Lesuisse
5f9ef80d70
[FIX] make routing converters modular
...
bzr revid: al@openerp.com-20131110141250-myreqy8ofvpj2r0u
2013-11-10 15:12:50 +01:00
Antony Lesuisse
575376ef29
[FIX] http.py use checked_call for concurrency retry and exception handling
...
bzr revid: al@openerp.com-20131110140757-tbe8yondadokd4ke
2013-11-10 15:07:57 +01:00
Antony Lesuisse
7f3133e423
[IMP] ir_http better exception handling for http errors
...
bzr revid: al@openerp.com-20131110135739-2tmr6iynil16ooi1
2013-11-10 14:57:39 +01:00
Antony Lesuisse
c396149f4f
[FIX] use AbstractModel, use session.db to ir_http dispatch for none controllers
...
bzr revid: al@openerp.com-20131110135406-r0cyxhnve3jl8r2i
2013-11-10 14:54:06 +01:00
Antony Lesuisse
afbec17f77
[IMP] model converters for routes, to directly get the browse record
...
example @route(['/job/detail/<model("hr.job"):job>'], type='http', auth="user")
bzr revid: al@openerp.com-20131110123707-yb3hbdqlo063dj64
2013-11-10 13:37:07 +01:00
Antony Lesuisse
d50577b69d
[IMP] http move db dispatching on the orm level
...
Split low level dispatching and high level dispatching.
Low level dispatching is used when the db is unknown it's only used by a few
controller in base and web.
High level dispatching is used when the db is known, it is used by most
controllers and it handles authentication and errors. Because it's a regular
osv object all it is fully overridable by openerp modules.
bzr revid: al@openerp.com-20131110014609-io03vspj2q1wtqa0
2013-11-10 02:46:09 +01:00
Stephane Wirtel
c9a7e69a75
[FIX] test_mail: Rewrite the XSS test
...
bzr revid: stw@openerp.com-20131107141019-jjhvism55j8x207g
2013-11-07 15:10:19 +01:00
Quentin (OpenERP)
8a52fe77f8
[IMP] base, currency: second attempt to include this patch (previously added in revision 4982 then reverted in revision 4984 because of a bug in the server that was making an infinite loop -which has been fixed in previous revision-). Updated the type of name field of res.currency.rate in <datetime> instead of <date> for those who need to update the rate of currencies several times per day
...
bzr revid: qdp-launchpad@openerp.com-20131104134618-oujlfwmnpc1xbvml
2013-11-04 14:46:18 +01:00
Quentin (OpenERP)
bdda7b70d3
[FIX] expression.py: when searching on a datetime field with an argument formated as a date, conversion should happen _also_ for the '=' operator. This omission was causing an infinite loop beacuse we were pushing the exact same leaf on the stack without any modification
...
bzr revid: qdp-launchpad@openerp.com-20131104134314-2mv5wkt13ih9c1yg
2013-11-04 14:43:14 +01:00
Launchpad Translations on behalf of openerp
f270975d98
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131102055722-60w8wrpax87wkxhx
bzr revid: launchpad_translations_on_behalf_of_openerp-20131102060651-bdts7qkh2850je5u
2013-11-02 06:06:51 +00:00
Christophe Simonis
0e1cc663b3
[MERGE] forward port of branch saas-2 up to revid 4968 chs@openerp.com-20131031142325-vo84hk5co2e2phg0
...
bzr revid: chs@openerp.com-20131031143208-4gtdju33sv0wdtcg
2013-10-31 15:32:08 +01:00
Denis Ledoux
0cf57bdee2
[MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 8800 rev-id: dle@openerp.com-20131031162241-goga1hsvwgyqigzd
...
bzr revid: chs@openerp.com-20131031142325-vo84hk5co2e2phg0
bzr revid: dle@openerp.com-20131031143133-wfus2hag57e73by2
bzr revid: dle@openerp.com-20131031162928-8gpom1ralccy07uc
2013-10-31 17:29:28 +01:00
Christophe Simonis
82211b1ac2
[MERGE] forward port of branch 7.0 up to revid 5113 launchpad_translations_on_behalf_of_openerp-20131031054724-b9dbttdcrl9eccwr
...
bzr revid: chs@openerp.com-20131025103657-pbnqhw11mygyi5jn
bzr revid: chs@openerp.com-20131031142125-7bm00z2jpccf3v6f
2013-10-31 15:21:25 +01:00
Launchpad Translations on behalf of openerp
e3c98d3b5b
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131031054724-b9dbttdcrl9eccwr
bzr revid: launchpad_translations_on_behalf_of_openerp-20131101062658-f0i1x0ls32lokxmq
bzr revid: launchpad_translations_on_behalf_of_openerp-20131102062309-1hvmk0fdeahhzjzk
bzr revid: launchpad_translations_on_behalf_of_openerp-20131103054310-9gbqxiwvi6a7rp1x
bzr revid: launchpad_translations_on_behalf_of_openerp-20131104060212-au7d8ww0ru2r10qf
2013-11-04 06:02:12 +00:00
Christophe Simonis
1c523aa1be
[FIX] http: bind RouteMap using environ to allow correct redirections
...
(manual forward port of revid 3860 chs@openerp.com-20131023162646-9t8iu2okkddg56yi from web branch)
bzr revid: chs@openerp.com-20131030182400-bfuvl2209a7e1ifz
2013-10-30 19:24:00 +01:00
Quentin (OpenERP)
ca92afb39a
[REV] base, res.currency: reverted revision 4982 because it was causing an error when a res.currency.rate was searched with a domain like [('name', '=', '30-20-2013')]. This patch will be back with a graceful solution to fix the error
...
bzr revid: qdp-launchpad@openerp.com-20131030172805-7ndvj8vj4h31wre8
2013-10-30 18:28:05 +01:00
Quentin (OpenERP)
c384955cfa
[FIX] osv.fields: don't raise an error for searching on dummy fields because it's their main reason to be
...
bzr revid: qdp-launchpad@openerp.com-20131030102313-64gb1n98rzdg5mx1
2013-10-30 11:23:13 +01:00
Martin Trigaux
e2d6786bc1
[FIX] ir_attachment: fix security issues on ir_attachment
...
check: verify the permissions even when no ids are passed (skipped permission checking for create)
create: verify has the write access on the related model (instead of create, was not checked anyway)
function field: execute the write in fnct_inv as superuser (was impossible to have creation without write access)
bzr revid: mat@openerp.com-20131030084408-t857gl7d4lkbrj5p
2013-10-30 09:44:08 +01:00
Launchpad Translations on behalf of openerp
23e6b81833
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131026062452-54qhvc3cru0x8e6h
bzr revid: launchpad_translations_on_behalf_of_openerp-20131029051406-apyhsdmupva2pdpz
bzr revid: launchpad_translations_on_behalf_of_openerp-20131030055412-kuwph2dx2jfeepwc
2013-10-30 05:54:12 +00:00
Martin Trigaux
15905e78c5
[FIX] ir_attachment: fix security issues on ir_attachment
...
check: verify the permissions even when no ids are passed (skipped permission checking for create)
create: verify has the write access on the related model (instead of create, was not checked anyway)
function field: execute the write in fnct_inv as superuser (was impossible to have creation without write access)
bzr revid: mat@openerp.com-20131029171420-x87wu7ph8ej7mtro
2013-10-29 18:14:20 +01:00
Olivier Dony
5db5d655d6
[IMP] res.users: default search field should match emails too
...
bzr revid: odo@openerp.com-20131028155639-it1q12xt5iul1oac
2013-10-28 16:56:39 +01:00
Olivier Dony
06a3255576
[IMP] res_partner: default search field can be based on display_name + have email matching by default
...
This more closely matches the behavior of name_search,
until name_search is actually available in search views.
bzr revid: odo@openerp.com-20131028155600-1dwd35sjht2of63m
2013-10-28 16:56:00 +01:00
Quentin (OpenERP)
d6e3f655b5
[IMP] base, res_currency: changed the type of name of res_currency_rate from date to datetime for those who need to update the rate of a currency several times per day
...
bzr revid: qdp-launchpad@openerp.com-20131028140333-nmvm07ay5xllo2zi
2013-10-28 15:03:33 +01:00
niv-openerp
f312303734
[IMP] Added doc
...
bzr revid: nicolas.vanhoren@openerp.com-20131029150105-4l3hys56zt2dpmcc
2013-10-29 16:01:05 +01:00
Antony Lesuisse
a569093606
[IMP] move http layer from openerp-web to openobject-server, convert controllers to the new route api
...
versioned history http.py can be found in lp:~openerp/openerp-web/trunk file addons/web/http.py
bzr revid: al@openerp.com-20131027171553-qe1ulbff0bphm15o
2013-10-27 18:15:53 +01:00
Martin Trigaux
57a78f3f97
[FIX] res_config: don't jump to first root menu after applying changes, instead reload and stay on same configuration page
...
bzr revid: mat@openerp.com-20131025154657-fk7t72hl9cns2279
2013-10-25 17:46:57 +02:00
Antony Lesuisse
422de0505c
[REM] remove useless warning in user preference
...
bzr revid: al@openerp.com-20131025133531-6sbntv1visib5akt
2013-10-25 15:35:31 +02:00
Christophe Simonis
d91819cb43
[MERGE] forward port of branch saas-2 up to revid 4965 chs@openerp.com-20131025103939-5gta1eifjhx1tsmi
...
bzr revid: chs@openerp.com-20131025104326-4k5hayl0bwdgt0mm
2013-10-25 12:43:26 +02:00
Christophe Simonis
2029aa28eb
[MERGE] forward port of branch saas-1 up to revid 4914 chs@openerp.com-20131025103657-pbnqhw11mygyi5jn
...
bzr revid: chs@openerp.com-20131025103939-5gta1eifjhx1tsmi
2013-10-25 12:39:39 +02:00
Christophe Simonis
2859897815
[FIX] allow falsy extra attributes on fields.
...
bzr revid: chs@openerp.com-20131024135448-e2bpgaqu7mvg1icn
2013-10-24 15:54:48 +02:00
Launchpad Translations on behalf of openerp
7345cfb697
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131019052730-g67chkz69pmoi5q4
bzr revid: launchpad_translations_on_behalf_of_openerp-20131020050443-pce4qrtn25h1qir6
bzr revid: launchpad_translations_on_behalf_of_openerp-20131023052203-fvk0akb3avqxkqje
bzr revid: launchpad_translations_on_behalf_of_openerp-20131024052015-8kg0owfhye4ws3xw
bzr revid: launchpad_translations_on_behalf_of_openerp-20131025060039-0t8928ck7dgi8yv6
2013-10-25 06:00:39 +00:00
Thibault Delavallée
357676b6de
[MERGE] [FIX] tools: mail: fixed shortening of html content.
...
Fixed length computation of text in html nodes: multiples successive whitespaces are considered as one whitespaces; better truncate position when adding a read more link; now always protect words (placed after the first word that exceeds the shorten position); pre nodes are preserved about whitespaces; when the read more link should go into a quote, it instead goes at the end of the first parent node not being quoted instead of at a wrong position.
Misc :
- removed an unnecessary loop by merging two root.iter() that do not interfere
- changed occurrences of getiterator to iter, because getiterator is deprecated
- nodes are cleaned after processing, removing all attributes used to tag nodes
- fixed a bug about cleaning span containing only whitespaces not always cleaned
Added tests for shorten position.
bzr revid: tde@openerp.com-20131024084411-pytwt9g1gdmoebzc
2013-10-24 10:44:11 +02:00
Thibault Delavallée
dbe253b0e4
[FIX] Fixed bug due to copy-and-paste: outertext is now valid
...
bzr revid: tde@openerp.com-20131024083955-ipbsf8rxbzm0mag3
2013-10-24 10:39:55 +02:00
Launchpad Translations on behalf of openerp
0ae4b7dc93
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131024044442-55ny33bhhxic8yq3
2013-10-24 04:44:42 +00:00
Thibault Delavallée
e14de7a637
[FIX] Fixed previous commit, car go to len of the string.
...
bzr revid: tde@openerp.com-20131023123839-gvf9ugft2b2xmo9a
2013-10-23 14:38:39 +02:00
Thibault Delavallée
7f61d18ef9
[CLEAN] tools: cleaned modified code
...
bzr revid: tde@openerp.com-20131023122744-3b3hayy4f8ss2bjx
2013-10-23 14:27:44 +02:00
Thibault Delavallée
57c11338ae
[IMP] tools: mail: added a protection in a string.find, could have a None argument
...
bzr revid: tde@openerp.com-20131022142908-sol44xaprx1b0b0a
2013-10-22 16:29:08 +02:00
Thibault Delavallée
af29bf7bc9
[FIX] tools: mail: fixed shortening of html content.
...
Fixed length computation of text in html nodes: multiples successive
whitespaces are considered as one whitespaces; better truncate position
when adding a read more link; now always protect words (placed after
the first word that exceeds the shorten position); pre nodes are preserved
about whitespaces; when the read more link should go into a quote, it instead
goes at the end of the first parent node not being quoted instead of at
a wrong position.
Added tests for shorten position.
bzr revid: tde@openerp.com-20131022135037-igauu2kkglvdrqu7
2013-10-22 15:50:37 +02:00
Olivier Dony
6752a298ec
[IMP] ir.translation: `module` field is useful for admin/debugging
...
bzr revid: odo@openerp.com-20131021143641-eflzertf2r7hap44
2013-10-21 16:36:41 +02:00
Olivier Dony
9227f3d5fc
[MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 4913 rev-id: odo@openerp.com-20131018145638-0evfafu4yqg2itia
...
bzr revid: odo@openerp.com-20131018154805-axo5jrsbyd24qwle
2013-10-18 17:48:05 +02:00
Olivier Dony
b361ec0151
[FIX] base.import.module: this wizard is disabled and should be dropped entirely in trunk
...
Kept the model for backwards compatibility until then
bzr revid: odo@openerp.com-20131018145638-0evfafu4yqg2itia
2013-10-18 16:56:38 +02:00
niv-openerp
87ee7c8b70
Enabled controllers not contained in modules
...
bzr revid: nicolas.vanhoren@openerp.com-20131018140752-ha9qpb0mormxp7l0
2013-10-18 16:07:52 +02:00
niv-openerp
ec291efb80
merge trunk
...
bzr revid: nicolas.vanhoren@openerp.com-20131018134553-a7dshmtv8yp70qzp
2013-10-18 15:45:53 +02:00
niv-openerp
c333546c35
Moved http.py to server
...
bzr revid: nicolas.vanhoren@openerp.com-20131018121312-z5rjbmda3nlvxc86
2013-10-18 14:13:12 +02:00
niv-openerp
5696282656
[MERGE] saas2
...
bzr revid: nicolas.vanhoren@openerp.com-20131018103501-sns9zca0nmpm9efn
2013-10-18 12:35:01 +02:00
Olivier Dony
71f1665b98
[FIX] tools.mail: typo causing infinite loop + fix test parameters to actually enter it
...
bzr revid: odo@openerp.com-20131018085118-9b2ltkpff5c8yzmr
2013-10-18 10:51:18 +02:00
Thibault Delavallée
6bc32a8b4b
[FIX] tools: mail: fixed / improved html_email_clean.
...
Read more links could not appear when the shorten limit was obtained
inside a quote that is removed in the process, removing the read
more link node. It now get the first parent that is not inside a
quote to be sure the link is displayed.
Added the test-case that helped find this bug.
bzr revid: tde@openerp.com-20131017110525-etn0u5s91zbnvul1
2013-10-17 13:05:25 +02:00
Olivier Dony
77caeeeba5
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5101 rev-id: odo@openerp.com-20131016105812-844cd9xljvkjwtm3
...
bzr revid: odo@openerp.com-20131016110621-36vvlpn8dgsabyt1
2013-10-16 13:06:21 +02:00