Commit Graph

1803 Commits

Author SHA1 Message Date
Olivier Dony 7f8965a00a [IMP] tools.ustr: allow specific error-handling flags a la `unicode`
Also cleaned up docstrings

bzr revid: odo@openerp.com-20120316144002-og07it5u7x2azhu4
2012-03-16 15:40:02 +01:00
Olivier Dony 4af38cc64a [IMP] attempt to dump uid performing operation along with thread stacks
bzr revid: odo@openerp.com-20120316111218-o963t7xm4r4honoy
2012-03-16 12:12:18 +01:00
Launchpad Translations on behalf of openerp d4319b3524 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120315044609-gdj56b4voubjv5kd
bzr revid: launchpad_translations_on_behalf_of_openerp-20120316050901-r5c17a1hfzkz9f1b
2012-03-16 05:09:01 +00:00
Olivier Dony caf646a7e5 [IMP] test_ir_sequence: avoid spurious traceback logging
bzr revid: odo@openerp.com-20120314142552-283i4s1lwrkt7zx3
2012-03-14 15:25:52 +01:00
Olivier Dony 638a9102c5 [MERGE] Latest fixes from 6.1
bzr revid: odo@openerp.com-20120314142043-9jpk3dkss1hkvb3q
2012-03-14 15:20:43 +01:00
Launchpad Translations on behalf of openerp 277217cae3 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120313053419-651m21hw6ja8naqc
bzr revid: launchpad_translations_on_behalf_of_openerp-20120314054403-pdvtd2s58mehtlrd
bzr revid: launchpad_translations_on_behalf_of_openerp-20120315051817-qfmyll102427mgi9
2012-03-15 05:18:17 +00:00
Olivier Dony 01f4ecd1c0 [IMP] bump up release number
bzr revid: odo@openerp.com-20120314141612-3y0v4monykywvg44
2012-03-14 15:16:12 +01:00
Launchpad Translations on behalf of openerp 0d81febc81 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120310045436-575z33tnn4ylhgmt
bzr revid: launchpad_translations_on_behalf_of_openerp-20120312043902-d43ik1qvtuz6xkvd
bzr revid: launchpad_translations_on_behalf_of_openerp-20120313050751-hkilihhs8zm4a8mp
bzr revid: launchpad_translations_on_behalf_of_openerp-20120314044248-xm1kexxswy9nc7wp
2012-03-14 04:42:48 +00:00
Olivier Dony e74c011a60 [FIX] ir.mail_server: SMTP user and pass should be passed as bytes to login()
Passing a unicode used to work in Python 2.5 but that
changed in 2.6 due to a change in the hmac module.
In any case the various RFCs that describe such
authentication mechanism do specify that UTF-8 encoded
values should be used, so we should be safe coercing
the user and passsword to UTF-8 bytes strings.
And of course it should not change anything for
the ASCII passwords out there anyway.

For references, see:
- Zope bug https://bugs.launchpad.net/zope.sendmail/+bug/597143
- Python issue http://bugs.python.org/issue5285
- http://tools.ietf.org/html/draft-ietf-sasl-crammd5-10#section-4

bzr revid: odo@openerp.com-20120312174348-iiqfa2toupn3udr3
2012-03-12 18:43:48 +01:00
Launchpad Translations on behalf of openerp 5ebc07237a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120310052625-78n2341gtv2zrgwg
bzr revid: launchpad_translations_on_behalf_of_openerp-20120311050634-9ftgr94cy2tvp9y5
bzr revid: launchpad_translations_on_behalf_of_openerp-20120312051214-q1f14seqal4j8rn5
bzr revid: launchpad_translations_on_behalf_of_openerp-20120310052733-s24jj1qyoxy2j8lz
bzr revid: launchpad_translations_on_behalf_of_openerp-20120311050659-0ky4089nbil85weg
bzr revid: launchpad_translations_on_behalf_of_openerp-20120312051227-90mlbjgzqjyj8a8a
2012-03-12 05:12:27 +00:00
Olivier Dony 65c71111fb [FIX] ir.attachment: override _search instead of search() to make sure name_search() works
bzr revid: odo@openerp.com-20120309100429-nrfkmlec45z41yj9
2012-03-09 11:04:29 +01:00
olt@tinyerp.com 6aa9f06dae [FIX] 'create_instance' method: the check for parent_model existence need to be done before accessing that object attributes or methods
bzr revid: olt@tinyerp.com-20120309081929-g4b8d34e93at49wf
2012-03-09 09:19:29 +01:00
Launchpad Translations on behalf of openerp e08cb5e606 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120309052845-h3cd2tmjt6j9jvrz
bzr revid: launchpad_translations_on_behalf_of_openerp-20120309052917-cfjnvomj9mod6odf
2012-03-09 05:29:17 +00:00
Olivier Dony f093d9f8d3 [FIX] res.country: fix name for DRC, confuses Google map and similar services
bzr revid: odo@openerp.com-20120309020710-utf0ehkzytcd02ru
2012-03-09 03:07:10 +01:00
Launchpad Translations on behalf of openerp 3ee625d145 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120307060314-gaha062xllz5foin
bzr revid: launchpad_translations_on_behalf_of_openerp-20120308052427-ucgx2ytaxy4r27u2
2012-03-08 05:24:27 +00:00
Christophe Simonis 91b8829050 [FIX] tools.email_send: use correct kwarg
bzr revid: chs@openerp.com-20120306173319-6tmhco83w0we5hl6
2012-03-06 18:33:19 +01:00
Launchpad Translations on behalf of openerp e4459562f2 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120228063010-woxw61j13uqq1edo
bzr revid: launchpad_translations_on_behalf_of_openerp-20120229052656-iadyuga5sjaabrbl
bzr revid: launchpad_translations_on_behalf_of_openerp-20120301051832-k8w3h3ibfqmdieub
bzr revid: launchpad_translations_on_behalf_of_openerp-20120302052336-7jib6zk2efcivip1
bzr revid: launchpad_translations_on_behalf_of_openerp-20120304052133-o3zqfxzedgnq55f2
2012-03-04 05:21:33 +00:00
Vo Minh Thu d2b5a20182 [FIX] tests: mistakenly removed a self argument.
bzr revid: vmt@openerp.com-20120302123535-jxsf49wr4at1ylhh
2012-03-02 13:35:35 +01:00
Vo Minh Thu 0cb86fc58d [IMP] tests: removed the severity concept from `assert` tags.
bzr revid: vmt@openerp.com-20120302112834-n1zyqf1g4v61ivje
2012-03-02 12:28:34 +01:00
Vo Minh Thu dc34d73695 [IMP] tests:
- pass around the assertion_report to the YAML importer
- removed TestReport, which was identical to assertion_report
- assertion_report is simpler (no more severity level)
- use the report to log a greppable sentence when some test failed.
Previously the runbot had to grep for a Traceback which was an
unreliable technique (e.g. an exception can be purposefuly
generated as part of a test and the associated traceback
visible in the logs). Now it can grep
  "At least one test failed when loading the modules".

bzr revid: vmt@openerp.com-20120302110227-nqrl7i46ju28ntdr
2012-03-02 12:02:27 +01:00
Vo Minh Thu 6323111950 [IMP] tests:
- moved a few YAML tests to unittest2 for demonstration purpose
- changed --test-disable to --test-enable (and swapped its meaning)

bzr revid: vmt@openerp.com-20120301134608-szuktuj8imdhmn0r
2012-03-01 14:46:08 +01:00
Vo Minh Thu ade3f174a5 [IMP] tests: move tests discovery and execution to openerp.modules.module, removed unexisting column name, filter out more test outputs
bzr revid: vmt@openerp.com-20120301121611-1gieqehm9wqog2fx
2012-03-01 13:16:11 +01:00
Vo Minh Thu d85da03314 [IMP] tests: xml-rpc test drops the created database (which has its own name, not clashing with the main db name).
bzr revid: vmt@openerp.com-20120301105419-8ik3z5eikwjnackk
2012-03-01 11:54:19 +01:00
Vo Minh Thu dac45d4392 [IMP] unittest: run the fast_suite and checks tests when installing a module.
bzr revid: vmt@openerp.com-20120229172520-n0k1dmxo5p0h0bar
2012-02-29 18:25:20 +01:00
Vo Minh Thu 73ea6a214b [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120229160123-hzsm15d8zjuga4sv
2012-02-29 17:01:23 +01:00
Launchpad Translations on behalf of openerp 679d307ead Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120222045636-woireovexwftw6ar
bzr revid: launchpad_translations_on_behalf_of_openerp-20120223043844-s2ndx8sv4esnqoln
bzr revid: launchpad_translations_on_behalf_of_openerp-20120224044737-fun2dpz186j8py0b
bzr revid: launchpad_translations_on_behalf_of_openerp-20120225051322-6aya32sbxaxvd5yq
bzr revid: launchpad_translations_on_behalf_of_openerp-20120226045523-gtd8h7707vl2clzj
bzr revid: launchpad_translations_on_behalf_of_openerp-20120227045228-dwmdog6eitav044b
bzr revid: launchpad_translations_on_behalf_of_openerp-20120228054731-fg5ohpi4t4vgc67p
bzr revid: launchpad_translations_on_behalf_of_openerp-20120229044148-vpzionn12cp18a8a
2012-02-29 04:41:48 +00:00
Vo Minh Thu d709d602d8 [ADD] FEATURES.rst: whenever a feature branch is reviewed (but normally also when it is started),
the description of the implented features must be provided, so
here they are.

bzr revid: vmt@openerp.com-20120228112418-r8tjx3o6xc2cbaej
2012-02-28 12:24:18 +01:00
Olivier Dony 3e61e9d497 [FIX] drop_view_if_exists: simpler and CASCADING implementation for pg 8.3+
OpenERP depends on PostgreSQL 8.3 so we can now
use 'IF EXISTS'. It's also necessary to 'CASCADE'
the drop, otherwise depending views will prevent
the deletion and thus update of the view.
Depending views will automatically be updated
later and thus re-created, so this is safe.

bzr revid: odo@openerp.com-20120227165737-z5fgb6fle9g0cylw
2012-02-27 17:57:37 +01:00
Olivier Dony 506b274977 [FIX] ir.rule: rules should be cascade-deleted along with their model
bzr revid: odo@openerp.com-20120227152135-y3hukyoow0q0dkif
2012-02-27 16:21:35 +01:00
Olivier Dony a43f7940dc [FIX] ir.model: workaround for broken Python 2.6 implementations
Apparently on some RedHat/CentOS version certain
Python 2.6 version do not support more than
4 nested levels of boolean filters.

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

bzr revid: odo@openerp.com-20120227100953-2wgr0l621tpu1x4x
2012-02-27 11:09:53 +01:00
Launchpad Translations on behalf of openerp 3f2c207322 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120224053018-z4h7by0h8f5bov2x
bzr revid: launchpad_translations_on_behalf_of_openerp-20120225055158-gr639s6rzw1io33x
bzr revid: launchpad_translations_on_behalf_of_openerp-20120226052058-i6jsb4i97m78vftu
bzr revid: launchpad_translations_on_behalf_of_openerp-20120227055542-vz7rbngenr8ynd46
bzr revid: launchpad_translations_on_behalf_of_openerp-20120225055258-f5ufpgcomzlqmahr
bzr revid: launchpad_translations_on_behalf_of_openerp-20120227055623-0jhvbldsrq90jg22
2012-02-27 05:56:23 +00:00
Olivier Dony 769ea34281 [FIX] orm: model auto-init - better algorithm for detecting stale constraints during update
bzr revid: odo@openerp.com-20120223175851-bihxp0l0ax1xhf5g
2012-02-23 18:58:51 +01:00
Olivier Dony 819334f0aa [FIX] orm: inherited `active` fields should be used for the implicit filtering
This is for example used by hr.employee which
inherits from resource.resource, with the
`active` field located on the resource model.
Simplified some code too.

bzr revid: odo@openerp.com-20120223141635-p117b5wvvreuj40c
2012-02-23 15:16:35 +01:00
olt@tinyerp.com 3be394de8a [FIX] pep8: tab -> space
bzr revid: olt@tinyerp.com-20120223094355-ejsm256vn58bn4i2
2012-02-23 10:43:55 +01:00
Launchpad Translations on behalf of openerp cc193c268e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120223052353-7wtilhl4ygsiebpm
bzr revid: launchpad_translations_on_behalf_of_openerp-20120223052405-zjntmml4s0tldteu
bzr revid: launchpad_translations_on_behalf_of_openerp-20120223052409-078hdbrd4l8060cr
2012-02-23 05:24:09 +00:00
Antony Lesuisse 7ac41ee582 [REL] 6.1.1
bzr revid: al@openerp.com-20120222113007-tdi482n17x1j74l4
2012-02-22 12:30:07 +01:00
Olivier Dony b5db852b3a [FIX] fields.binary: allow writing base64 unicode string values
The fields.binary type allows storing arbitrary
byte arrays, but it has been used historically
to store base64-encoded versions of the binaries.
This was partially related to the way these binary
values are serialized when transferred using the
standard XML-RPC protocol.
With the introduction of JSON-based RPC calls
alongside the 6.1 web client, these base64-encoded
binaries may now be deserialized as unicode ASCII
strings instead of 8-bit strings. That seems like
an acceptable behavior and we can simply coerce
these unicode strings to bytes strings as we know
they will be pure ASCII. Any non-ASCII unicode
value for binary field makes no sense and should
be passed as a byte string directly.

Thanks to Rui Barreiros for providing the final
hint in bug 919982 comments that lead to the
identification of this bug.

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

bzr revid: odo@openerp.com-20120222093937-quifmtsfc9gaa9ar
2012-02-22 10:39:37 +01:00
Launchpad Translations on behalf of openerp 9b0c341975 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120222065619-wdj17h21k8iuy3w6
bzr revid: launchpad_translations_on_behalf_of_openerp-20120222065704-3l8az0alwzd2mrmk
bzr revid: launchpad_translations_on_behalf_of_openerp-20120222065707-hp0u1vljdfgyjqxf
2012-02-22 06:57:07 +00:00
Christophe Simonis 688e788cef [FIX] proxy-mode is now really active
bzr revid: chs@openerp.com-20120221185247-ywuthx4v7oz0baty
2012-02-21 19:52:47 +01:00
Christophe Simonis 15bf79811d [FIX] proxy-mode is now really active
bzr revid: chs@openerp.com-20120221185441-czz0wbz0ah88lxht
2012-02-21 19:54:41 +01:00
Launchpad Translations on behalf of openerp e3cc141be5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120217045751-thn23vacyxknwt83
bzr revid: launchpad_translations_on_behalf_of_openerp-20120218045735-7snhwn8hjo2d7pe1
bzr revid: launchpad_translations_on_behalf_of_openerp-20120219054155-s1ok19use0jf281o
bzr revid: launchpad_translations_on_behalf_of_openerp-20120220053935-hgbv4yi1a5njd8a6
bzr revid: launchpad_translations_on_behalf_of_openerp-20120221055431-l0n17ap5346a02wg
2012-02-21 05:54:31 +00:00
Olivier Dony 3f6524a6e2 [FIX] Correct remaining SQL now() calls, must use UTC
This is essential to have the proper behavior for
timestamps: on the database side we exclusively 
store UTC data (no DST issues, etc.) as naive
timestamps (to prevent Postgres from messing with them).
Inside OpenERP server/addons we work again with
pure UTC data (much simpler), and only render
them according to the user's timezone when they
are displayed in the user interface or rendered
in a PDF report.

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

bzr revid: odo@openerp.com-20120220105943-v3m0i50phrurt8x6
2012-02-20 11:59:43 +01:00
Launchpad Translations on behalf of openerp dfa5449f02 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120218060208-gvsm4rrkca7yv031
2012-02-18 06:02:08 +00:00
Vo Minh Thu ed71ad0946 [FIX] tests: `core` is really `common`. Also added some comments
and a second test suite variable for sanity checks. The comments will
later be changed to point to some documentation instead.

bzr revid: vmt@openerp.com-20120217150049-in1lmo24qay8ulmh
2012-02-17 16:00:49 +01:00
Xavier Morel 8c2922a537 [FIX] base.module.upgrade: fix fields_view_get overload
lp bug: https://launchpad.net/bugs/928280 fixed

bzr revid: xmo@openerp.com-20120217091554-x1d0qvcvmj8z2oju
2012-02-17 10:15:54 +01:00
Antony Lesuisse 675aa4a549 [REL] OpenERP 6.1
bzr revid: al@openerp.com-20120216185110-gkoqaj3ncdy52hd3
2012-02-16 19:51:10 +01:00
Vo Minh Thu 0037575619 [IMP] tests: provide simple reusable base classes to write tests.
bzr revid: vmt@openerp.com-20120216162706-ccbgkqv8k8kufmnb
2012-02-16 17:27:06 +01:00
Launchpad Translations on behalf of openerp 2094148de5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120216050419-fgzhvlogc71u42qe
bzr revid: launchpad_translations_on_behalf_of_openerp-20120216050718-lf9hgvr1p33jpm2h
bzr revid: launchpad_translations_on_behalf_of_openerp-20120216052148-ta5bwtqg3bzmvp3i
2012-02-16 05:21:48 +00:00
Olivier Dony 0e97ec4a12 [MERGE] Fix bug 932170 - formatLang() should render using context timezone
bzr revid: odo@openerp.com-20120215144727-4vtoxdz7dk9si3wn
2012-02-15 15:47:27 +01:00
Olivier Dony e9143a0ba8 [FIX] reports: formatLang() should render datetime values in appropriate timezone
lp bug: https://launchpad.net/bugs/932170 fixed

bzr revid: odo@openerp.com-20120215133748-2iodxq0z1vqhyz13
2012-02-15 14:37:48 +01:00