Commit Graph

6611 Commits

Author SHA1 Message Date
Gery Debongnie 75b66ed77c [FIX] work around a read bug: false data are fetched when the same field is present multiple times as a field parameter. The solution is to make sure the list many2onefields does not contain duplicate fields (orm.py)
bzr revid: ged@openerp.com-20140403094316-kmlliqbwd14ey68p
2014-04-03 11:43:16 +02:00
Jitendra Prajapati (OpenERP) 0809e29d68 [MERGE]with main branch
bzr revid: jpr@tinyerp.com-20140403093140-em398ce2axns6a81
2014-04-03 15:01:40 +05:30
Christophe Simonis 6fca27626a [FIX] expression: do not double quote column names
bzr revid: chs@openerp.com-20140403084524-9rb174osjrbmhgwc
2014-04-03 10:45:24 +02:00
Gery Debongnie 9d8fa4d720 [FIX] only fills groups with empty groups in read_group when in lazy mode to prevent weird stuff happening with the read_group_fill_result algorithm.
bzr revid: ged@openerp.com-20140402135704-3d71gczgg362cezl
2014-04-02 15:57:04 +02:00
Simon Lejeune 590fe996ad [FIX] as render_report is adapted to qweb, no need to filter in _exec_action
bzr revid: sle@openerp.com-20140402121237-t9tsnm9birhekj0b
2014-04-02 14:12:37 +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
Gery Debongnie d38ce26d9d [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140402081302-x1fohx2d8i2iiluw
2014-04-02 10:13:02 +02:00
Gery Debongnie 8c93dcbf62 [IMP] refactoring of readgroup method. The work is pretty much complete with this commit. Now, it correctly fills in empty group using _read_group_fill_results (orm.py)
bzr revid: ged@openerp.com-20140402073800-0ggxqfpyo2in8ozt
2014-04-02 09:38:00 +02:00
Christophe Simonis 4978cf4293 [MERGE] forward port of branch saas-2 up to revid 5025 chs@openerp.com-20140403084808-slnj7uis17kwi9js
bzr revid: chs@openerp.com-20140403085050-0blat5jm87j9gkbb
2014-04-03 10:50:50 +02: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
Martin Trigaux 9b19c1a337 [FIX] orm: add missing pooler in call
bzr revid: mat@openerp.com-20140403074134-fav63w1k6hm1b8ar
2014-04-03 09:41:34 +02:00
Christophe Simonis 7c9db05d1e [MERGE] forward port of branch saas-2 up to revid 5024 chs@openerp.com-20140402112825-ky8rcb3p467ikitc
bzr revid: chs@openerp.com-20140402093016-rcl15e5vpdj7ishv
bzr revid: chs@openerp.com-20140402114823-4mncr059d9ms8v3t
2014-04-02 13:48:23 +02:00
Olivier Dony a6ed98c4c4 [FIX] res_partner: missing index on `display_name`
bzr revid: odo@openerp.com-20140402091804-v5g7g8ys4zv562uk
2014-04-02 11:18:04 +02:00
Christophe Simonis 11af46b2b1 [FIX] resize_image: auto convert BMP images to PNG
bzr revid: chs@openerp.com-20140401154417-c8buuqybdsihn3om
2014-04-01 17:44:17 +02:00
Simon Lejeune c8aa0cc7f1 [FIX] Adapted the render_report and try_report_action methods used in yml test to work with qweb reports
bzr revid: sle@openerp.com-20140401153339-3n0xw5whx82uu0pu
2014-04-01 17:33:39 +02:00
Simon Lejeune 43beb0e752 [FIX] ir_qweb groups: in order to compute the groups of a user, we are using cr and uid from request. In case we are rendering the template in a non-request context (for instance, automated tests), we have no cr and uid ; do not compute the user groups in this case.
bzr revid: sle@openerp.com-20140401153114-blxgbyp8zgx120r3
2014-04-01 17:31:14 +02:00
Martin Trigaux 7d585c5dad [FIX] convert datetime to date in case of date field
bzr revid: mat@openerp.com-20140401100819-k092i48lefozmdxb
2014-04-01 12:08:19 +02:00
Kersten Jeremy c65ae9f055 [FIX] rml2pdf : fix loading of font where mode are not strict. Now we compare always a lower and with serveral mode similar. That fix the usage of some font in report where accent and bold was ignored
bzr revid: jke@openerp.com-20140401094556-h1ybpqf989qt5h60
2014-04-01 11:45:56 +02:00
Denis Ledoux 328ea17625 [REVERT] rev. 5097 jke@openerp.com-20140328154704-88nph9tlkd48kd1y: This field has been removed from the view because was suspected to be twice included in the view, while it isnt, this is a form view inside an other formview
bzr revid: dle@openerp.com-20140401092254-tyu2040tf90ijc49
2014-04-01 11:22:54 +02:00
Martin Trigaux cf1f20e5d5 [FIX] export: negation issue
bzr revid: mat@openerp.com-20140401090316-qog5uv6txyx46awi
2014-04-01 11:03:16 +02:00
Martin Trigaux 4074a01041 [ADD] orm: add the possibility to export in raw format instead of all string
lp bug: https://launchpad.net/bugs/844569 fixed

bzr revid: mat@openerp.com-20140331151743-94sk4xd7cr3dzn8m
2014-03-31 17:17:43 +02:00
Christophe Simonis dfe28ec31f [FIX] expression: use unaccent() for translated search
lp bug: https://launchpad.net/bugs/1049653 fixed

bzr revid: chs@openerp.com-20140331123012-dq3hsw2bc368zvgq
2014-03-31 14:30:12 +02:00
Yogesh Parekh (OpenERP) bfaa95a9e0 [Merge]: Merge with Parent branch
bzr revid: ypa@tinyerp.com-20140331094847-6pytp2gl19vhk5c8
2014-03-31 15:18:47 +05:30
Darshan Kalola (OpenERP) f1eb31b758 [MERGE]sync with trunk.
bzr revid: dka@tinyerp.com-20140331092919-1o6xipu5ld4g5n2k
2014-03-31 14:59:19 +05:30
Kersten Jeremy 2d0d198498 [TYPO] Remove duplicated field "supplier" from view view_partner_form
bzr revid: jke@openerp.com-20140328154704-88nph9tlkd48kd1y
2014-03-28 16:47:04 +01:00
Olivier Dony 8809c77f60 [FIX] http,ir.http: refactor exception handling to allow request-specific handling
Typically an exception during a JSON-RPC request must be
handled specifically and return a JSON-RPC error in all
cases. Previously the _authenticate() step could fail
during ir_http.dispatch() and bubble up to werkzeug,
yielding a dumb "Internal Server Error 500" even for
a JSON-RPC request.

bzr revid: odo@openerp.com-20140328142748-00haplmkc3fv6f9y
2014-03-28 15:27:48 +01:00
Launchpad Translations on behalf of openerp 035b1e8f8e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140328054140-ah12f1yhv5rf4v5c
2014-03-28 05:41:40 +00:00
Fabien Pinckaers e07a30b390 [IMP] reduced size flags
bzr revid: fp@tinyerp.com-20140327143121-urq4t2pka572t0uv
2014-03-27 15:31:21 +01:00
Fabien Pinckaers 3740999aa1 [IMP] reduced flag size
bzr revid: fp@tinyerp.com-20140327142933-5angwxh2ed13lobn
2014-03-27 15:29:33 +01:00
Fabien Pinckaers eca47b9d82 [IMP] reduced image size
bzr revid: fp@tinyerp.com-20140327142750-guuci39g1500yu01
2014-03-27 15:27:50 +01:00
Fabien Meghazi 8a4a10b2c0 [MERGE] remote module import
bzr revid: fme@openerp.com-20140327140516-t7yrma5z2ipm4gnd
2014-03-27 15:05:16 +01:00
Fabien Meghazi 9ab3ed7c27 [REM] not using the ir.module.module 'virtual' field after all
fp said the non existent module warning is not a problem

bzr revid: fme@openerp.com-20140327115759-a20gqydv2oro4rmr
2014-03-27 12:57:59 +01:00
Martin Trigaux 85805282b6 [FIX] fields: when executing (4, *) operations on o2m fields, check the existence based on the sql model of the table.
If the o2m field linked to the o2m is stored on a different table (eg: model with _inherit), previous request would crash as the field do not exists in the '_table' sql table

bzr revid: mat@openerp.com-20140327111241-klftr0s8v8i68nxp
2014-03-27 12:12:41 +01:00
Fabien Meghazi e6aadeb58c [FIX] Set correct record id for <template> tag converter
bzr revid: fme@openerp.com-20140327103844-irs3dga2xs969mdk
2014-03-27 11:38:44 +01:00
chm@openerp.com 533df32518 [IMP] res.country: add flag image field in res.country with flag data
bzr revid: chm@openerp.com-20140327090416-10bocijzm8gmgj0i
2014-03-27 10:04:16 +01:00
Launchpad Translations on behalf of openerp 391037db85 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140327081257-qru0hbrfsyepb2s2
bzr revid: launchpad_translations_on_behalf_of_openerp-20140327081313-vs355ra8b74c35d8
2014-03-27 08:13:13 +00:00
Richard Mathot (OpenERP) 9bc1ce0b1a [MERGE] Sync with trunk
bzr revid: rim@openerp.com-20140327073040-tvkd1jjtufreasxo
2014-03-27 08:30:40 +01:00
Jitendra Prajapati (OpenERP) 6e9c73de0d [MERGE]with main branch
bzr revid: jpr@tinyerp.com-20140327063821-n85232vzt06v8mo9
2014-03-27 12:08:21 +05:30
Fabien Meghazi 4d850cdbc9 [REV] revert refresh_routing_map
bzr revid: fme@openerp.com-20140326160150-daoc6fypcmckyynk
2014-03-26 17:01:50 +01:00
Fabien Meghazi 2eea637227 [MERGE] upstream
bzr revid: fme@openerp.com-20140326152307-d0rn3yuzel11457g
2014-03-26 16:23:07 +01:00
Kersten Jeremy c2e259d8a3 [FIX] Use all users (disabled also) in execute of res_config for implies group. Else, public user or old user don't get the right permission/group.
bzr revid: jke@openerp.com-20140326140509-7zspikcekfsyjb0p
2014-03-26 15:05:09 +01:00
Antony Lesuisse 483bc96682 [IMP] wsgi and http cleanups, static http is now handled in http.py
bzr revid: al@openerp.com-20140326132057-scuiqvqma9dhyorl
2014-03-26 14:20:57 +01:00
Denis Ledoux b9d9e781d5 [MERGE] Forward-port of latest saas-2 bugfixes, up to rev. 4955.1.67 revid:dle@openerp.com-20140326092548-bu4bqinhvco8j5wj
bzr revid: dle@openerp.com-20140326093011-pwhsfeippg4cgodj
2014-03-26 10:30:11 +01:00
Denis Ledoux c0103c387d [MERGE][FIX] OPW 591344 : internal reports don't show images
Cleaner method, and shows images.

bzr revid: dle@openerp.com-20140326091529-g7rlqc8tfxlk5u3b
2014-03-26 10:15:29 +01:00
Richard Mathot (OpenERP) 6c0a7f1251 [MERGE] Sync with trunk
bzr revid: rim@openerp.com-20140225092358-6i68zl4so7tn1for
bzr revid: rim@openerp.com-20140227093016-i87i2kh126280ab3
bzr revid: rim@openerp.com-20140303131411-5i0e5lk3h3mc8q2d
bzr revid: rim@openerp.com-20140304090203-rkdi7fh74woz8db4
bzr revid: rim@openerp.com-20140304155505-k2oiof5fvao1d19d
bzr revid: rim@openerp.com-20140315102635-526g0z3bq8zrn26b
bzr revid: rim@openerp.com-20140317075842-qojs31h28edyi778
bzr revid: rim@openerp.com-20140318075345-p6mbeo99a1eq4ixu
bzr revid: rim@openerp.com-20140319072134-dgr0psp0psu3rbhw
bzr revid: rim@openerp.com-20140321075445-qade01myf2189rwn
bzr revid: rim@openerp.com-20140325085102-p3tqknwr4usns3h1
bzr revid: rim@openerp.com-20140325152904-qiotk0fhecdxcald
bzr revid: rim@openerp.com-20140326073850-3q71kysucv15bkao
2014-03-26 08:38:50 +01:00
Gery Debongnie 30e787511f [IMP] refactoring of readgroup method, to make it eager. Still incomplete, but it is mostly working (orm.py)
bzr revid: ged@openerp.com-20140325161104-d0xgof4bcskh4ie6
2014-03-25 17:11:04 +01:00
Christophe Simonis 5b2634bd6e [FIX] init logger earlier, right after config loading
bzr revid: chs@openerp.com-20140325154627-cmodvx26jayj3k4a
2014-03-25 16:46:27 +01:00
Fabien Meghazi f86967960d [MERGE] upstream
bzr revid: fme@openerp.com-20140325153725-67hb463km4yvsnoe
2014-03-25 16:37:25 +01:00
chm@openerp.com 82989d95f7 [FIX] phantomjs: hide error if document.body does not exists
bzr revid: chm@openerp.com-20140325092547-ilnbqdj4rhdo0q3r
2014-03-25 10:25:47 +01:00
chm@openerp.com 105c26e623 [MERGE] from trunk
bzr revid: chm@openerp.com-20140324082422-38x5kcnh830200wl
bzr revid: chm@openerp.com-20140325084953-s3sl2f1un7z08wxy
2014-03-25 09:49:53 +01:00
Simon Lejeune fba94c1827 [MERGE] trunk
bzr revid: sle@openerp.com-20140324164442-bdxf7faei0rmlemj
2014-03-24 17:44:42 +01:00
Martin Trigaux 33c6f108c0 [FIX] parent_model is null if local column
bzr revid: mat@openerp.com-20140324164334-pvzevi2bnmb642ak
2014-03-24 17:43:34 +01:00
Simon Lejeune d51f4f80ab [IMP] ir.actions.report.xml form view: hide the attachmend fields when report_type controller is selected
bzr revid: sle@openerp.com-20140324162616-93qkrv5xb4yrt3oj
2014-03-24 17:26:16 +01:00
Martin Trigaux 66d6fb065f [FIX] fields: when executing (4, *) operations on o2m fields, check the existence based on the sql model of the table.
If the o2m field linked to the o2m is stored on a different table (eg: inherit), previous request would crash as the field do not exists in the '_table' sql table

bzr revid: mat@openerp.com-20140324162130-fyotk8vqmkha43eb
2014-03-24 17:21:30 +01:00
Christophe Simonis a8e1aba23b [FIX] http: when generating static routes, only wrap dispatcher only if there is any new static directory found
bzr revid: chs@openerp.com-20140324161257-fi1cpgyd97825b14
2014-03-24 17:12:57 +01:00
Simon Lejeune ab003bfea6 [IMP] ir_actions wording
bzr revid: sle@openerp.com-20140324150533-bs1lwvhd2z2jow8m
2014-03-24 16:05:33 +01:00
Simon Lejeune a7e061079d [MERGE] trunk
bzr revid: sle@openerp.com-20140324144056-2waohi777m0lzznm
2014-03-24 15:40:56 +01:00
Simon Lejeune 48f785d786 [REF] Moved qweb contact from website to base and removed the from_html method (it never worked)
bzr revid: sle@openerp.com-20140324135723-2f8owtcotk3n9jt8
2014-03-24 14:57:23 +01:00
Christophe Simonis 7c4557add2 [FIX] http: nodb_routing_map become a lazy property. load_addons() is also lazy called
bzr revid: chs@openerp.com-20140324122610-dodj6tme5xpbkc3i
2014-03-24 13:26:10 +01:00
Christophe Simonis c8eddb7d22 [ADD] openerp.tools.func.lazy_property():
Decorator for a lazy property of an object, i.e., an object attribute
 that is determined by the result of a method call evaluated once. To
 reevaluate the property, simply delete the attribute on the object, and
 get it again.

bzr revid: chs@openerp.com-20140324120001-935d90ye7tb8a5q4
2014-03-24 13:00:01 +01:00
Christophe Simonis 58bd4d4950 [FIX] http: register the wsgi handler directly
bzr revid: chs@openerp.com-20140324093116-fuunq90t9qb5p8w5
2014-03-24 10:31:16 +01:00
Gery Debongnie cd982d01fc [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140324085252-uiqzo1ji01374ywv
2014-03-24 09:52:52 +01:00
Gery Debongnie 0eb9944222 [IMP] refactoring of readgroup method. It should have the same functionality, but is much simpler. This is necessary to implement eager groupby (orm.py)
bzr revid: ged@openerp.com-20140324085046-zpfpcostivf8454q
2014-03-24 09:50:46 +01:00
Maxime Chambreuil 046f19fa9b [IMP] Add fr_CA translation
bzr revid: maxime.chambreuil@savoirfairelinux.com-20140323000805-vead0t0gcgkqzthh
2014-03-22 20:08:05 -04:00
Simon Lejeune a3be66bb49 [IMP] ir.actions.report.xml views/models adapted for report_type controller
bzr revid: sle@openerp.com-20140321184739-0dmft3odaws85m7e
2014-03-21 19:47:39 +01:00
Christophe Simonis fdd1f69294 [FIX] duplicate/rename/drop database: handle filestore
bzr revid: chs@openerp.com-20140321155659-gvg4br76214lur4l
2014-03-21 16:56:59 +01:00
Christophe Simonis 806648d611 [IMP] tools.exec_pg_command: hide command output
bzr revid: chs@openerp.com-20140321155605-u96hd1da3rrrmcgg
2014-03-21 16:56:05 +01:00
Dharmraj Jhala (OpenERP) f7621ff8be [MERGE] with latest trunk server
bzr revid: pga@tinyerp.com-20140228054414-z2x4vufay1gbbpao
bzr revid: dizzy.zala@gmail.com-20140318065312-uq43i2aiha1kn3d0
bzr revid: dizzy.zala@gmail.com-20140319090323-0srxjge14cw8y4wv
bzr revid: dizzy.zala@gmail.com-20140320064008-fj9merih0wtz6tz6
bzr revid: dizzy.zala@gmail.com-20140321073141-f54b3lqel1l9lgq2
2014-03-21 13:01:41 +05:30
Launchpad Translations on behalf of openerp 7b0b8a0790 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140320061913-o2fp3m104dzeb2ky
bzr revid: launchpad_translations_on_behalf_of_openerp-20140321065115-srp2g1l3twjabmcq
2014-03-21 06:51:15 +00:00
Fabien Meghazi 0f9905b9f1 [IMP] better syntax for routing_map cache invalidation
bzr revid: fme@openerp.com-20140320153651-4lkoekzhawny0p85
2014-03-20 16:36:51 +01:00
Fabien Meghazi b8368d8182 [WIP] added virtual field. will probably change the name of this field
bzr revid: fme@openerp.com-20140320150348-5tv7j2he26mhqpco
2014-03-20 16:03:48 +01:00
Chirag Dodiya (OpenERP) 37bbcd223e [MRG]Merge with lp:openobject-server
bzr revid: cod@tinyerp.com-20140320120821-c83j207nyq2h23c0
2014-03-20 17:38:21 +05:30
Kersten Jeremy 720339ed1d [MERGE] Merge branch lp:~numerigraphe/openobject-server/7.0-translation-order-933496-numerigraphe
bzr revid: jke@openerp.com-20140320090105-fl2jt7hhplwu6dgr
2014-03-20 10:01:05 +01:00
Launchpad Translations on behalf of openerp 800ab84e3b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140320054727-1wcctx54alajpzne
2014-03-20 05:47:27 +00:00
Antony Lesuisse e73230d0fc ir_logging fix logger names
bzr revid: al@openerp.com-20140320000912-1a5hngnw8ilq22k8
2014-03-20 01:09:12 +01:00
Antony Lesuisse 6e4db0a0a6 ir_logging fix config option
bzr revid: al@openerp.com-20140320000524-gs98xy6iqh2ceev6
2014-03-20 01:05:24 +01:00
Antony Lesuisse 666f4d0801 [MERGE] trunk
bzr revid: al@openerp.com-20140319235117-7trt1y3927mml13u
2014-03-20 00:51:17 +01:00
Antony Lesuisse 48d3befa07 ir_logging disabled by default
bzr revid: al@openerp.com-20140319234542-jsmxchx7tuv13e13
2014-03-20 00:45:42 +01:00
Christophe Simonis 30490699bd [FIX] ir.ui.view: correct `model_data_id` function field to return a value for every id passed as argument. Also correct recomputation triggers
bzr revid: chs@openerp.com-20140319144138-vmihcs029g21nf7t
2014-03-19 15:41:38 +01:00
chm@openerp.com ea901ebb1d [FIX] phantomjs: don't use error method because it's undefined in phantomjs evaluating environment
bzr revid: chm@openerp.com-20140319112027-buua40iyi7hgnlly
2014-03-19 12:20:27 +01:00
Kersten Jeremy 903270996f [FIX] Fix the yml test with option --test-file.
1 -
There was a confusing between kind and mode.
Due to the mode 'test', there are many part of code who was not executed.
The right value is kind='test', and arbitrary mode='init' (or 'update')

2 -
The yml test was always roolbacked, without check that command line had '--test-commit'.
It's has been fixed, now we check if param --test-commit is existing, else we roolback the transaction.

Rem for forward: function in trunk=saas-4 has been moved in : openerp/service/server.py - def load_test_file_yml

bzr revid: jke@openerp.com-20140319104847-6r2c70gapocn2wxq
2014-03-19 11:48:47 +01:00
Fabien Meghazi 14c3ffcb39 [IMP] Allow openerp.modules.load_information_from_description_file() to take an optional mod_path argument
bzr revid: fme@openerp.com-20140319085708-prrs0m4gjvuu4o86
2014-03-19 09:57:08 +01:00
Fabien Meghazi 46cfd8940f [FIX] doc typo
bzr revid: fme@openerp.com-20140319085454-1pnjm55b4vxfm1wc
2014-03-19 09:54:54 +01:00
Fabien Meghazi 43419ed6e9 [IMP] Allow openerp.tools.convert_file() to optionally take the full path name
bzr revid: fme@openerp.com-20140319084931-1ipjqi2dd3ug7i2t
2014-03-19 09:49:31 +01:00
Jitendra Prajapati (OpenERP) bf605938b2 [MERGE]with main branch
bzr revid: jpr@tinyerp.com-20140319051226-05pee6q8ih606s1i
2014-03-19 10:42:26 +05:30
chm@openerp.com 17956befd7 [FIX] do not rolback cursor in test mode
bzr revid: chm@openerp.com-20140318160941-w4c8r15sl0vag0sa
2014-03-18 17:09:41 +01:00
chm@openerp.com cb6af2b2f0 merge upstream
bzr revid: chm@openerp.com-20140318160653-2l1t1ntzr1lpuwo9
2014-03-18 17:06:53 +01:00
chm@openerp.com c0a97887b4 [WIP] rev me
bzr revid: chm@openerp.com-20140318153525-uhimflitcgk16rlk
2014-03-18 16:35:25 +01: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
chm@openerp.com bbca8bd17e [PATCH] sle
bzr revid: chm@openerp.com-20140318122250-22bt2bcfzvxowkvf
2014-03-18 13:22:50 +01:00
Christophe Simonis a7cdda3ba6 [MERGE] forward port of branch saas-2 up to revid 5021 chs@openerp.com-20140318105837-53vsx5g7fm517cuc
bzr revid: chs@openerp.com-20140318114540-l50kmo4azb57g31x
2014-03-18 12:45:40 +01:00
Paramjit Singh Sahota 5de677208c [FIX] [saas-3/trunk] IE9: Bad display of the address on a contact attached to a company
lp bug: https://launchpad.net/bugs/1293523 fixed

bzr revid: psa@tinyerp.com-20140318093611-iis8wfuzgqclngnm
2014-03-18 15:06:11 +05:30
Antony Lesuisse ce1b0ad243 [FIX] ir_logging acl
bzr revid: al@openerp.com-20140318002954-3vc2wj6llc2017bu
2014-03-18 01:29:54 +01:00
Antony Lesuisse 0b7a673821 [MERGE] trunk
bzr revid: al@openerp.com-20140317223549-gyhpe8dkzaw0qe7z
2014-03-17 23:35:49 +01:00
Christophe Simonis 7887085631 [FIX] test_converter: force inherit_branding by passing the right context
bzr revid: chs@openerp.com-20140317170706-dkig0e31xtnrsskj
2014-03-17 18:07:06 +01:00
Olivier Dony f0d4240082 [FIX] http dispatch: make sure transaction rollback happens in all cases when request handling raised (to be refactored)
Not doing so leads to cases where a transaction is committed
even after failing to validate a Python constraint.
This patch attempts to keep the rollback() logic next to the
corresponding commit(), and makes the rollback() more
explicit even if close() without commit() would also rollback
implicitly.

bzr revid: odo@openerp.com-20140317163228-zqbce8f0rgcg0pt4
2014-03-17 17:32:28 +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
Fabien Meghazi 3d2452e8d4 [FIX] Force routing map to be rebuilt between each module test suite
bzr revid: fme@openerp.com-20140317151810-tgsvv0ip4you1qko
2014-03-17 16:18:10 +01:00
Antony Lesuisse 627b5b671e [FIX] tests dont log traceback on aborted request while testing
bzr revid: al@openerp.com-20140317135239-08aefkdxiil7bpcs
2014-03-17 14:52:39 +01:00
Antony Lesuisse 09deba4826 [FIX] tests dont generate traceback on aborted test requests
bzr revid: al@openerp.com-20140317124343-kgesa5c215z19vpn
2014-03-17 13:43:43 +01:00
Xavier Morel a2ef044c47 [IMP] skip injection of data-oe-* attributes outside of editable mode
bzr revid: xmo@openerp.com-20140317110904-k8bptgv7y2yhhh8s
2014-03-17 12:09:04 +01:00
Xavier Morel 6a8f39533a [REM] forced filetype on resize_image_*, fix incorrect size spec on big
bzr revid: xmo@openerp.com-20140317094625-00mjd8ymcxvvl9yg
2014-03-17 10:46:25 +01:00
Xavier Morel 2688ac29a0 [FIX] keep image type intact during resize
Unless specficially requested, the output image should have the same file type
as the input (JPEG -> JPEG, PNG -> PNG), everything should not be converted to
PNG by default.

bzr revid: xmo@openerp.com-20140317084123-wvn8r4ot79610k1r
2014-03-17 09:41:23 +01:00
Antony Lesuisse 338c0a3f5e [FIX] race condition for test cursors
If a test ends before handling all its http queries (serialised by a Rlock),
threads created for unfufilled queries may hang because the interrupted thread
might not have unlocked its cursor as it might have dissapeared from
HTTP_SESSION before request release_test_cursor. We now use the cursor itself
instead of HTTP_SESSION.

bzr revid: al@openerp.com-20140317031448-rffj7gixgk8jzeqp
2014-03-17 04:14:48 +01:00
Antony Lesuisse 706ef452cb [IMP] tests prepend modules names when logging
bzr revid: al@openerp.com-20140317021317-4o3l1uf2ts62w1di
2014-03-17 03:13:17 +01:00
Antony Lesuisse e6a5d82036 [FIX] ir_logging missing field
bzr revid: al@openerp.com-20140317000851-3vyo7m3kc9k8jki5
2014-03-17 01:08:51 +01:00
Antony Lesuisse cde6e0f6c6 [FIX] no comments
bzr revid: al@openerp.com-20140316212127-l1rxz5zh4o92tv90
2014-03-16 22:21:27 +01:00
Antony Lesuisse c3ef6eb892 [FIX] tests typo in js tests result parsing
bzr revid: al@openerp.com-20140316200135-dyyl6u5uas4js90g
2014-03-16 21:01:35 +01:00
Antony Lesuisse 97a097dbab [IMP] tests log phantom to info the default loglevel of runbot
bzr revid: al@openerp.com-20140316195252-i6wr3scp0zmx92zu
2014-03-16 20:52:52 +01:00
Antony Lesuisse aa7d42acfc ir_logging fix msg, add uid in form view
bzr revid: al@openerp.com-20140316194328-3tooio3km8ev26wj
2014-03-16 20:43:28 +01:00
Antony Lesuisse 99a89152b4 ir_logging, improve search view
bzr revid: al@openerp.com-20140316192937-q1rxct0hhlwpm2t0
2014-03-16 20:29:37 +01:00
Antony Lesuisse 58fb28746a ir_logging, cleanup and minimize merge diff
bzr revid: al@openerp.com-20140316192223-gfxzbo83j5hpm527
2014-03-16 20:22:23 +01:00
Antony Lesuisse eaacd8a4d8 ir_logging make it work, and make it usable
bzr revid: al@openerp.com-20140316191622-l59vkjeu2e8nbh75
2014-03-16 20:16:22 +01:00
Antony Lesuisse 3168c3c1ca [MERGE] trunk
bzr revid: al@openerp.com-20140316183515-fthpvudn1rbmru4q
2014-03-16 19:35:15 +01:00
Antony Lesuisse e9d047e611 sql loggin cleanups
- prepare for netsvc will be renamed to logging
- move back log from http.py has it's used by the cron
- move sql handler to netsvc, simplify to use sql_db
- remove unused handler
- close plaform specific #ifdef pandora's box

bzr revid: al@openerp.com-20140316182933-jkcji9yqfbsokcmg
2014-03-16 19:29:33 +01:00
Antony Lesuisse eac5185731 [IMP] phantom tests
- phantomjs more verbose
- revert to dumber console.log relay, dont try to be smart, just display it
- json is only optionally parsed for errors stack dumps

bzr revid: al@openerp.com-20140316160634-hh7br4mbg01xcrpk
2014-03-16 17:06:34 +01:00
Antony Lesuisse 5b21fc0225 [REM] http useless controller
bzr revid: al@openerp.com-20140316141311-m0xqh386ax952va1
2014-03-16 15:13:11 +01:00
Launchpad Translations on behalf of openerp aba3459889 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140314065823-xdw7aa9ye4j200pp
bzr revid: launchpad_translations_on_behalf_of_openerp-20140314065836-tn2fv9smot0omj8f
2014-03-14 06:58:36 +00:00
Kersten Jeremy 90af5e0d3a [FIX] Change password wizard: reload webclient after changing your own password. Because your session is dead after the changing !
bzr revid: jke@openerp.com-20140313181415-3rwlxhpevev3tlsq
2014-03-13 19:14:15 +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
Antony Lesuisse 96db6703dd [MERGE] db dump/restore zip-based format.
The new format uses plain text sql and includes the filestore.
The old pg_dump format is still supported for db restore.

bzr revid: al@openerp.com-20140312174233-0ulbcwn784ujuk6p
2014-03-12 18:42:33 +01:00
Christophe Simonis 5873f0abe6 [FIX] add the logging handler only to the root logger. let the loggers propagate to allow more than one handler
bzr revid: chs@openerp.com-20140312171819-bnj3md07w4le2m7m
2014-03-12 18:18:19 +01:00
Stephane Wirtel 4bbcfddc13 [MERGE] from trunk
bzr revid: stw@openerp.com-20140312102948-1n3b2d1vqedzojzb
2014-03-12 11:29:48 +01:00
Launchpad Translations on behalf of openerp a2e0cd3414 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140312045830-wc9c4o7r7l84luq8
2014-03-12 04:58:30 +00:00
Stephane Wirtel d9fcc16045 [FIX] ir.logging: Raise an internal exception in the case where there is no
defined database, but this exception is catched by the _internal_emit method and
just ignore it to avoid a crash. Better solution, try to log on the standard
handler.

bzr revid: stw@openerp.com-20140311171356-jghlh2w2pnxvtu2e
2014-03-11 18:13:56 +01: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
Martin Trigaux 8a3523cd97 [FIX] partner: backport of trunk revision 4882
When adding a new contact or a new company based from the partner form, use the customer value as default value (was doign it only for the supplier flag)

bzr revid: mat@openerp.com-20140311112341-9yoi1hf0ks98ju3r
2014-03-11 12:23:41 +01:00
Yogesh Parekh (OpenERP) 2d4bd20bb0 [IMP]: Improve reference terms for partner
bzr revid: ypa@tinyerp.com-20140311100400-yea73bg8z3ohmqhv
2014-03-11 15:34:00 +05:30
Christophe Simonis e634545617 [FIX] http: ensure to clean the request cursor before calling the route function.
The route function can be call more than once in case of database error,
breaking the request cursor. By rollbacking it, we force the creation of a new transaction.

bzr revid: chs@openerp.com-20140311095550-lg3nvvjyojvgp2po
2014-03-11 10:55:50 +01:00
Launchpad Translations on behalf of openerp a4c27d560d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140307072259-nwltzdp1dky79a3h
bzr revid: launchpad_translations_on_behalf_of_openerp-20140308065331-um114asu0v6l8y5e
bzr revid: launchpad_translations_on_behalf_of_openerp-20140311060830-c174n48jvgwwgvlo
bzr revid: launchpad_translations_on_behalf_of_openerp-20140311060854-j335qf61ll6hvrma
2014-03-11 06:08:54 +00:00
Antony Lesuisse 096432ff73 [REV] reverting xmo@openerp.com-20140310115334-vjh7gx5oizdm6s67
This api change breaks jsfile tests (example test_ui_load.js). The api is broken
but the proper fix would be to avoid accessing phantom.args from PhantomTest

bzr revid: al@openerp.com-20140310184636-8r9x81xi1zqhcsek
2014-03-10 19:46:36 +01:00
Fabien Meghazi 35d87dd19b [IMP] ir.http: provide current rule to argument postprocessing
bzr revid: fme@openerp.com-20140310130349-x4qxpcmyrcejywlz
2014-03-10 14:03:49 +01:00
Xavier Morel aaa80e9575 [IMP] phantomjs driver cleanups
bzr revid: xmo@openerp.com-20140310115334-vjh7gx5oizdm6s67
2014-03-10 12:53:34 +01:00
Xavier Morel bcbe89fbdc [IMP] phantomjs waitloop
* simplify waitFor itself
* log a "waiting for" message if the expression evaluates but is *false*

bzr revid: xmo@openerp.com-20140310112401-khvy0zcvwaaxa5om
2014-03-10 12:24:01 +01:00
Stephane Wirtel cff80a9a0c [IMP] Add views for the ir.logging object
bzr revid: stw@openerp.com-20140310111137-04axbgdajd9jloxg
2014-03-10 12:11:37 +01:00
Xavier Morel b3de4ca481 [IMP] readability of phantomjs timeouts
bzr revid: xmo@openerp.com-20140310101554-6imrb3hnd95q1wgu
2014-03-10 11:15:54 +01:00
Xavier Morel d16bcfb981 [FIX] nonsensical import?
bzr revid: xmo@openerp.com-20140310095918-khwzn6oqx77w0pyc
2014-03-10 10:59:18 +01:00
Antony Lesuisse 66988eefb5 [IMP] ir.actions.report.xml more view cleanup
bzr revid: al@openerp.com-20140307011305-sqfbr857ifczh6f1
2014-03-07 02:13:05 +01:00
Antony Lesuisse 44a0f566b0 [FIX] ir.actions.report.xml keep report_type pdf until full report conversion is completed
bzr revid: al@openerp.com-20140307003255-wjzfhlzl3dce6u7w
2014-03-07 01:32:55 +01:00
Antony Lesuisse cfb50cf7a9 [IMP] ir.actions.report.xml improve view, move rml specific fiels in a tab
bzr revid: al@openerp.com-20140306234657-kblucn86ph9gjfu6
2014-03-07 00:46:57 +01:00
Antony Lesuisse 3aa98edaaf [IMP] test add an url_open helper to http case
bzr revid: al@openerp.com-20140306234535-9zhumihumbzcddb2
2014-03-07 00:45:35 +01:00
Antony Lesuisse c878b34c3e [FIX] --test-file regression introduced by chs
bzr revid: al@openerp.com-20140306221947-ex5nk6mu2py0zinh
2014-03-06 23:19:47 +01:00
Olivier Dony 46e1470987 [IMP] safe_eval: allowed opcodes: break, continue, raise ; extra builtins: unicode,int,float,long,enumerate,sum,all,any,ord,chr,cmp,divmod,isinstance,[x]range,zip
bzr revid: odo@openerp.com-20140306165849-1sxr9iv5cr87k77n
2014-03-06 17:58:49 +01:00
Christophe Simonis ec36a494fe [FIX] do not expose posix only config options on windows
bzr revid: chs@openerp.com-20140306115214-8wrfivy4runpzoar
2014-03-06 12:52:14 +01:00
Richard Mathot (OpenERP) 6f99891b82 [REF] Use assertEqual method instead of assert instruction
bzr revid: rim@openerp.com-20140306112053-e0znv1g2378ghs46
2014-03-06 12:20:53 +01:00
Richard Mathot (OpenERP) 3c65ffc29f [FIX] Test for ir_sequence:
This test was depending on the error string returned by postgresql.
As these strings are localized, the test was failing on systems 
where posgresql locale was not set to 'en_US'.

In this new version, we now check the error code returned by postgresql 
(which is, obviously, platform independent)

bzr revid: rim@openerp.com-20140306110356-72mgz3korkq3rkde
2014-03-06 12:03:56 +01:00
Darshan Kalola (OpenERP) d93f32aa08 [MERGE]sync with trunk.
bzr revid: dka@tinyerp.com-20140306084224-t04yh1k0upd9uqh9
2014-03-06 14:12:24 +05:30
Launchpad Translations on behalf of openerp e231045095 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140306061409-nvr56r44q6smklxz
bzr revid: launchpad_translations_on_behalf_of_openerp-20140305055718-w3c9kzsncncpu12w
bzr revid: launchpad_translations_on_behalf_of_openerp-20140306061519-n2qbjt3fe7l104aw
2014-03-06 06:15:19 +00: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
Martin Trigaux 63763dcc55 [IMP] readability
bzr revid: mat@openerp.com-20140305143050-zddqtyh7qg6lcx3q
2014-03-05 15:30:50 +01:00
Martin Trigaux 016a1ed37b [FIX] orm: create a foreign key for the function fields of type many2one and store value
bzr revid: mat@openerp.com-20140305140514-2sksy3lwqm07wvjh
2014-03-05 15:05:14 +01:00
Denis Ledoux 80ba313bbe [FIX] base: qweb display correct traceback on exception
bzr revid: dle@openerp.com-20140305110435-ekhperp8jwusrzu0
2014-03-05 12:04:35 +01:00
Christophe Simonis 447d597815 [IMP] new backup format.
The new backup format is a zip containing the sql dump of the
database and the filestore of this database.

Old backups can still be restored

bzr revid: chs@openerp.com-20140304175656-iu3un6q43ttnhjfz
2014-03-04 18:56:56 +01:00
Denis Ledoux a76cedfee3 [FIX] base: widget selection changed its behavior in saas-3
_search overwritten in res_company to allow user to change of company among its allowed companies is not usefull anymore, name_search is now the method to overwrite.
moreover, widget selection replaced by options no_create in user preferenes view, to allow typing in the many2one(for searching purpose) without having the option to create a new company or edit.

bzr revid: dle@openerp.com-20140304175231-ojhzqecrdkjg2w52
2014-03-04 18:52:31 +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
Darshan Kalola (OpenERP) 16f358d9e2 [IMP]]hide the link add a new column,edit and delete in kanban if the user has not the right to do it.
bzr revid: dka@tinyerp.com-20140304122148-732fgfqmbpi8cpol
2014-03-04 17:51:48 +05:30
Thibault Delavallée db93656f10 [FIX] res_users: change password wizard: fixed crash when submitting the form.
Indeed unlinking wizard content before actually closing it seems to
cause a crash. Instead of unlinking lines with user - password data
we now write a void value on the new password. The stored content
does not contain valuable data after submitting the form.

bzr revid: tde@openerp.com-20140304115017-posdyri9y1cra4jo
2014-03-04 12:50:17 +01:00
Thibault Delavallée d6aeff2989 [FIX] res_users: fixed on_change_login that crashed
when changing the login by a void value.

bzr revid: tde@openerp.com-20140304111452-np9537a3ja7vf1zi
2014-03-04 12:14:52 +01:00
Olivier Dony 4641a23d14 [FIX] server.stop: avoid traceback during shutdown if HTTP service never started (e.g. because address was already in use)
bzr revid: odo@openerp.com-20140304093240-0yfoe3s0xz0u0xv9
2014-03-04 10:32:40 +01:00
Randhir Mayatra (OpenERP) c2a92a5be2 [IMP] remove menu_id from user model
bzr revid: rajmyt@gmail.com-20140304085447-zknvpkfe4i3d8uku
2014-03-04 14:24:47 +05:30
Launchpad Translations on behalf of openerp 0759553fe4 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140304061656-tmqvsiz854vbugx2
2014-03-04 06:16:56 +00:00
Christophe Simonis ab80456fe7 [IMP] openerp/service/db.py: lint file
bzr revid: chs@openerp.com-20140303160805-ywbtw04jd3022jcv
2014-03-03 17:08:05 +01:00
Kersten Jeremy 9d63ad7871 [FIX] Remove default tz from context, to allow website (Public user) to use correct timeZone. Now, module from website using date as event will be displayed with the TimeZone of "Public User" by default
bzr revid: jke@openerp.com-20140303103141-h76t3o075x2xgb25
2014-03-03 11:31:41 +01:00
Kersten Jeremy a94df36bdb [FIX] Remove default tz from context, to allow website (Public user) to usecorrect timeZone. Now event (eg) will be displayed with the TimeZone of "Public User" by default
bzr revid: jke@openerp.com-20140303094159-sh4ixlr6f7uojlft
2014-03-03 10:41:59 +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
Launchpad Translations on behalf of openerp 4a6ba6f107 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140222073700-ln192h40jpgmjkzn
bzr revid: launchpad_translations_on_behalf_of_openerp-20140225062424-uzng6wm762r9e5y1
bzr revid: launchpad_translations_on_behalf_of_openerp-20140227063007-7dey6pyrhev19em4
bzr revid: launchpad_translations_on_behalf_of_openerp-20140301055121-idw71yvmfonj1mmz
2014-03-01 05:51:21 +00:00
Olivier Dony 55270edc3c [FIX] ir.http.authenticate: avoid discarding sessions when authentication status is unknown
In some cases the authentication check can fail
for an unknown reason (e.g. connection pool is
temporarily full). This should not be treated
as an authentication failure, as the status is
really unknown. Let those exceptions bubble up
instead.

bzr revid: odo@openerp.com-20140228170712-l8smq6u3cmvjtd5e
2014-02-28 18:07:12 +01:00
Antony Lesuisse ed7ee4df52 [MERGE] cron race condition leading to unneeded executions, courtesy of acsone
When mulitple cron workers get their list of jobs to process at the same time,
some jobs might be executed multiple times. We fix this by keeping the listing
filter when taking the lock.

bzr revid: al@openerp.com-20140228161524-y8nyq5uw9yq9rcc3
2014-02-28 17:15:24 +01:00
Stephane Wirtel 5918ad323e [MERGE] from Trunk
bzr revid: stw@openerp.com-20140228161338-8yjlkwacuube7vir
2014-02-28 17:13:38 +01:00
Stephane Wirtel 047d071a48 [IMP] Add a new Logging Handler, where we will store in the database of OpenERP.
this database can be overrided via the --log-pgsql-database

bzr revid: stw@openerp.com-20140228161147-s9nnrfq2tc94vq5p
2014-02-28 17:11:47 +01:00
Stephane Wirtel 3f779a5cae [IMP] Add the ir_logging object where we will store the log messages (exception, error and warning)
bzr revid: stw@openerp.com-20140228161055-98897xl1r46mf9mr
2014-02-28 17:10:55 +01:00
Christophe Simonis 70f3ed09c5 merge upstream
bzr revid: chs@openerp.com-20140227165817-wdgdl4rbmtnnqudt
2014-02-27 17:58:17 +01:00
Kersten Jeremy 7917c495e9 [IMP] Add options hide_seconds in widget datetime. If this option is set with another value that False, seconds are removed from pattern to display only hours and minuts
bzr revid: jke@openerp.com-20140227164611-0tolnpzmaywhs15l
2014-02-27 17:46:11 +01:00
Antony Lesuisse 8fec899f9b [FIX] move appsdirs to tools
bzr revid: al@openerp.com-20140227163259-asal833qjv3gylit
2014-02-27 17:32:59 +01:00
Antony Lesuisse 38d1ca1ff2 [MERGE] trunk
bzr revid: al@openerp.com-20140227161819-p9chmskfifo0rygs
2014-02-27 17:18:19 +01:00
Stephane Wirtel 855836e96e [IMP] Move the netsvc.dispatch_rpc function from netsvc to openerp.http
bzr revid: stw@openerp.com-20140227125648-kunaefr22y28honx
2014-02-27 13:56:48 +01:00
Thibault Delavallée 42e2676f4b [IMP] fields: html: now supports a sanitize argument, telling
whether the content of the html field should be sanitized before storage. This parameter
is true by default.
Example of use: html of email template is considered as html content, but contains
mako strings that makes this content not valid html. Sanitizing the body content
can cause issues to the template; therefore storing it as html but not sanitized
allows to keep its content safe.

Added a test case to ensure this behavior.

bzr revid: tde@openerp.com-20140227120254-6m8gvkt4hf28nl0e
2014-02-27 13:02:54 +01:00
Fabien Meghazi e2f92040db [REM] removed Request's getattr proxying to httprequest
This might be a problem when merging the new api so we let it as is for the moment

bzr revid: fme@openerp.com-20140226161627-edgbe5f8mpzylq46
2014-02-26 17:16:27 +01:00
Martin Trigaux 43df0b4d23 [MERGE] [FIX] orm: when generating xml ids for export, use the model of the exported field instead of the current model. Courtesy of Stefan Rijnhart (Therp).
bzr revid: mat@openerp.com-20140226133716-vgdjjmqc2lou0n3u
2014-02-26 14:37:16 +01:00
Launchpad Translations on behalf of openerp bf51816215 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140225062406-g9e0edcgz29z4det
bzr revid: launchpad_translations_on_behalf_of_openerp-20140226073044-dmjdmn4cvpbgh806
2014-02-26 07:30:44 +00:00
Fabien Meghazi 5da9305bf5 [MERGE] upstream
bzr revid: fme@openerp.com-20140225105045-9t4a443nq0lw55qu
2014-02-25 11:50:45 +01:00
Parth Gajjar (Open ERP) 7c686feaee [ADD] added country flags in res.country
bzr revid: pga@tinyerp.com-20140225091358-475bxx2z9ipahjw1
2014-02-25 14:43:58 +05:30
Martin Trigaux b9f72dae74 [FIX] orm: do not drop low level columns (aka 'magic columns') when deleting ir.model.fields
lp bug: https://launchpad.net/bugs/1262150 fixed

bzr revid: mat@openerp.com-20140224161918-9pe1x3jeno8t82p1
2014-02-24 17:19:18 +01:00
Fabien Meghazi 6df317c546 [FIX] website's translation problems on multiple inheritance
bzr revid: fme@openerp.com-20140224103235-2s9de5k71xfa2qko
2014-02-24 11:32:35 +01:00
Launchpad Translations on behalf of openerp b0d401d6e5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140221063809-721gx6izacr4uc07
bzr revid: launchpad_translations_on_behalf_of_openerp-20140222073238-b28iwuxw1cp32fas
bzr revid: launchpad_translations_on_behalf_of_openerp-20140223074450-qijz5rsfsjahcgq0
bzr revid: launchpad_translations_on_behalf_of_openerp-20140224060308-psqz6bx89jpqt428
2014-02-24 06:03:08 +00:00
Launchpad Translations on behalf of openerp 5580324bbf Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140222063856-jg0p4f82hy0yw5f0
bzr revid: launchpad_translations_on_behalf_of_openerp-20140222063912-upicgao9ly9iu2wf
bzr revid: launchpad_translations_on_behalf_of_openerp-20140223070706-qx82kgcpxvuqfmod
2014-02-23 07:07:06 +00:00
Christophe Simonis e027b3b447 [FIX] damn! correct import
bzr revid: chs@openerp.com-20140221231010-nxwqfgtn6477ewvg
2014-02-22 00:10:10 +01:00
Christophe Simonis d81e9debbe [IMP] openerp/service/server.py: lint file
bzr revid: chs@openerp.com-20140221223544-q309ioxit8tzlaki
2014-02-21 23:35:44 +01:00
Christophe Simonis f511109440 [FIX] correct signal handler on nt
bzr revid: chs@openerp.com-20140221221702-5sa98qfkfh0fimct
2014-02-21 23:17:02 +01:00
Christophe Simonis 9f3417080c [FIX] correct run of test-file via command line
bzr revid: chs@openerp.com-20140221221551-y168fe003k45229m
2014-02-21 23:15:51 +01:00
Christophe Simonis 40f7df4fd8 [FIX] return code is non-zero if any preloaded database failed to load
bzr revid: chs@openerp.com-20140221220348-vw3mll25dti1n23u
2014-02-21 23:03:48 +01:00
Christophe Simonis 186bb97638 [FIX] httpd thread must be a daemon threaded
bzr revid: chs@openerp.com-20140221215709-codb7b9r9n77ln7k
2014-02-21 22:57:09 +01:00
Xavier Morel 013d27b850 [IMP] filter out phantomjs warning on OSX
bzr revid: xmo@openerp.com-20140221143448-tpx62ua785kc8gfx
2014-02-21 15:34:48 +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
Richard Mathot (OpenERP) 6b40002f98 [ADD] Enable access to workflow engine in server actions that run arbitrary python code
(a workflow variable gives now access to trg_* methods of the workflow engine)

bzr revid: rim@openerp.com-20140221115347-rpar6uyiwx1z9deu
2014-02-21 12:53:47 +01:00
Denis Ledoux 5fd307b921 [FIX] ir_model: Uninstall with orphan external ids of ir.model.fields
On uninstalling, if external ids are associated to an unexisting field, we do not try to delete the field (as it doesnt exist) and we remove the orphan external ids

bzr revid: dle@openerp.com-20140221104908-7ytdg6xkxaza05o4
2014-02-21 11:49:08 +01:00
Christophe Simonis 170f3ef1f9 [FIX] openerp/addons/base/ir/ir_actions.py: correct SyntaxError introduced in last commit
bzr revid: chs@openerp.com-20140220170949-kc4ru12sc5on300c
2014-02-20 18:09:49 +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
Denis Ledoux 67866db5b6 [MERGE] Forward-port of latest saas-2 bugfixes, up to rev. 5015 dle@openerp.com-20140221104908-7ytdg6xkxaza05o4
bzr revid: dle@openerp.com-20140220132700-hhc1nsu25j1ye257
bzr revid: mat@openerp.com-20140220150028-p6l0vnwa5q18uxiu
bzr revid: dle@openerp.com-20140221105500-t7jg037uusdloigl
2014-02-21 11:55:00 +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
Thibault Delavallée bff00ec6df [FIX] res_partner: avoid duplicating users when duplicating partners, because
I think your database wil hate you.

bzr revid: tde@openerp.com-20140224121004-lgy2rsszsomy7mji
2014-02-24 13:10:04 +01:00
Fabien Meghazi d1bbeb21a1 [FIX] website's translation problems on multiple view inheritance
bzr revid: fme@openerp.com-20140224104301-n8dqg0lx4oijf66b
2014-02-24 11:43:01 +01:00
Martin Trigaux bb3ff8b449 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev.5240 revid:mat@openerp.com-20140220145445-0xt7alp3uj0os1fz
bzr revid: mat@openerp.com-20140220145701-6y7s1roj88q7ys13
2014-02-20 15:57:01 +01:00
Martin Trigaux 9515daa3f8 [MERGE] [FIX] read_group: skip date(time) fields when generating the sql query, the monthly grouping is done afterward
lp bug: https://launchpad.net/bugs/1282485 fixed

bzr revid: mat@openerp.com-20140220103351-n3ohwombd1kk802f
bzr revid: mat@openerp.com-20140220145445-0xt7alp3uj0os1fz
2014-02-20 15:54:45 +01:00
Anael Closson 5e593b34d0 [FIX] orm: grouping of date and datetime conflicts ordering on dates with date and datetime - hotfix
bzr revid: acl@openerp.com-20140220135127-1hh7s6dx6p2wuhz9
2014-02-20 14:51:27 +01:00
Fabien Meghazi 587ada964e [IMP] Refactor CROS support
bzr revid: fme@openerp.com-20140220133714-igpobx20mhzlxi20
2014-02-20 14:37:14 +01:00
Fabien Meghazi d7ea890cbe [FIX] Don't crash if no host specified
bzr revid: fme@openerp.com-20140220132922-wax6e05u8x06lepu
2014-02-20 14:29:22 +01:00
Denis Ledoux 1b3925fadf [FIX] service: wrong namespace for using tools
bzr revid: dle@openerp.com-20140220132548-fkw19c45mbnejgld
2014-02-20 14:25:48 +01:00
Richard Mathot (OpenERP) 8951de3741 [MERGE] Sync with trunk
bzr revid: rim@openerp.com-20140220115658-4cz2t47siz5p2zg3
2014-02-20 12:56:58 +01:00
Fabien Meghazi 17f1992698 [FIX] Correctly handle super() for decorated routes and keep the request type on all functions
bzr revid: fme@openerp.com-20140220115016-axebl9ei9dvysko0
2014-02-20 12:50:16 +01:00
Xavier Morel bc86fdc614 [IMP] Cursor.savepoint
time.time doesn't guarantee sub-second precision.

Use a uuid1 instead (lower anonymity but higher isolation than uuid4
especially in distributed systems, and we don't care about anonimity for
savepoint names from application servers).

Quote name so first character can be a digit.

bzr revid: xmo@openerp.com-20140220103345-xistzxy17r8j87hf
2014-02-20 11:33:45 +01:00
Olivier Dony d4e62ca713 [IMP] ir.actions.act_window: make `multi` field visible in form view + improve label/desc
bzr revid: odo@openerp.com-20140220100036-uu0hg9lqhpc257pr
2014-02-20 11:00:36 +01:00
Anael Closson 7080279bde [FIX] incorrect handling of orderbys when generator for the groupby field generates more than one orderby clause item
bzr revid: acl@openerp.com-20140220095911-zd5j1ssjw0cwzzz2
2014-02-20 10:59:11 +01:00
Xavier Morel fc780d5a81 [FIX] actually retry select on EINTR
Turns out select has its own select.error which does *not* subclass
EnvironmentError (or OSError or IOError) and does *not* have a .errno
attribute. So use the correct exception, might just work better than using
a completely different one with no relation.

bzr revid: xmo@openerp.com-20140219155303-sgz7m3gnzr2bmani
2014-02-19 16:53:03 +01:00
Fabien Meghazi d5dbf9184d [IMP] Warn if invalid response type is returned for a request@type=http
bzr revid: fme@openerp.com-20140219153201-hgyk9c83hwqe49yl
2014-02-19 16:32:01 +01:00
Fabien Meghazi ae87d00ffa [REM] Completely removed LazyResponse
bzr revid: fme@openerp.com-20140219142313-1upmwem8debsqxy4
2014-02-19 15:23:13 +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
Fabien Meghazi 226b154154 [FIX] convert endpoint responses only if it's the current request endpoint
bzr revid: fme@openerp.com-20140219135128-6rdnymufpfo1xyvf
2014-02-19 14:51:28 +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
Xavier Morel d5cb5c2a14 [FIX] correctly display JS stack frames in phantomjs runner
altered reporting to handle and deserialize JSON if JSON-deserializable. Can't
just send multiple lines as driver currently does not handle multiple lines of
message... Yeah turns out having a JSON-based protocol between phantomjs and
the python runner allowed multiple lines in messages, who'd have thought eh?

bzr revid: xmo@openerp.com-20140219123850-0h0upb3x33j7leqk
2014-02-19 13:38:50 +01:00
Fabien Meghazi 3315938178 [FIX] Response default mimetype
bzr revid: fme@openerp.com-20140219102903-h8n070qqbbhlnenr
2014-02-19 11:29:03 +01:00
Xavier Morel fbead8fab1 [IMP] style
use break instead of return so cleanup can eventually be put after loop if necessary (?)

bzr revid: xmo@openerp.com-20140219101334-n8fcmzxptrqj717a
2014-02-19 11:13:34 +01:00
Xavier Morel abb58ee3b8 [FIX] possibility of select being interrupted, just restart the call
uses EnvironmentError because not sure if socket.error or os.error

bzr revid: xmo@openerp.com-20140219101110-4g4o658vzsol7jae
2014-02-19 11:11:10 +01:00
Launchpad Translations on behalf of openerp 871b2dc73d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140219053940-dvi4g7ajttoj6h9k
2014-02-19 05:39:40 +00:00
Fabien Meghazi 48d1e2d879 [ADD] Request with lazy rendering support
bzr revid: fme@openerp.com-20140218161505-bmfcc2jq16vvflzn
2014-02-18 17:15:05 +01:00
Xavier Morel cb03b384b0 [IMP] phantomjs runner
* use Skip exception to skip tests in case phantomjs binary not found
* remove spurious logging, move some to debug when debatable
* use testing assertions for correct reporting
* allow failure message
* use mutable buffer to accumulate stdout data

bzr revid: xmo@openerp.com-20140218133445-e5l155j10i934o88
2014-02-18 14:34:45 +01:00
Xavier Morel d926581bb9 [IMP] slightly improve error message at the end of a module's failed tests
bzr revid: xmo@openerp.com-20140218101847-mwsd2zolpze1xdhf
2014-02-18 11:18:47 +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 33076a34aa [FIX] run_unit_tests lying about its return value: it only ever returns a bool, never None
bzr revid: xmo@openerp.com-20140218095632-r4aq7gnzj4hq9u64
2014-02-18 10:56:32 +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
Christophe Simonis d60cf404ca [FIX] orm._auto_init: fallback to copy method when altering in-place varchar columns failed.
When a varchar column has a dependence on a view, we cannot change the size in-place,
we need to manually re-create the column with the correct type.

bzr revid: chs@openerp.com-20140217182045-qor70r3gb0fch2ki
2014-02-17 19:20: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
Olivier Dony a5b51c2be7 [IMP] orm._auto_init: avoid copying VARCHAR column when increasing size, alter in-place instead + better temporary names
Historically, we used a copy+rename technique during
table upgrades to alter varchar columns sizes.
This was only necessary to permit downsizing
columns, which we do not want to do anymore (it is
too dangerous, so has to be done explicitly when
required).

Switching to a pure ALTER COLUMN TYPE is simpler
and also much faster for large tables.

Also fixed the inappropriate name used for
temporary columns during column type casting
(which *does* require the copy+rename technique).

bzr revid: odo@openerp.com-20140217164239-0iou3dsiea3foabb
2014-02-17 17:42:39 +01:00
Xavier Morel 9a22d42b8b [IMP] unwrap tests suites during module loading, prepare for storing/filtering attributes
bzr revid: xmo@openerp.com-20140217155830-dcacx7qvyf7i0i4m
2014-02-17 16:58:30 +01:00
openerp-sle 0b7351da20 [MERGE] trunk
bzr revid: openerp-sle@openerp-sle.home-20140217153601-75znvem3gez24ycs
2014-02-17 16:36:01 +01:00
openerp-sle 1e0d15e5ec [FIX] Added the 'oldname' attribute on the renamed 'paper_format' field
bzr revid: openerp-sle@openerp-sle.home-20140217153459-3hcxvzmd1j5vvwgq
2014-02-17 16:34:59 +01:00
Xavier Morel 665e2629e2 [FIX] only run test modules called test_*, similar to normal autodiscovery
bzr revid: xmo@openerp.com-20140217151521-vyg130iznzojv3e4
2014-02-17 16:15:21 +01:00
Anael Closson f4f6bc3d9a [REF] removing debug code
bzr revid: acl@openerp.com-20140217140705-b2erer6w4mxba3l7
2014-02-17 15:07:05 +01:00
Anael Closson ac88131405 [IMP] Speed and quality improvement
- removing the need of the use of search when groupby is set on a relation
    field.
  - creation and use of dedicated helper method to compute the orderby clause
    for easier reading

bzr revid: acl@openerp.com-20140217140144-2rm3o00g76tyhqxn
2014-02-17 15:01:44 +01:00
Martin Trigaux 5e9e447eb0 [FIX] fonts: move domain on field instead of view and use capitalised version of mode (would not found any otherwise)
bzr revid: mat@openerp.com-20140217134823-p0i7nj6ljqslgwr1
2014-02-17 14:48:23 +01:00
openerp-sle f703a4bb35 [MERGE] trunk
bzr revid: openerp-sle@openerp-sle.home-20140217094935-1vow2td4pxb6wq3x
2014-02-17 10:49:35 +01:00
Launchpad Translations on behalf of openerp 5d2f1c68ac Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140216064134-tam102h50au851o1
bzr revid: launchpad_translations_on_behalf_of_openerp-20140215073800-2219ymc7ijxq57aa
bzr revid: launchpad_translations_on_behalf_of_openerp-20140216064223-17h9wz07b2siswzs
bzr revid: launchpad_translations_on_behalf_of_openerp-20140217060328-7qh928zk8ro30qzb
2014-02-17 06:03:28 +00:00
Antony Lesuisse 91b1c8472f [FIX] ir.http testing generate a router including the current module
this fix is a dirty hack, the proper fix could be a new 'installing' state in
modules, or an improved registry object.

bzr revid: al@openerp.com-20140217005137-mhrzc4znr8rqe9yu
2014-02-17 01:51:37 +01:00
Antony Lesuisse 75c350976c [FIX] tests HttpCase phantomjs conditional injection inject=[(need,file)]
bzr revid: al@openerp.com-20140217000150-wt3pwqrqcd7n2mfd
2014-02-17 01:01:50 +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