Vo Minh Thu
147fae832a
[FIX] test_db_cursor: explicitely close the cursor (without relying on __del__).
...
bzr revid: vmt@openerp.com-20121115123937-keq4eb2a3n85x0rv
2012-11-15 13:39:37 +01:00
Vo Minh Thu
08a2115754
[IMP] removing some warnings (those one are generated by tests).
...
bzr revid: vmt@openerp.com-20121115115759-toz6g9jcephwxmin
2012-11-15 12:57:59 +01:00
Thibault Delavallée
f0569f7133
[MERGE] Tools: mail.py: (E)Mail management
...
Refactored a bit openerp/tools about (e)mails and html.
- moved some (e)mail related functions from misc to mail
- moved html_sanitizer into mail
- added html_email_clean, to clean incoming emails (remove quotes, signature)
- added a plaintext2html function, to convert plaintext into html (\n and \r are replaced by <br/>, more than two <br/> are replaced by end and beginning of paragraphs)
- append_content_to_html now uses plaintext2html, according to some new flags
- added tests for html_email_clean, plaintext2html, updated test for append_content_to_html, html_sanitize
bzr revid: tde@openerp.com-20121114150442-4rpfdy9spm1ig0qw
2012-11-14 16:04:42 +01:00
Thibault Delavallée
23743683ea
[IMP] tools: html_email_clean: a bit more robust.
...
bzr revid: tde@openerp.com-20121114141452-n5jy3yzbmlbd3811
2012-11-14 15:14:52 +01:00
Thibault Delavallée
8e15ab0dff
[FIX] Typo in tests.
...
bzr revid: tde@openerp.com-20121114135159-nouaj72drtot5hiv
2012-11-14 14:51:59 +01:00
Vo Minh Thu
6fe4d55251
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20121114123943-oh8f0ni1e2itj1os
2012-11-14 13:39:43 +01:00
Vo Minh Thu
136363aff3
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20121114113507-o73jwcdow07daoho
2012-11-14 12:35:07 +01:00
Vo Minh Thu
7dcb31bcde
[IMP] duplicate_database: better logging.
...
bzr revid: vmt@openerp.com-20121114112521-g9q2n88ql9qwvlum
2012-11-14 12:25:21 +01:00
Thibault Delavallée
8b5a7c49a4
[REM] osv: removed temporary override of raise, added for debug purpose.
...
bzr revid: tde@openerp.com-20121114112021-trre94clvs8nuo43
2012-11-14 12:20:21 +01:00
niv-openerp
44bdf27363
[FIX] temporarily disabled a hack on res.users to use the partners view because it made a lot of views crash
...
bzr revid: nicolas.vanhoren@openerp.com-20121114110558-lylif3w917pjeu3y
2012-11-14 12:05:58 +01:00
Thibault Delavallée
cbf3c82e88
[IMP] tools: added a true test for html_sanitize, some function renaming.
...
bzr revid: tde@openerp.com-20121114103849-hbxni04dpog1fxju
2012-11-14 11:38:49 +01:00
Thibault Delavallée
7508a5c724
[CLEAN] html_email_clean: cleaned a bit the code.
...
bzr revid: tde@openerp.com-20121114103817-t19i2sv817jsur41
2012-11-14 11:38:17 +01:00
Vo Minh Thu
45f8c4adb7
[IMP] loading.py: be a bit more explicit about valid/invalid data/test files.
...
bzr revid: vmt@openerp.com-20121114103140-y0k40eb525ak99v1
2012-11-14 11:31:40 +01:00
Thibault Delavallée
e2e94513f7
[MERGE] Sync with trunk.
...
bzr revid: tde@openerp.com-20121114083822-v5zjlspvkhacj4fo
2012-11-14 09:38:22 +01:00
Launchpad Translations on behalf of openerp
0fb44bd06c
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20121114044031-2vwgqs6jlwz2c8oe
2012-11-14 04:40:31 +00:00
Thibault Delavallée
3668f00ad1
[FIX] tools: image: trying to fix the error about converting palette image.
...
bzr revid: tde@openerp.com-20121113143835-1j8t9azqcrskijq7
2012-11-13 15:38:35 +01:00
Thibault Delavallée
d36f972f96
[REV] tools: image: reverted changes introduced at rev 4440. The purpose of image_resize is to resize an image, without cropping, without aspect ratio changes. If another image management function is needed, please implement a new one with matching comments and behavior.
...
bzr revid: tde@openerp.com-20121113141752-1rbsais66ooi89jp
2012-11-13 15:17:52 +01:00
Launchpad Translations on behalf of openerp
4d51fd1c02
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20121113051658-s3j4n5kom54a2wex
2012-11-13 05:16:58 +00:00
Thibault Delavallée
d52fdd0ab3
[MERGE] Sync with trunk.
...
bzr revid: tde@openerp.com-20121112160536-63tx1u3c6yr2u8x9
2012-11-12 17:05:36 +01:00
Olivier Dony
2a1381a8af
[FIX] orm: make sure superuser mode always bypasses access rules filtering - one case was not covered after recent refactoring
...
Caused by refactoring in rev.4200
revid:odo@openerp.com-20120618094327
bzr revid: odo@openerp.com-20121112120453-axiul7k6y0o67hgb
2012-11-12 13:04:53 +01:00
Xavier Morel
be03940d64
[FIX] temperate error message in case of missing required field
...
The message worked (ish) for a missing field directly on the model,
but completely broke if the missing field was on an o2m and had the
same name as a field on the model, then it was complete
misinformation.
bzr revid: xmo@openerp.com-20121112084804-zcgtpml3a19uv909
2012-11-12 09:48:04 +01:00
Xavier Morel
35c44e7e20
[IMP] savepoint rollbacks after error transformation/logging of pg errors to still have original query on cursor
...
bzr revid: xmo@openerp.com-20121112084202-4nl94x2omlb4w2jr
2012-11-12 09:42:02 +01:00
Olivier Dony
fd6946f24a
[IMP] orm: make error handling more consistent when accessing deleted/filtered records
...
Previous behavior was unspecified and untested - leading to random results
when performing operations on a mix of deleted and ir.rule-filtered records.
The behavior is now clarified and explicitly tested.
One suprising case remains: read() on a deleted record
returns an empty result instead of raising an error,
in order to avoid spurious errors when a client
performs a sequence of search(), read() while
another user is deleting records.
bzr revid: odo@openerp.com-20121109171451-z2m6oqs910103lcz
2012-11-09 18:14:51 +01:00
Olivier Dony
b298dc4570
[FIX] tests.common: make ref() and browse_ref() work for TransactionCase as well + update tests
...
bzr revid: odo@openerp.com-20121109170826-jaer3j0p47uq37np
2012-11-09 18:08:26 +01:00
Olivier Dony
91e2d25cdd
[MERGE] ir.filters now have @is_default and a corresponding API adaptation
...
Client code usually calls get_filters() to get the list of filters for
a particular model, and then create_or_replace() to manage these filters.
In both cases a new @is_default attribute is now available - the idea
being that the default filter is always applied when a view is newly
opened. Global (user_id = False) filters are replaced by user-specific
filters when there are any.
bzr revid: odo@openerp.com-20121109140828-gpuifdjwrmefg5n2
2012-11-09 15:08:28 +01:00
Thibault Delavallée
62c419e66f
[IMP] tools: mail: improved append_content_to_html, including plaintext2html. Updated tests.
...
bzr revid: tde@openerp.com-20121109123521-e04g4zrhtv947l1r
2012-11-09 13:35:21 +01:00
Xavier Morel
4a4fc38d5e
[FIX] nuke ir.model.data caches before starting imports
...
Otherwise a previous validation (or 2) will poison the cache and the
import itself will fail even though the validation succeeeded (and
importing with no validation would have succeeded), as the orm cache
doesn't take DB rollbacks in account.
bzr revid: xmo@openerp.com-20121109113951-p3qgg6m5g7poay5e
2012-11-09 12:39:51 +01:00
Thibault Delavallée
0d027a3f8b
[MERGE] Sync with trunk.
...
bzr revid: tde@openerp.com-20121108161124-au0kg2b4h2uzzf6c
2012-11-08 17:11:24 +01:00
Thibault Delavallée
95f07f7773
[FIX] demo data: moved email address of admin from data to demo.
...
bzr revid: tde@openerp.com-20121108161036-97lynkhqdhpjbfa8
2012-11-08 17:10:36 +01:00
Quentin (OpenERP)
21af7835e0
[FIX] base, res.partner.view: remove duplicated invisible attribute that was totally hiding the 'type' field
...
bzr revid: qdp-launchpad@openerp.com-20121108140551-lefrv5ndvyzw5tt9
2012-11-08 15:05:51 +01:00
Thibault Delavallée
89083480fa
[IMP] [DEMO] admin, demo: updated demo data (email, signature).
...
bzr revid: tde@openerp.com-20121108101715-3ipopg5otdq9u0vx
2012-11-08 11:17:15 +01:00
Olivier Dony
76b031cfd4
[IMP] ir_filters: add test for updating global default filter - to complete the over-coverage
...
bzr revid: odo@openerp.com-20121108092907-e7cmjz4w4wn5u085
2012-11-08 10:29:07 +01:00
Olivier Dony
384a95461a
[IMP] ir_filters: use "shared filters" to designate global filters, to match the UI
...
bzr revid: odo@openerp.com-20121108092822-l8bog0ow0m0ey0b8
2012-11-08 10:28:22 +01:00
Thibault Delavallée
311cd19465
[MERGE] Sync with trunk.
...
bzr revid: tde@openerp.com-20121108090825-jrs7pwqnkeoyi8z4
2012-11-08 10:08:25 +01:00
Fabien Pinckaers
b5b3cbf4e4
[FIX] typo
...
bzr revid: fp@tinyerp.com-20121107173349-02vp0acqgdcnmi83
2012-11-07 18:33:49 +01:00
Thibault Delavallée
e6a9084677
[IMP] tools: added text2html function, basically turning plaintext into html. Added a test for this function. Updated signature for demo data.
...
bzr revid: tde@openerp.com-20121107164117-2caoqna2aclzowpk
2012-11-07 17:41:17 +01:00
Fabien Pinckaers
065848db8f
[IMP] default emails on admin and demo so that they can perform tests
...
bzr revid: fp@tinyerp.com-20121108095604-6tzd8i8chuxr9014
2012-11-08 10:56:04 +01:00
Thibault Delavallée
b36547e3ef
[CLEAN] tools: mail: removed commented code; moved some code.
...
bzr revid: tde@openerp.com-20121107154129-nhz7qjv1ksq521ur
2012-11-07 16:41:29 +01:00
Xavier Morel
59301c655f
[MERGE] from server
...
bzr revid: xmo@openerp.com-20121107111011-9q0c8kbuype5a8l6
2012-11-07 12:10:11 +01:00
Thibault Delavallée
688b6babed
[FIX] tools: html_email_clean: remove blockquote in any node, not just firs childs of root.
...
bzr revid: tde@openerp.com-20121107105031-xf0u71q3chx0chnv
2012-11-07 11:50:31 +01:00
Thibault Delavallée
4d89845de6
[IMP] tools: tests: cleaner: cleaned a bit test data. Will have to be improved.
...
bzr revid: tde@openerp.com-20121107093201-s0pco15msilt4erz
2012-11-07 10:32:01 +01:00
Thibault Delavallée
3ba739cbf5
[IMP] tools: mail: improved basic html_email_clean.
...
bzr revid: tde@openerp.com-20121107085807-td2okmbr61pm4g1e
2012-11-07 09:58:07 +01:00
Thibault Delavallée
ee6e9894a4
[MERGE] Sync with server/trunk.
...
bzr revid: tde@openerp.com-20121107083807-12i51iax0imkhjf1
2012-11-07 09:38:07 +01:00
Antony Lesuisse
e77725eb89
[IMP] improve experience on for openerp developers on windows, notes in setup.py and fix some imports
...
bzr revid: al@openerp.com-20121107015708-o9l893ll9f32wjcy
2012-11-07 02:57:08 +01:00
Olivier Dony
0357fddc61
[FIX] orm,web_services: properly return results of workflow triggers
...
bzr revid: odo@openerp.com-20121106181507-ss1w425c1omsn3sb
2012-11-06 19:15:07 +01:00
Olivier Dony
4ba1696ce2
[FIX] res.partner: read image files in binary mode
...
lp bug: https://launchpad.net/bugs/1048040 fixed
bzr revid: odo@openerp.com-20121106181502-tzqmrhs0u8odngvz
2012-11-06 19:15:02 +01:00
Fabien Meghazi
c71ce60400
[IMP] ir.translation, raise exception when trying to translate fields when no extra language is installed.
...
bzr revid: fme@openerp.com-20121106162753-6eqbhnwqhjgeun78
2012-11-06 17:27:53 +01:00
Thibault Delavallée
a80fab6303
[FIX] tools: mail: use beautifulsoup parser, if not present, html parser.
...
bzr revid: tde@openerp.com-20121106133751-ds0g2c7k8pu4d6rl
2012-11-06 14:37:51 +01:00
Thibault Delavallée
f2d53fd215
[FIX] tools: mail: fixed some import, cleaned some code.
...
bzr revid: tde@openerp.com-20121106124109-63svzi72lx2a13yq
2012-11-06 13:41:09 +01:00
Thibault Delavallée
c596792bc2
[FIX] tools: re-added html2text import, because of its use in ir_mail_server. Not sure it belongs here.
...
bzr revid: tde@openerp.com-20121106123407-2s4ya7ln7detui6y
2012-11-06 13:34:07 +01:00