Raphael Collet
6bc60505f4
[IMP] registry: add method get_cursor() to simply retrieve a new cursor, and refactor code to use it
...
bzr revid: rco@openerp.com-20140408125122-ki0zmin3m21k2itd
2014-04-08 14:51:22 +02:00
Raphael Collet
b49f536baf
[IMP] tests.common: turn class methods into instance methods (this will ease some future refactoring)
...
bzr revid: rco@openerp.com-20140408114936-jfagg4qvft8bk3ms
2014-04-08 13:49:36 +02:00
Christophe Simonis
8f8ca3bd84
[MERGE] forward port of branch saas-3 up to revid 5093 chs@openerp.com-20140318114540-l50kmo4azb57g31x
...
bzr revid: chs@openerp.com-20140318124112-cj65l3wysk2rhwlw
2014-03-18 13:41:12 +01:00
Xavier Morel
4988b40ef5
[FIX] qweb tests re. inherit_branding enabling/disabling injection of data attributes
...
bzr revid: xmo@openerp.com-20140317152424-bchnq81cn2e7fhjb
2014-03-17 16:24:24 +01:00
Christophe Simonis
c7d114d9a9
[MERGE] forward port of branch saas-2 up to revid 5020 chs@openerp.com-20140312174526-a5rhh83g0fw8djuc
...
bzr revid: chs@openerp.com-20140312180614-8yb454s3mkjwnk2q
2014-03-12 19:06:14 +01:00
Christophe Simonis
1c3ee251f0
[MERGE] forward port of branch 7.0 up to revid 5270 chs@openerp.com-20140403084524-9rb174osjrbmhgwc
...
bzr revid: chs@openerp.com-20140402083506-w4cywcf0kxxx9xmk
bzr revid: chs@openerp.com-20140312174526-a5rhh83g0fw8djuc
bzr revid: chs@openerp.com-20140318105837-53vsx5g7fm517cuc
bzr revid: dle@openerp.com-20140326092548-bu4bqinhvco8j5wj
bzr revid: chs@openerp.com-20140402092735-3a23yjl169vvt0iv
bzr revid: chs@openerp.com-20140402112825-ky8rcb3p467ikitc
bzr revid: chs@openerp.com-20140403084808-slnj7uis17kwi9js
2014-04-03 10:48:08 +02:00
Christophe Simonis
19993ab1d5
[FIX] expression: translated search as params are flatten, we need to expand "%s" placeholders when using the `in` operator
...
bzr revid: chs@openerp.com-20140402112730-eoqxt0pu7lvcq5yg
2014-04-02 13:27:30 +02:00
Christophe Simonis
96f744b271
[MERGE] forward port of branch saas-3 up to revid 5088 chs@openerp.com-20140311095550-lg3nvvjyojvgp2po
...
bzr revid: chs@openerp.com-20140311133850-11bw9vv90e40clw1
2014-03-11 14:38:50 +01:00
Olivier Dony
07fbbe288c
[MERGE] Forward-port of 7.0 bugfixes, up to rev. 5251 revision-id: odo@openerp.com-20140304152927-havybom9x1jgdzae
...
bzr revid: odo@openerp.com-20140305213115-w55dqs3xra6ejmni
2014-03-05 22:31:15 +01:00
Olivier Dony
b79a33aefc
[FIX] orm.read_group: improve test coverage and corner case handling:
...
- allow leading spaces in orderby spec for m2o columns
- extra test for read_group on multiple columns
- proper handling of groupby on numeric column with default order
bzr revid: odo@openerp.com-20140304152927-havybom9x1jgdzae
2014-03-04 16:29:27 +01:00
Olivier Dony
27a1770e20
[FIX] orm.read_group: fix various issues introduced in recent commit, cleanup
...
Fixed the implementation of the sorting for inherited
columns, many2one columns, and aggregated columns.
Added corresponding tests with increased coverage of
the read_group() method.
bzr revid: odo@openerp.com-20140228173320-p8l0jc8op7xsgn1x
2014-02-28 18:33:20 +01:00
Antony Lesuisse
38d1ca1ff2
[MERGE] trunk
...
bzr revid: al@openerp.com-20140227161819-p9chmskfifo0rygs
2014-02-27 17:18:19 +01:00
Richard Mathot (OpenERP)
13194a10f7
[ADD] Test that the variable 'workflow' is correctly assigned in Python server actions (if not, the code will crash)
...
bzr revid: rim@openerp.com-20140221125708-6vt2ucp5sjtvl02q
2014-02-21 13:57:08 +01:00
Christophe Simonis
65db3c635e
[MERGE] forward port of branch saas-2 up to revid 5014 mat@openerp.com-20140220145701-6y7s1roj88q7ys13
...
bzr revid: chs@openerp.com-20140220160548-0rhulha4cml6t08v
2014-02-20 17:05:48 +01:00
Xavier Morel
a67cd4c049
[FIX] t-ignore should remove injected sub-view branding below the ignore flag
...
bzr revid: xmo@openerp.com-20140225114706-j8q44cubs59tuwby
2014-02-25 12:47:06 +01:00
Xavier Morel
1b2be9be76
[IMP] unbrand t-raw and t-esc as keeping them branded makes very little sense
...
they can't be edited in any situation
bzr revid: xmo@openerp.com-20140225110046-90rdevm13pp4m51s
2014-02-25 12:00:46 +01:00
Xavier Morel
cf702eb1c6
[IMP] in view tests, replace tostring() and string comparisons by custom lxml.etree comparator
...
bzr revid: xmo@openerp.com-20140225092842-sc6whhm173azurtt
2014-02-25 10:28:42 +01:00
Xavier Morel
198640434f
[FIX] injected views need branding distribution too
...
forgot to set it up after installed injected view skipping during distribution of injectee
bzr revid: xmo@openerp.com-20140224170301-b4ta04zqsd5d2956
2014-02-24 18:03:01 +01:00
Martin Trigaux
c83247c38b
[MERGE] Forward-port of latest saas-2 bugfixes, up to rev.5012 revid:mat@openerp.com-20140219134943-60ssztc01cxdtk09
...
bzr revid: mat@openerp.com-20140219140617-na0q47yaloblb67i
2014-02-19 15:06:17 +01:00
Martin Trigaux
e635ebe6c1
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5238 revid:launchpad_translations_on_behalf_of_openerp-20140219053940-dvi4g7ajttoj6h9k
...
bzr revid: mat@openerp.com-20140219134943-60ssztc01cxdtk09
2014-02-19 14:49:43 +01:00
Martin Trigaux
e1dff48492
[MERGE] [FIX] orm: read_group doesn't take referenced fields or aggregated fields in account when sorting (opw 598942)
...
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).
bzr revid: mat@openerp.com-20140218100929-qeg0rz1fmta2ni9y
2014-02-18 11:09:29 +01:00
Xavier Morel
71259f09f4
[ADD] hooks to enable/disable tests running during install
...
also add flag for post_install run, but not used yet
bzr revid: xmo@openerp.com-20140218095452-pptez5rlpdez1ttl
2014-02-18 10:54:52 +01:00
Anael Closson
775ae7d728
[REF] removing useless comment
...
bzr revid: acl@openerp.com-20140218083045-aimu376msu052k5d
2014-02-18 09:30:45 +01:00
Anael Closson
90dcc00443
[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/1060086 fixed
bzr revid: acl@openerp.com-20140217172926-ka2fw8t2l3cqi7h3
2014-02-17 18:29:26 +01:00
Antony Lesuisse
62f20f3302
[FIX] tests move test_ui to web as it requires web.login template
...
bzr revid: al@openerp.com-20140216214456-gplefhb821s61677
2014-02-16 22:44:56 +01:00
Antony Lesuisse
c8324bafcc
[IMP] phantomjs testing
...
- avoid dbmanager by presetting db in the test session
- correctly handle login option
- serialize test cursor access
bzr revid: al@openerp.com-20140216212222-4o6x9uljyua3g1og
2014-02-16 22:22:22 +01:00
Xavier Morel
325ad57a00
[FIX] branding distribution to generate correct xpath even after injection of inherited view contents
...
bzr revid: xmo@openerp.com-20140213164546-xor2k3tat8d216wq
2014-02-13 17:45:46 +01: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
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
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
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
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
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
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
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
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
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
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
Christophe Simonis
143f520395
[FIX] test ir_attachment: files are not directories
...
bzr revid: chs@openerp.com-20140116224207-m2s5ljkb1t7q54tk
2014-01-16 23:42:07 +01:00
Christophe Simonis
c55079f112
[IMP] ir.attachment: active db storage by setting setting to "db"
...
bzr revid: chs@openerp.com-20140116224058-v53fozipvi0obmq1
2014-01-16 23:40:58 +01:00
Christophe Simonis
895b3c96f6
[FIX] test ir_attachment: call super()
...
bzr revid: chs@openerp.com-20140116221403-h6h9cvt9rn8y2yj1
2014-01-16 23:14:03 +01:00
Christophe Simonis
3275de5981
[IMP] ir.attachment: filestore is now in data-dir and by default
...
bzr revid: chs@openerp.com-20140116185415-ajia02bsty9joox7
2014-01-16 19:54:15 +01:00
Thibault Delavallée
7a72d858cb
[MERGE] Sync with trunk
...
bzr revid: tde@openerp.com-20140103151324-jk0u8vmrxxomy5vx
2014-01-03 16:13:24 +01:00
Martin Trigaux
0bd968a801
[MERGE] [FIX] ir_translation: backport of rev 5018 from trunk
...
rename method load to load_module_terms to avoid name clash with load call from base_import (opw 602531)
bzr revid: mat@openerp.com-20131231140358-ldh0snu9zmcs3tpw
2013-12-31 15:03:58 +01:00
Martin Trigaux
216303c2fa
[FIX] ir_translation: rename method load to load_module_terms to avoid name clash with load call from base_import
...
bzr revid: mat@openerp.com-20131230125307-kald7ir36bvq3o7c
2013-12-30 13:53:07 +01:00