Commit Graph

6173 Commits

Author SHA1 Message Date
Denis Ledoux 1b2c0f74dc [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5229 revid:launchpad_translations_on_behalf_of_openerp-20140211064034-ghuxxk02n715othj
bzr revid: dle@openerp.com-20140211163902-ya86jr7lwlj1mkk9
2014-02-11 17:39:02 +01:00
Raphael Collet 3aa24b345e [MERGE] from saas-3
bzr revid: rco@openerp.com-20140211162843-bfowcg6a3qb91h3c
2014-02-11 17:28:43 +01:00
Raphael Collet 9f7c687dec [FIX] ir_ui_view: in context dict, put model name instead of model itself
bzr revid: rco@openerp.com-20140211162736-hgkwjk336ldkjej6
2014-02-11 17:27:36 +01:00
Martin Trigaux 24b0b132d4 [FIX] module: fix imports broken at revision 5055
get_module_resource method is required by function fields of ir.module.module

bzr revid: mat@openerp.com-20140211105525-tuhs10hb8y3o1rnp
2014-02-11 11:55:25 +01:00
Christophe Simonis 88e8c52702 [FIX] trunk is 8.0 alpha, not saas-3
lp bug: https://launchpad.net/bugs/1278411 fixed

bzr revid: chs@openerp.com-20140211105315-ogfh9d2qzhu3sa5o
2014-02-11 11:53:15 +01:00
Olivier Dony 722163893e [FIX] ir.actions: active_model may not always match current model, in which case `object` should be `None`
bzr revid: odo@openerp.com-20140211082546-tgenye70etn21ih5
2014-02-11 09:25:46 +01:00
Martin Trigaux e328c0a40e [FIX] html_sanitize: partial backport of trunk revision 5047.
Unescape elements that have been wrongly escaped.

Some elements (eg: 'href' tag in links) are sanitised in templates which prevents the execution of mako templates.

lp bug: https://launchpad.net/bugs/1273251 fixed

bzr revid: mat@openerp.com-20140210144023-9sp8cqn07ta5o64y
2014-02-10 15:40:23 +01:00
Olivier Dony dc0b8b5c66 [IMP] ir.actions.server: add `datetime` and `dateutil` in default eval context + make context extensible
bzr revid: odo@openerp.com-20140210140933-7g70205v4mxk9qhz
2014-02-10 15:09:33 +01:00
Christophe Matthieu 90ed82bb14 [IMP] test phantomtest: inject files with testing if a variable is already setted
bzr revid: chm@openerp.com-20140210131910-z8eggofegua88516
2014-02-10 14:19:10 +01:00
Fabien Meghazi f36b92bb81 [MERGE] saas-3
bzr revid: fme@openerp.com-20140210105311-wattch3c49ikwwmn
2014-02-10 11:53:11 +01:00
Launchpad Translations on behalf of openerp 8d85c23e4a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140209065003-9soyulgvssk8n5ci
bzr revid: launchpad_translations_on_behalf_of_openerp-20140208071621-b018rnkhyxmmm5jk
bzr revid: launchpad_translations_on_behalf_of_openerp-20140209065224-kih7tx56elds0zok
bzr revid: launchpad_translations_on_behalf_of_openerp-20140210055324-raxopm5ej680oc73
2014-02-10 05:53:24 +00:00
Antony Lesuisse 1f78dfb76d [IMP] phantomjs testing add an easy phantom_js helper
self.phantom_js(<page_to_load>, <code_to_run>, <global_object_to_wait>, **options)

example:

self.phantom_js("/", "openerp.module.mytest()", "openerp.module.mytest");

console.log('ok') or console.log('error') should be used to signal success or
failure. Other console.log's will be passed to the test logger.

bzr revid: al@openerp.com-20140210004517-jc2cobc31qshxchm
2014-02-10 01:45:17 +01:00
Antony Lesuisse fb88cb841f [IMP] test_ui shorter code
bzr revid: al@openerp.com-20140209234714-bq5w2zo9v402x87v
2014-02-10 00:47:14 +01:00
Antony Lesuisse 8790ae76fc [IMP] rename into test_ui like addons
bzr revid: al@openerp.com-20140209231948-5tqj0nndsod0gyb1
2014-02-10 00:19:48 +01:00
Antony Lesuisse 1f67b2165c [IMP] phantomtest helper
bzr revid: al@openerp.com-20140209223917-vruzjvl0mtsqoo87
2014-02-09 23:39:17 +01:00
Antony Lesuisse e6ac29ee43 [IMP] move test cases to tests.py remove deprecated wsgi import
bzr revid: al@openerp.com-20140209151822-cgk0wibqe1kfd42w
2014-02-09 16:18:22 +01:00
Antony Lesuisse ac68581e2e [FIX] re-enable test func and qweb
bzr revid: al@openerp.com-20140209143326-mitb5g9sdsll9arj
2014-02-09 15:33:26 +01:00
Antony Lesuisse 16fd821ed6 [FIX] restore testing after patching runbot
bzr revid: al@openerp.com-20140209141912-rh3yedrmjudv8jif
2014-02-09 15:19:12 +01:00
Antony Lesuisse bd16076431 fix try to fix runbot oe command
bzr revid: al@openerp.com-20140209022520-p55nlctjru58ans5
2014-02-09 03:25:20 +01:00
Antony Lesuisse 002ac937c1 add python --test-file support
bzr revid: al@openerp.com-20140209014636-2fbl15q8wrubmiup
2014-02-09 02:46:36 +01:00
Antony Lesuisse 278ed718e9 new test execution engine
remove deprecated zipfile support
add preload_registry option when server is running
allow registries to be used in contruction in test mode
add a rollback test case for http tests
add a phantomjs helper

bzr revid: al@openerp.com-20140209004005-p5pwym4sqc23vw5b
2014-02-09 01:40:05 +01:00
Antony Lesuisse 82372e6a02 move tests
move test modules
remove xml test
add phantomjs test
readd remove uninstall test (currently disabled because of cr.commit)

bzr revid: al@openerp.com-20140209003745-ehrx8ikwkmusa644
2014-02-09 01:37:45 +01:00
Olivier Dony 391872c4d6 [FIX] orm.copy_data: avoid reading useless and possibly expensive data when copying records
Rather than reading the data and discarding it,
it is much faster to not read it in the first place.

bzr revid: odo@openerp.com-20140206170401-brd6368pe1fmbkkc
2014-02-06 18:04:01 +01:00
Olivier Dony 7c53d8c2d1 [FIX] base: avoid keeping password wizards in the database longer than necessary
This patch deletes the wizard lines rather than
 the wizard record itself, to avoid errors in case
 the client reloads the wizard data before actually
 closing it.

lp bug: https://launchpad.net/bugs/1271165 fixed

bzr revid: odo@openerp.com-20140206164559-j0j9o30im0u2hl2g
2014-02-06 17:45:59 +01:00
Fabien Meghazi 297781df08 [IMP] Move some qweb rendering context vars from website#ir.qweb to server#ir.ui.view
bzr revid: fme@openerp.com-20140206161204-vp6kydvdxhg5qykx
2014-02-06 17:12:04 +01:00
Christophe Simonis 9289a2608d [MERGE] forward port of branch saas-3 up to revid 5060 chs@openerp.com-20140206131116-we6rlic5fu09xh8q
bzr revid: chs@openerp.com-20140206131219-9rpwsfe9vc7uf0cr
2014-02-06 14:12:19 +01:00
Christophe Simonis 5a022d6ab3 [MERGE] backport trunk revision 5053 fva@openerp.com-20140206110134-jk5zbd8cc6x1ebh5
bzr revid: chs@openerp.com-20140206131116-we6rlic5fu09xh8q
2014-02-06 14:11:16 +01:00
Christophe Simonis 73d675a73d [FIX] ir.ui.view: avoid infinite loop when applying multiple inheritance inside a single view (use of <data> tag)
bzr revid: chs@openerp.com-20140206130349-19v4ah0lwy87t50o
2014-02-06 14:03:49 +01:00
Antony Lesuisse 4a5b4a8c3f [IMP] sale_eval break continue raise control flow opcodes
bzr revid: al@openerp.com-20140206124019-07in9p9capmznlo2
2014-02-06 13:40:19 +01:00
Christophe Simonis 94162667dd [IMP] http: extract save/get session actions as methods on session object
bzr revid: chs@openerp.com-20140206115209-naleunin0mleghda
2014-02-06 12:52:09 +01:00
Christophe Simonis 500fea28b7 [MERGE] forward port of branch saas-2 up to revid 5007 chs@openerp.com-20140206110220-myn57cryam1y4k9v
bzr revid: chs@openerp.com-20140206110423-qe4h5ip2dg6dm7ph
2014-02-06 12:04:23 +01:00
Christophe Simonis a69f789b41 [MERGE] forward port of branch 7.0 up to revid 5224 chs@openerp.com-20140206105141-7e8bv8ordqqsswh7
bzr revid: dle@openerp.com-20140205105045-j95kduyjiq83e57z
bzr revid: dle@openerp.com-20140114173613-ruxye1m7fxtcjfim
bzr revid: dle@openerp.com-20140116161158-u95vcs3os4tk2zob
bzr revid: dle@openerp.com-20140121172737-gzawfi3ssg7xifef
bzr revid: chs@openerp.com-20140129094554-c3abc8x3qz9mpszr
bzr revid: chs@openerp.com-20140129140159-9vwkpr078shoonum
bzr revid: chs@openerp.com-20140206110220-myn57cryam1y4k9v
2014-02-06 12:02:20 +01:00
Frédéric van der Essen 13a4c3fec9 [IMP] cors rpc: enable preflight request caching, vastly improves rpc performance
bzr revid: fva@openerp.com-20140206110134-jk5zbd8cc6x1ebh5
2014-02-06 12:01:34 +01:00
Christophe Simonis c234d8547d [FIX] _(): avoid useless warning where translating string without a cursor
bzr revid: chs@openerp.com-20140206105141-7e8bv8ordqqsswh7
2014-02-06 11:51:41 +01:00
Martin Trigaux 7950914c69 [IMP] ir_fields: no need to sanitize the _str_to_html as it is already done in the _symbol_set of html fields. This avoids doing twice the sanitization.
bzr revid: mat@openerp.com-20140206094628-umx2rfb9rcim7v82
2014-02-06 10:46:28 +01:00
Martin Trigaux 909ff6e368 [MERGE] [FIX] ir_fields: allow convertion from string to html using sanitize function
This is required to be able to import csv file containing html fields

lp bug: https://launchpad.net/bugs/1093800 fixed

bzr revid: mat@openerp.com-20140206084708-j63kpkr9apd3j01j
2014-02-06 09:47:08 +01:00
Launchpad Translations on behalf of openerp ffabcd257c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140206062321-j6cpns6xz3f81net
bzr revid: launchpad_translations_on_behalf_of_openerp-20140206062510-x502ahdwzezvea54
2014-02-06 06:25:10 +00:00
Anael Closson 30d22d327e [FIX] typo, wrong ordering of lines
bzr revid: acl@openerp.com-20140205125208-8ds2hxfqnuqsngbd
2014-02-05 13:52:08 +01:00
Laurent Mignon (Acsone) ef974c7fe5 Fix log message
bzr revid: laurent.mignon@acsone.eu-20140205091452-6mamu14lpevyjy28
2014-02-05 10:14:52 +01:00
Thibault Delavallée 6e42b51bf5 [FIX] ir_actions: typo in comments
bzr revid: tde@openerp.com-20140205090817-bp48bop089bzpm2r
2014-02-05 10:08:17 +01:00
Thibault Delavallée bb7e6966f5 [IMP] ir_actions: server action: evaluation context preparation is done in
its own method, to ease the inheritance and to allow other modules to
add new items in the evaluation context.

bzr revid: tde@openerp.com-20140205084537-9eff44cuyg3u20xy
2014-02-05 09:45:37 +01:00
Launchpad Translations on behalf of openerp 974bcdf97e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140204055041-y3n9csfmrqvglcqs
2014-02-04 05:50:41 +00:00
jke-openerp 0d22b87f3a [FIX] Fix bug of positionning on res_partner form
bzr revid: jke@openerp.com-20140203163052-01m78wwe38974cf5
2014-02-03 17:30:52 +01:00
Martin Trigaux 5f10bec1a0 [IMP] better assert message and cleaning
bzr revid: mat@openerp.com-20140203134051-lgwo4v0rdntgxyor
2014-02-03 14:40:51 +01:00
Martin Trigaux 6ea8851fd0 [ADD] test read_group on a column of _inherits model and group on right field
bzr revid: mat@openerp.com-20140203133331-mujvv812zd971ci2
2014-02-03 14:33:31 +01:00
Anael Closson f6207124f9 [FIX] OPW 598942 : orm read_group doesn't take referenced fields or aggregated fields in account when sorting
Sorting was done using a search on ids that where found in a custom SQL field,
only 1 record among aggregated records with same groupby value was used
when using search for ordering, resulting data ordered on
max(aggregated_data).field_value instead of sum(aggregated_data.field_value).

lp bug: https://launchpad.net/bugs/106086 fixed

bzr revid: acl@openerp.com-20140203125854-ypi0bu0lbhatg9b1
2014-02-03 13:58:54 +01:00
Martin Trigaux cafa5e7854 [FIX] orm: read_group aggregates values on all columns instead of only the one of the parent model
bzr revid: mat@openerp.com-20140203123311-38rwp7tfyc08flid
2014-02-03 13:33:11 +01:00
Mohammed Shekha (OpenERP) 15813479f5 [FIX]Fixed the issue of html field import fails, because of no converter found for str to html.
bzr revid: msh@openerp.com-20140203120525-ui117od6lpksm1bq
2014-02-03 17:35:25 +05:30
Xavier Morel 0aa0bbd539 [FIX] add warning when dbfilter logs out current session
bzr revid: xmo@openerp.com-20140203115633-es2o542ywg85d46i
2014-02-03 12:56:33 +01:00
Launchpad Translations on behalf of openerp 2a297c3b2f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140201065247-b0hmat9ikp0cj2sx
bzr revid: launchpad_translations_on_behalf_of_openerp-20140202055930-0e8qd9refwne4999
bzr revid: launchpad_translations_on_behalf_of_openerp-20140203055525-2z3nfmfb0t7lpqpf
2014-02-03 05:55:25 +00:00
Laurent Mignon (Acsone) 476a0b620d [FIX] ir_cron: use the same search criteria as when listing job to excecyte when acquiring the lock on the job before its execution to prevent running already executed job
bzr revid: laurent.mignon@acsone.eu-20140131163210-2sw8f2e5n4my5o5l
2014-01-31 17:32:10 +01:00
Christophe Simonis 46cbf22efb [FIX] allow to use "dbname" as keyword in routes
bzr revid: chs@openerp.com-20140131163139-89lfordriamw9i1w
2014-01-31 17:31:39 +01:00
Olivier Dony e846c499e8 [REL] version: 7.~saas-3
bzr revid: odo@openerp.com-20140131122313-zaet2jih5dg76qu6
2014-01-31 13:23:13 +01:00
Fabien Meghazi fa61a1e5a7 [REV] Bring back QWebException, rename QWebException#inner to 'cause'
bzr revid: fme@openerp.com-20140131113515-ahcix3h6uzzdz8ix
2014-01-31 12:35:15 +01:00
Fabien Meghazi 3fac414239 [FIX] CORS routing should use new routing api
bzr revid: fme@openerp.com-20140131104840-e0557qke365ym2x4
2014-01-31 11:48:40 +01:00
Antony Lesuisse f119c818c7 [REV] never change exceptions types
bzr revid: al@openerp.com-20140131010802-5zh9m5jc1ajnp5wj
2014-01-31 02:08:02 +01:00
Antony Lesuisse d6c1346e12 [MERGE] trunk-website-al
bzr revid: al@openerp.com-20140131005207-mn7t6tar8cywe9hz
2014-01-31 01:52:07 +01:00
Fabien Pinckaers 849125efd2 [FIX] removing test that commits and small fix
bzr revid: fp@tinyerp.com-20140131002701-4eaggu8tszph4vl5
2014-01-31 01:27:01 +01:00
Fabien Meghazi 6be5db45b0 [IMP] QWeb exceptions shall not shadow original exceptions
bzr revid: fme@openerp.com-20140130211708-5i9lpi4ddn7a2xbe
2014-01-30 22:17:08 +01:00
Fabien Meghazi 9cc89156cc [REM] outdated disable_db
bzr revid: fme@openerp.com-20140130210612-su04ki3zlv043bvz
2014-01-30 22:06:12 +01:00
Fabien Meghazi 4b70011c12 [FIX] ir_ui_view#read_template() bring back old behavious, raises ValueError if xmlid not found
bzr revid: fme@openerp.com-20140130210154-llo2tjl323k0yxyr
2014-01-30 22:01:54 +01:00
Olivier Dony 171408280c [FIX] res.partner: properly (re)compute display_name and commercial_partner_id on inactive partners
bzr revid: odo@openerp.com-20140130192848-orv1glg2j26wdpml
2014-01-30 20:28:48 +01:00
Christophe Simonis 7a0262a4d5 [FIX] allow "none" route to be accessible when logged in
bzr revid: chs@openerp.com-20140130162626-z83x9e6ekdfqku0a
2014-01-30 17:26:26 +01:00
Christophe Simonis 83bd83dc63 [REVERT] revert commit 5210 chs@openerp.com-20140130150628-qqbno0nu8mp27b9u: bring back magic
bzr revid: chs@openerp.com-20140130162041-63wbcsq1udxw529f
2014-01-30 17:20:41 +01:00
Olivier Dony 7e6be99a63 [IMP] res.partner: more selective child_of _search() hack
Makes the conditions for disabling the `active` test
on res.partner.search() more selective, to avoid
triggering it when we are not actually searching for
the children of specific parents.
(Broke base tests now that data includes an deactivated
partner)

bzr revid: odo@openerp.com-20140130162419-09tit4cyef570aze
2014-01-30 17:24:19 +01:00
Gery Debongnie e98a1a8f64 [MERGE] merge trunk into local branch
bzr revid: ged@openerp.com-20140130155158-zwddmty5a79mcn90
2014-01-30 16:51:58 +01:00
Gery Debongnie 02313ae739 [IMP] improves the formatting of the dates returned by read_group in orm.py (for ex, January -> January 2014 or W4 -> W4 2014)
bzr revid: ged@openerp.com-20140130155117-ldsq4tjat96ustd8
2014-01-30 16:51:17 +01:00
Olivier Dony c3c0705203 [FIX] ir.ui.view: fix tests after refactoring of ir.ui.view/qweb view processing
bzr revid: odo@openerp.com-20140130154354-6xg4mx31to4dg0ql
2014-01-30 16:43:54 +01:00
Olivier Dony 5908a45e47 [FIX] ir.ui.view: better error message upon missing model for non-qweb views, misc cleanup
bzr revid: odo@openerp.com-20140130154349-rnwjz0bgxp6vdxwu
2014-01-30 16:43:49 +01:00
Olivier Dony 79dc0235cd [IMP] orm: log underlying exception at DEBUG level when a constraint check raises
bzr revid: odo@openerp.com-20140130154100-rdr1n5u1aiz9cbk3
2014-01-30 16:41:00 +01:00
Olivier Dony 0428c00e2f [FIX] browse_record.__str__: avoid crashing when ID is None
bzr revid: odo@openerp.com-20140130153955-naxbrcz5pv17z4rq
2014-01-30 16:39:55 +01:00
Olivier Dony 30513f498c [FIX] modules.loading: clear caches after test rollback, to avoid stale caches
bzr revid: odo@openerp.com-20140130153835-i5wb7nr0cwl3kjee
2014-01-30 16:38:35 +01:00
Fabien Meghazi ff0e5318f6 [ADD] Support cors for pos demo
bzr revid: fme@openerp.com-20140130151425-tkcv5cvx04og0neu
2014-01-30 16:14:25 +01:00
Christophe Simonis 4ab91a958d [FIX] http: allow auth="none" routes to works without being logged in when in monodb.
bzr revid: chs@openerp.com-20140130150628-qqbno0nu8mp27b9u
2014-01-30 16:06:28 +01:00
Gery Debongnie e9e2c5d587 [MERGE] merge trunk into local branch
bzr revid: ged@openerp.com-20140130135015-y0uxsdjb6631iqoo
2014-01-30 14:50:15 +01:00
Christophe Simonis 51cabd2c69 [FIX] correct retro-compatibility with 7.0 route()
bzr revid: chs@openerp.com-20140130125827-j1xzt4qowg1ew3zf
2014-01-30 13:58:27 +01:00
Fabien Meghazi 5322b98647 [FIX] request.func not available on favicon.ico requests
bzr revid: fme@openerp.com-20140130133343-gbo353c41dphy1hj
2014-01-30 14:33:43 +01:00
Fabien Meghazi 53098c666c [MERGE] trunk's CORS support (merge with changes)
bzr revid: chs@openerp.com-20140130120448-tj9pu30o7dj74zid
bzr revid: fme@openerp.com-20140130125425-j1yn6p4lr7lincr3
2014-01-30 13:54:25 +01:00
Fabien Meghazi b63b03abd0 [IMP] better handling of methods for CORS
bzr revid: fme@openerp.com-20140130122654-2p481p5hwn033mi7
2014-01-30 13:26:54 +01:00
Fabien Meghazi 9cce88ab6a [ADD] Cross-Origin Resource Sharing support as http.route() argument
bzr revid: fme@openerp.com-20140130121745-zjuuves1yhydydpx
2014-01-30 13:17:45 +01:00
Olivier Dony 5bb31b70d8 [FIX] ir.ui.view: one2many to ir.model.data needs domain otherwise it matches entries from other models
bzr revid: odo@openerp.com-20140130120109-0z6kpzv5t155haog
2014-01-30 13:01:09 +01:00
Antony Lesuisse 20fc20a3f2 [IMP] http allow auth=none without db outside of web
bzr revid: al@openerp.com-20140130114535-0keldqr1eln8swm8
2014-01-30 12:45:35 +01:00
Olivier Dony c231d9760a [FIX] ir.ui.view: restore extended validation of view arch, let exceptions bubble up to constraint checker, cleanup+translate error messages
Raising an exception in a _constraint will now be
properly considered as a failed constraint, and the
user will see a warning popup with the exception
message. Therefore it makes sense to translate the
error as well, at least the not-too-technical part

bzr revid: odo@openerp.com-20140130100716-qcbwy7ecnxj17718
2014-01-30 11:07:16 +01:00
Olivier Dony 57ec7d6c03 [IMP] orm: when a _constraint check raises, catch it and combine its message with the constraint message for the user-friendly popup
Plus minor cleanup

bzr revid: odo@openerp.com-20140130094337-7g8ez92viwmbzbft
2014-01-30 10:43:37 +01:00
Olivier Dony 7a01d4a93f [IMP] public_user: make parent partner inactive too
bzr revid: odo@openerp.com-20140130093109-x2legxl31mi5c8m6
2014-01-30 10:31:09 +01:00
Olivier Dony 4b746826b2 [IMP] res.partner: unused imports
bzr revid: odo@openerp.com-20140130093012-ytrx2i2xoc23npfg
2014-01-30 10:30:12 +01:00
Fabien Meghazi 1daa7db8b0 [REM] Removed disabled_db=True from ir_http's auth="none"
[MOV] ensure_db() helper from http module to web module

Since we removed auth="admin" in favor of auth="none" with explicit superuser id usage,
the disable_db clause in auth_none() has only sense for the /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-20140130092152-h6elwf2yerhd9xey
2014-01-30 10:21:52 +01:00
Fabien Meghazi 279c5e67ec [FIX] Check if session.db is legit before dispatching
bzr revid: fme@openerp.com-20140130085224-ac0w90ap9u4nmzen
2014-01-30 09:52:24 +01:00
Antony Lesuisse ec45bc96f9 [IMP] safe_eval add int float range, rename public user
bzr revid: al@openerp.com-20140130034238-qlgbu41d7mg9ns6i
2014-01-30 04:42:38 +01:00
Olivier Dony 3d1b879049 [IMP] qweb.render: t-esc/t-raw rendered as `False` or `None` replaced by empty strings
bzr revid: odo@openerp.com-20140129180600-0c155g520gpvnqqf
2014-01-29 19:06:00 +01:00
Christophe Simonis 958ecb84b0 [FIX] ir.model.data: correct cache clearing
bzr revid: chs@openerp.com-20140129172949-tmwd17c2ofsqj94t
2014-01-29 18:29:49 +01:00
Fabien Meghazi 04a52645c0 [REM] auth="admin" removed
bzr revid: fme@openerp.com-20140129171933-e61qp9p5xfdwyw89
2014-01-29 18:19:33 +01:00
Christophe Matthieu d546e0db2f [fIX] ir_qweb: fix groups inside t-call (use request.cr and request.uid and don't use None, None)
bzr revid: chm@openerp.com-20140129171138-zwuj2vyzu7l853np
2014-01-29 18:11:38 +01:00
Christophe Simonis 378c908d4c [MERGE] forward port of branch saas-2 up to revid 5006 chs@openerp.com-20140129140159-9vwkpr078shoonum
bzr revid: chs@openerp.com-20140129094847-4rsg0kjio0ed0rjk
bzr revid: chs@openerp.com-20140129141002-4p8fttm8ii0ogsse
2014-01-29 15:10:02 +01:00
Martin Trigaux 8a0f1b2495 [MERGE] [FIX] res_partner: name_search search in one pass
The original query did two passes (SQL query and orm search). This was a problem due to the limit parameter where the second query could reduce the number of results to a smaller number than the asked limit.

This code reproduces the orm _search behaviour to execute only one SQL query mixing both the ACL clauses and the complexe name_search without degrading the performances (removing the limit in the first query would have).

bzr revid: mat@openerp.com-20140129132240-eamnzs37k0i65gpe
2014-01-29 14:22:40 +01:00
Martin Trigaux cb4ce12d3a [IMP] make sure the records will be in right order (and trigger chirurgiens-dentistes.fr for the second name_search)
bzr revid: mat@openerp.com-20140129124806-dq56o7r1yt38nb08
2014-01-29 13:48:06 +01:00
Fabien Meghazi 0322f77279 [FIX] jsonrequests exposes same context object as it's session
bzr revid: fme@openerp.com-20140129124641-om4s0ts1zvf73zk0
2014-01-29 13:46:41 +01:00
Martin Trigaux e6ee1947f8 [FIX] better test, add missing parentheses in query, return empty list in case of no idea (instead of triggering super)
bzr revid: mat@openerp.com-20140129123404-8hs786n64briqyta
2014-01-29 13:34:04 +01:00
Martin Trigaux f71a381b81 [ref] move up!
bzr revid: mat@openerp.com-20140129114102-tk4fotnb28mtaz9x
2014-01-29 12:41:02 +01:00
Martin Trigaux 5d38e40e6b [FIX] revert previous rev for better where and add test
bzr revid: mat@openerp.com-20140129113938-517gqfi1kzcf64fz
2014-01-29 12:39:38 +01:00
Martin Trigaux 7dedf4ec45 [IMP] remove useless variable, where_clause at least '' as created from a str.join()
bzr revid: mat@openerp.com-20140129111959-7y9su01ooneu0mco
2014-01-29 12:19:59 +01:00
Martin Trigaux 05ec12692f [FIX] res_partner: name_search search in one pass
The original query did two passes (SQL query and orm search). This was a problem due to the limit parameter where the second query could reduce the number of results to a smaller number than the asked limit.

This code reproduces the orm _search behaviour to execute only one SQL query mixing both the ACL clauses and the complexe name_search without degrading the performances (removing the limit in the first query would have).

lp bug: https://launchpad.net/bugs/1203727 fixed

bzr revid: mat@openerp.com-20140129105548-dd6zmy9uc2cuowpq
2014-01-29 11:55:48 +01:00
Christophe Simonis 23778030cd [FIX] forbid dropping templates databases
bzr revid: chs@openerp.com-20140129103538-qbm054m29y5r4hu4
2014-01-29 11:35:38 +01:00
Gery Debongnie cffcc5ea18 [FIX] hopefully, properly uses the user's timezone when performing a readgroup (in orm.py)
bzr revid: ged@openerp.com-20140129084721-6m4cfg087vhqb51d
2014-01-29 09:47:21 +01:00
Antony Lesuisse 8bed2fb861 [FIX] ir_ui_view noupdate only if arch change, otherwise it flags them when you check them in customize
bzr revid: al@openerp.com-20140129051009-iuqpdz8a6qta6dx5
2014-01-29 06:10:09 +01:00
Antony Lesuisse 7eebddd09a [IMP] ir_ui_view try to add search on xml_id, doesnt seem to work
bzr revid: al@openerp.com-20140129050341-bbu8csko2rcofv13
2014-01-29 06:03:41 +01:00
Antony Lesuisse 9aed30381e [FIX] ir.model.data more faithful backward compatibilty
bzr revid: al@openerp.com-20140129032053-nb5x1oll6mkpw86h
2014-01-29 04:20:53 +01:00
Antony Lesuisse 928f25a4f1 [IMP] ir.model.data clean up xmlid lookup mess
- introduce a new xmlid_ set of function with a single cache and raise_on_not_found=False
- implement backward compatible api based on the new one

bzr revid: al@openerp.com-20140129030256-pqj3eay9vf4w2m14
2014-01-29 04:02:56 +01:00
Fabien Meghazi cfaadc0433 [ADD] http#ensure_db()
A helper that allows to force a db in the controller context otherwise redirect to database selector

Used for /web, /web/login and auth_* modules

bzr revid: fme@openerp.com-20140128211550-vmhy5nu0qbi33qh5
2014-01-28 22:15:50 +01:00
Fabien Meghazi 38e651cbd2 [REM] Removed t-href|t-action|t-src from server's ir.qweb. Restor add_template for template preprocessing
bzr revid: fme@openerp.com-20140128201235-iv2gwjt1jn00bwoo
2014-01-28 21:12:35 +01:00
Olivier Dony 95d3995614 [MERGE] Sync with trunk revno 5038 rev-id ged@openerp.com-20140127161125-2br49sy5bnyuen7f
bzr revid: odo@openerp.com-20140128184158-19hj4mg83jazp3nr
2014-01-28 19:41:58 +01:00
Christophe Simonis a47f7ef8e8 [FIX] do not hardcode demo uid
bzr revid: chs@openerp.com-20140128180910-2udedma5dwwtos4c
2014-01-28 19:09:10 +01:00
Xavier Morel 98bb821332 [FIX] fubared ir_filters tests
bzr revid: xmo@openerp.com-20140128164849-iv19wiwx2074l18f
2014-01-28 17:48:49 +01:00
jke-openerp c9fa796513 [FIX] Remove hard code demo user ID
bzr revid: jke@openerp.com-20140128155640-9k5kvk711tt9w9o5
2014-01-28 16:56:40 +01:00
jke-openerp 4dca6cd0cf [REF] Add missing image
bzr revid: jke@openerp.com-20140128150452-86abqh6w3dfojr3q
2014-01-28 16:04:52 +01:00
jke-openerp 9a8a6a5484 [REF] Add public_user into module server/addons/base (removed from addons/website/website_data.xml)
[REF]Add _auth_method_public  into server/addons/base/ir/ir_http (removed from website/ir_http)

Related commit for Addons : Committed revision 10689.

bzr revid: jke@openerp.com-20140128145510-3byhdmwftloeod6s
2014-01-28 15:55:10 +01:00
Fabien Meghazi 568ec06c06 [FIX] proper fix
bzr revid: fme@openerp.com-20140128141122-x1tj370w7zqi033h
2014-01-28 15:11:22 +01:00
Fabien Meghazi de3819972a [FIX] Temporary hackish fix in order to restore login on runbot
bzr revid: fme@openerp.com-20140128140025-h70s2exdswppp8dn
2014-01-28 15:00:25 +01:00
Gery Debongnie 2fe3861353 [FIX] uses the user's timezone when performing a readgroup (in orm.py)
bzr revid: ged@openerp.com-20140128110022-j08khieyt1wvsr8e
2014-01-28 12:00:22 +01:00
Christophe Simonis eb091de615 [FIX] yaml import: not all views have a name
bzr revid: chs@openerp.com-20140127180230-eybz2dlc7qdjy1yh
2014-01-27 19:02:30 +01:00
Raphael Collet 9518e6c323 [IMP] in ir_model_data.get_object(), rename parameter 'check' into 'raise_exception'
bzr revid: rco@openerp.com-20140127151726-if92mwiu3xawr8ge
2014-01-27 16:17:26 +01:00
Fabien Meghazi 0ffa561bbf [FIX] QWebException
bzr revid: fme@openerp.com-20140127145728-o3cxjoifut31s011
2014-01-27 15:57:28 +01:00
Martin Trigaux f2b2ee8eae [FIX] expression: do not look at translation in parse when searching with empty string or false
This fixes traceback when applying filter 'is not set' on a translatable field

lp bug: https://launchpad.net/bugs/1208565 fixed

bzr revid: mat@openerp.com-20140127144913-qjh9hrnkfdn18sdb
2014-01-27 15:49:13 +01:00
Gery Debongnie dde3f8479c [MERGE] merge trunk into local branch
bzr revid: ged@openerp.com-20140124153404-14x07mfr5s9lghid
bzr revid: ged@openerp.com-20140127133009-t8t29b3eu8ai5t8v
2014-01-27 14:30:09 +01:00
Fabien Meghazi bfeec4808b [REM] Removed todo, slug feature supported in addons.website.ir_http
bzr revid: fme@openerp.com-20140127132752-par38qbtnf21yzfs
2014-01-27 14:27:52 +01:00
Fabien Meghazi a969be4c38 [IMP] _handle_exception can also return a response
bzr revid: fme@openerp.com-20140127131333-pl0cminocjfopxaa
2014-01-27 14:13:33 +01:00
Fabien Meghazi 4138c1211c [IMP] Reworked qweb exceptions
bzr revid: fme@openerp.com-20140127113921-7u3gfzm7ykb3ruud
2014-01-27 12:39:21 +01:00
Launchpad Translations on behalf of openerp d9cdc8564c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140122061252-9jm03vlbr13ofqo9
bzr revid: launchpad_translations_on_behalf_of_openerp-20140123055652-0p71divui34v1c1q
bzr revid: launchpad_translations_on_behalf_of_openerp-20140124062440-hx0z2e4sd6nz7exc
bzr revid: launchpad_translations_on_behalf_of_openerp-20140126051449-rlunde7qysqsh1b1
bzr revid: launchpad_translations_on_behalf_of_openerp-20140125064003-v340hiykcngjg9ue
bzr revid: launchpad_translations_on_behalf_of_openerp-20140126051541-9fnyw12nex5poeth
bzr revid: launchpad_translations_on_behalf_of_openerp-20140127054606-1jb6usf6pj7gy1xl
2014-01-27 05:46:06 +00:00
Fabien Pinckaers 1c1b17451d [FIX] adding menu
bzr revid: fp@tinyerp.com-20140125151454-g4xsi25g3re2arwo
2014-01-25 16:14:54 +01:00
Launchpad Translations on behalf of openerp 88db454a41 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140125060316-85hljstv1k9mjqzt
2014-01-25 06:03:16 +00:00
Thibault Delavallée d474cacf74 [MERGE] Sync with website-al
bzr revid: tde@openerp.com-20140123162135-4zo139exy60lhl33
bzr revid: tde@openerp.com-20140124120918-f732qn72365uro08
bzr revid: tde@openerp.com-20140124144556-b5hjj7ffc3ts3x25
2014-01-24 15:45:56 +01:00
Gery Debongnie b2f27dabf0 [REF] implifies the read_group method by removing an useless dictionary (orm.py)
bzr revid: ged@openerp.com-20140124132834-evx3dikqc94m48ed
2014-01-24 14:28:34 +01:00
Fabien Meghazi 76144806af [IMP] If t-field can't get/use the resource, set it's content to None
bzr revid: fme@openerp.com-20140124132137-7m8840py82nlib40
2014-01-24 14:21:37 +01:00
Fabien Meghazi 2b6ac77f11 [IMP] move dispatch()'s post processing code into a method
bzr revid: fme@openerp.com-20140124103546-h8an7dehqdc412cn
2014-01-24 11:35:46 +01:00
Gery Debongnie 09706b5dff [IMP] adds 'W' in front of the week number when formatting date grouped by weeks (method read_group) (orm.py)
bzr revid: ged@openerp.com-20140124100921-w5gq1fwidm01xx5l
2014-01-24 11:09:21 +01:00
Gery Debongnie 02f7760063 [IMP] adds an 'interval' attribute to 'field' in the rng file (view.rng)
bzr revid: ged@openerp.com-20140124084319-g4al01wlwnxf8irh
2014-01-24 09:43:19 +01:00
Thibault Delavallée 3cad7c9812 [FIX] ir_qweb: fixed a forgotten av -> attribute_value
bzr revid: tde@openerp.com-20140123162552-akydzhiu0ckushy2
2014-01-23 17:25:52 +01:00
Stephane Wirtel 22d71d52e4 [MERGE] Remove the unreadable variables in the methods of ir.qweb
bzr revid: stw@openerp.com-20140123155444-kw6l4xidrhpo5gp8
2014-01-23 16:54:44 +01:00
Thibault Delavallée 2bcf4cca79 [FIX] tools: mail: support \[ and \] in tmeplates
bzr revid: tde@openerp.com-20140123152842-21b3gsey1mxt4v37
2014-01-23 16:28:42 +01:00
Fabien Meghazi 35050c4ba0 IMP] Launch a 404 when ModelConverter's browse records can't resolve _rec_name. Also serves as automatic preload
bzr revid: fme@openerp.com-20140123151207-3wp77801g44b2822
2014-01-23 16:12:07 +01:00
Raphael Collet ca0a49ccfd [FIX] res_config_settings: stupid bug, I was reassigning uid into a method!
bzr revid: rco@openerp.com-20140123145756-9ggykftlva4v1ar1
2014-01-23 15:57:56 +01:00
Raphael Collet cecd748369 [IMP] res_config_settings: in group fields, allow several groups as targets
bzr revid: rco@openerp.com-20140123144022-6gu8s5kn22bw70ng
2014-01-23 15:40:22 +01:00
Thibault Delavallée 69af79ff3d [FIX] tools: mail: fixed last commit, now simply using replace
bzr revid: tde@openerp.com-20140123141435-jstfcaemjplbn7b1
2014-01-23 15:14:35 +01:00
Gery Debongnie a42900b8ea [FIX] fixes the read_group by dates tests (makes them use the field:interval syntax instead of using the context (test_orm.py)
bzr revid: ged@openerp.com-20140123130603-5kdlb7as7fhmchd8
2014-01-23 14:06:03 +01:00
Thibault Delavallée 5f1ec49ecd [FIX] tools: mail: when cleaning, unescape mako specific symbols.
Indeed those are escaped when contained inside an href or mailto element
of a tag, leading to mako not rendering the element.

bzr revid: tde@openerp.com-20140123125137-4u4i88f1ajybg5f2
2014-01-23 13:51:37 +01:00
Stephane Wirtel f566d20c74 [REF] Replace g_att -> generated_att, t_att template_att, an -> att_name, av -> att_value, v = qcontext
bzr revid: stw@openerp.com-20140123124651-wi4l32q0x4cy5o6s
2014-01-23 13:46:51 +01:00
Xavier Morel 5528b9b2d8 [FIX] sprurious error in log during javascript unit tests
During some tests, the runner performs sequences of DUPLICATE and DROP
on databases. Each DUPLICATE is followed by some operations then a
DROP.

Problem is, after a DROP the next DUPLICATE RPC query will attempt a
connection to the just-dropped database, openerp.sql_db will log an
OperationalError ("Connection to the database failed" since the db it
tries to connect to was removed) then the HTTP dispatcher will just
switch to "nodb" and continue on its merry way.

Mute the sql_db logger while attempting to fetch the ir.http object.

Also assert that the logger name is a string in mute_logger, as
`mute_logger(openerp.sql_db)` is syntactically valid, but will not do
anything.

bzr revid: xmo@openerp.com-20140123115413-ax5patcomdfp3ue3
2014-01-23 12:54:13 +01:00
Gery Debongnie 99230cd3d1 [FIX] prints some value so i can understand how to debug the failing test in test_orm.py
bzr revid: ged@openerp.com-20140123112347-0swvj6xrhp5r5mpq
2014-01-23 12:23:47 +01:00
Gery Debongnie 74fd48e608 [FIX] fixes the read_group by dates tests (makes them use the field:interval syntax instead of using the context (test_orm.py)
bzr revid: ged@openerp.com-20140123105638-l4ej76ynf4avcjma
2014-01-23 11:56:38 +01:00
Raphael Collet d68bb48e44 [IMP] ir.model.data: get_object() never raises an exception when check=False
bzr revid: rco@openerp.com-20140123103306-tilma2dahgfsm70t
2014-01-23 11:33:06 +01:00