Commit Graph

3487 Commits

Author SHA1 Message Date
Vo Minh Thu a3cef23827 [MERGE] Make sure we pass only lists, tuples or dicts to Cursor.execute().
This fixes a call in the login code where a single untupled string was passed.
Psycopg does not see the problem: it iterates over the string, and as long as
the string length matches the number of needed parameters, everything seems
fine. Yeah for dynamic typing and SQL queries.

bzr revid: vmt@openerp.com-20121016125408-q537r71k5cisyxs0
2012-10-16 14:54:08 +02:00
Fabien Meghazi e8c0f38927 [REM] Removed useless css class in res.partner kanban view
bzr revid: fme@openerp.com-20121016102229-c3slg9mogr04h822
2012-10-16 12:22:29 +02:00
Fabien Pinckaers ffc34ab101 [MERGE] salesman -> salesperson
bzr revid: fp@tinyerp.com-20121015175508-iqj9n5h4i9138dw4
2012-10-15 19:55:08 +02:00
Olivier Dony e06e3aad4a [IMP] tools.html2plaintext: consistent use of lxml.etree.HTMLParser to convert HTML to plaintext
We used to switch to using BeautifulSoup when available, but that
lead to inconsistent behavior depending on the installed Python
packages, and sometimes lead to bad surprises. There is no advantage
in using BeautifulSoup rather than HTMLParser, and the latter is
always available.

bzr revid: odo@openerp.com-20121015120934-njaylf99dc5zekfw
2012-10-15 14:09:34 +02:00
Raphael Collet ae0a437aa6 [FIX] tests: add missing test
bzr revid: rco@openerp.com-20121015101849-hf7pyxjzkbxd4tgf
2012-10-15 12:18:49 +02:00
Raphael Collet 11051f32e0 [FIX] res_users.login: fix query parameters in cr.execute
bzr revid: rco@openerp.com-20121015100148-pkanx35vr6fqojuj
2012-10-15 12:01:48 +02:00
Antony Lesuisse 8fa8551f01 [FIX] cleanup ir.xml mess, ir.ui.view name is now optional in xml files
bzr revid: al@openerp.com-20121013120924-xix9cbozm8kda7rj
2012-10-13 14:09:24 +02:00
Vo Minh Thu 7878f9c7b6 [MERGE] babel: use babel for locale-aware read_group date formatting.
When grouping on a date or datetime field, read_group groups by (year, month),
and formats that pair to have a displayable result (as a group title).

This is currently done with strftime and the pattern `%B %Y` (complete word
month, long year), which is problematic as — at best — it uses the server's
locale for its formatting. This means if the server works in an english locale
e.g. russian users are going to see the month name in english, instead of their
own language.

This proposal makes use of `babel.dates.format_date`, which is locale-aware
(and to which a locale can be provided directly) and the locale present in the
request context to format the month, year pair according to the user's
language.

bzr revid: vmt@openerp.com-20121012144634-spaqze7d4jc8l00l
2012-10-12 16:46:34 +02:00
Launchpad Translations on behalf of openerp 53e6a97f33 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121012050942-nfure19k43lzib3e
2012-10-12 05:09:42 +00:00
niv-openerp dcae3b64a3 [REVERT] removed server-side evaluation of field options
bzr revid: nicolas.vanhoren@openerp.com-20121011122214-ab1mqyz9h8jnq7ql
2012-10-11 14:22:14 +02:00
Quentin (OpenERP) 407979d8d3 [MERGE] company: reports are now printing the company address as per its country format
bzr revid: qdp-launchpad@openerp.com-20121010205555-fsgudcepuy153ye2
2012-10-10 22:55:55 +02:00
Antony Lesuisse 0dbd9b603a [IMP] remove standalone web client, fix logging
bzr revid: al@openerp.com-20121010204829-5vamumz9lhxpsgob
2012-10-10 22:48:29 +02:00
Fabien Pinckaers 191a318f9b [MERGE] partner manager -> contact creation
bzr revid: fp@openerp.com-20121010191514-2mtm2sfssyhqoe3c
2012-10-10 21:15:14 +02:00
Xavier Morel 7a7876d4a8 [MERGE] from trunk
bzr revid: xmo@openerp.com-20121010154605-u16f57fnck148ued
2012-10-10 17:46:05 +02:00
Quentin (OpenERP) f4f3d6fa15 [REF] code review by odo
bzr revid: qdp-launchpad@openerp.com-20121010104220-nqi6c12ua7tnaejt
2012-10-10 12:42:20 +02:00
Rajesh Prajapati (OpenERP) 774d49503c [MERGE] merge with main server
bzr revid: rpr@tinyerp.com-20121010053013-9k4sa09ze0anqpt4
2012-10-10 11:00:13 +05:30
Quentin (OpenERP) 90fc4d6651 [IMP] use of literal_eval from ast instead of const_eval from tools, as per Olivier recommendation
bzr revid: qdp-launchpad@openerp.com-20121009152828-3bdxpatkrl1qmyfi
2012-10-09 17:28:28 +02:00
Quentin (OpenERP) c98de15a09 [IMP] osv/orm.py: evaluate in python the 'options' attribute of a field in an xml view, before enclosing it in json. This allow to use python instead of json syntax in the definition of the options of a widget, which is a much more consistent behavior
bzr revid: qdp-launchpad@openerp.com-20121009142607-rk3l00atu3w3kksp
2012-10-09 16:26:07 +02:00
Quentin (OpenERP) 86bdfde1cf [MERGE] review search view view
bzr revid: qdp-launchpad@openerp.com-20121009100850-d90a9romy0bn9pqp
2012-10-09 12:08:50 +02:00
Xavier Morel 510eea5305 [CHG] make empty cells clear out the corresponding field on import, rather than skip them
bzr revid: xmo@openerp.com-20121009092519-ge86yp3nnkqe9gic
2012-10-09 11:25:19 +02:00
Xavier Morel 10345423b1 [FIX] treat imported datetime as local to the context-provided or user's datetime
bzr revid: xmo@openerp.com-20121009085446-obfpn4c5r250zonc
2012-10-09 10:54:46 +02:00
Xavier Morel 35c0e73eb4 [FIX] m2m command in import
command helpers create a single command, still need the list around commands

and the tests would have caught it, if I'd run them...

bzr revid: xmo@openerp.com-20121009070934-7i1hxuzumdu8x1jy
2012-10-09 09:09:34 +02:00
Quentin (OpenERP) 6210cf76a6 [IMP] base: module search view imp
bzr revid: qdp-launchpad@openerp.com-20121008142757-c3597to9h42e56tl
2012-10-08 16:27:57 +02:00
Xavier Morel e8af13f0e8 [IMP] don't pass in a default lang to _get_source if no value is provided in the context, caught by odo
bzr revid: xmo@openerp.com-20121008133823-vhypgddiicztai3a
2012-10-08 15:38:23 +02:00
Xavier Morel afee5b63ee [IMP] use readable relation helper to generate a '6' m2m command
bzr revid: xmo@openerp.com-20121008133311-ejaix536syks41oo
2012-10-08 15:33:11 +02:00
Xavier Morel 443b5b9767 [FIX] missing translation mark on exception message
bzr revid: xmo@openerp.com-20121008133116-da2n77kbk9evaa7g
2012-10-08 15:31:16 +02:00
Xavier Morel 12f4150195 [IMP] avoid reimplementing (ir.model.data).get_object_reference() by hand, caught by odo
bzr revid: xmo@openerp.com-20121008133006-zsjdvax07zsrjwm6
2012-10-08 15:30:06 +02:00
Xavier Morel 00c7d9f4c0 [FIX] incorrect views spec in relational fields 'more info' action, spotted by odo
bzr revid: xmo@openerp.com-20121008132054-y57mg2rhxg6hkx2s
2012-10-08 15:20:54 +02:00
Xavier Morel 53786034e3 [FIX] docstring typo for name of converter methods on ir_fields, following odo review
bzr revid: xmo@openerp.com-20121008131545-u5sdlolmmgr8db2y
2012-10-08 15:15:45 +02:00
Xavier Morel 350d365ba0 [IMP] remove docstring for cr, uid following odo review
bzr revid: xmo@openerp.com-20121008131407-5hnxkn17lycfoqzu
2012-10-08 15:14:07 +02:00
Raphael Collet 659eaa6d15 [MERGE] from trunk
bzr revid: rco@openerp.com-20121008121655-swybuxw5mhl9zfe6
2012-10-08 14:16:55 +02:00
Saurang Suthar 220c9f4061 [MERGE]:merged with main server
bzr revid: ssu@tinyerp.com-20121008064112-84vhcvri9ntpegrn
2012-10-08 12:11:12 +05:30
Rajesh Prajapati (OpenERP) d07862d61a [MERGE] merge with main server
bzr revid: rpr@tinyerp.com-20121008061045-lyu9nb756rvis02x
2012-10-08 11:40:45 +05:30
Atul Patel (OpenERP) c95f769f99 [MERGE]: Merged with lp:openobject-server
bzr revid: atp@tinyerp.com-20121008051328-s9bbi1dhu5g0sc7j
2012-10-08 10:43:28 +05:30
Raphael Collet 4f235060a7 [MERGE] from trunk
bzr revid: rco@openerp.com-20121005124845-suonokozsufyicg2
2012-10-05 14:48:45 +02:00
Quentin (OpenERP) 6046f9f226 [REF] yaml_import: comments refactoring
bzr revid: qdp-launchpad@openerp.com-20121005120653-jyq8352trvki24uc
2012-10-05 14:06:53 +02:00
Raphael Collet 6c8756a5a2 [IMP] test_orm: add test for create with given inherited ancestor
bzr revid: rco@openerp.com-20121005115619-l9qsoofumwrs5kle
2012-10-05 13:56:19 +02:00
Quentin (OpenERP) 9d678d1fd1 [MERGE] trunk
bzr revid: qdp-launchpad@openerp.com-20121005115057-am34fqwxopdgkh3y
2012-10-05 13:50:57 +02:00
Raphael Collet 5a971eca90 [FIX] ir: small fix to handle missing models when upgrading
bzr revid: rco@openerp.com-20121005102003-16vbr0aive2mbtid
2012-10-05 12:20:03 +02:00
Raphael Collet bc34a0b071 [FIX] res_users: fix method copy() to not break test case
bzr revid: rco@openerp.com-20121005101220-jhnomko7woiuwf1f
2012-10-05 12:12:20 +02:00
Raphael Collet 40265731a0 [IMP] tests: add tests on model inheritance (_inherits)
bzr revid: rco@openerp.com-20121005101138-ifaon35nmytviu24
2012-10-05 12:11:38 +02:00
Quentin (OpenERP) e143ca2a5b [FIX] yaml_import: on _create_record, when we gather the default values on the object we can't use base.main_company´ in the yaml file and it's not compatible with the function)
bzr revid: qdp-launchpad@openerp.com-20121004154032-qyq5gdur383bfxl9
2012-10-04 17:40:32 +02:00
Xavier Morel 1a54bd9e4b [FIX] import tests pertaining to failing to link a relational subfield by id, xid or name
bzr revid: xmo@openerp.com-20121004152936-wsbwa4wbw9rii1an
2012-10-04 17:29:36 +02:00
Xavier Morel 27f15d8af8 [IMP] 'more info' actions from relational fields conversion
link to ir.model.data if failing to link with database or external ids

bzr revid: xmo@openerp.com-20121004151753-wuyra1fjo31ur56g
2012-10-04 17:17:53 +02:00
Xavier Morel 8b4b31108d [MERGE] from trunk
bzr revid: xmo@openerp.com-20121010154523-2h49kpxk4wqkxcy4
2012-10-10 17:45:23 +02:00
Quentin (OpenERP) 154675f4ad [FIX] base: onchange_type should return only the big image, not the medium or the small
bzr revid: qdp-launchpad@openerp.com-20121004130224-t9wcp1bn0014px3f
2012-10-04 15:02:24 +02:00
Xavier Morel 67a9cf851c [IMP] use moreinfo key to provide more info as to what the boolean and date value should look like
bzr revid: xmo@openerp.com-20121004123237-p5ht1uozaobxn8b7
2012-10-04 14:32:37 +02:00
Christophe Simonis 73087c62cf [MERGE] orm: handle correctly char size change
bzr revid: chs@openerp.com-20121004122436-yjiptjpriup4ac5v
2012-10-04 14:24:36 +02:00
Quentin (OpenERP) 9255d5d3ef [REF] yaml_import.py: some doc and error messagse improved
bzr revid: qdp-launchpad@openerp.com-20121004122418-a93kll1v7kqfrfc2
2012-10-04 14:24:18 +02:00
Quentin (OpenERP) 74f061ebee [IMP] yaml_import.py: comments and documentation improved for _create_record()
bzr revid: qdp-launchpad@openerp.com-20121004121522-ytttm7xulvo8i1wz
2012-10-04 14:15:22 +02:00