Commit Graph

385 Commits

Author SHA1 Message Date
Christophe Matthieu 5bbce53e35 [FIX] tools mail : html_email_clean
bzr revid: chm@openerp.com-20121120154217-4ewxir45q1wtjoax
2012-11-20 16:42:17 +01:00
Christophe Matthieu 50f09660fb [FIX] tools mail: html_email_clean return False (standard OpenERP) if the param is False
bzr revid: chm@openerp.com-20121120134001-ivw9dqxha2du70o6
2012-11-20 14:40:01 +01:00
Christophe Matthieu e9a1f9f5a7 [FIX] tools mail: html_email_clean return an empty string if the are no value
bzr revid: chm@openerp.com-20121119105330-2kud8vp18gp15u9e
2012-11-19 11:53:30 +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 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
Thibault Delavallée e2e94513f7 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121114083822-v5zjlspvkhacj4fo
2012-11-14 09:38:22 +01: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
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
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
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
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 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
Thibault Delavallée 1d52a68dd9 [IMP] tools: mail: added html_cleaner, to clean html code to display in chatter (remove quotes, signatures, ...).
bzr revid: tde@openerp.com-20121106121737-ej57bijc7ypksu8v
2012-11-06 13:17:37 +01:00
Thibault Delavallée 5f53f5253b [FIX] tools: some import cleaning and fixing.
bzr revid: tde@openerp.com-20121106115851-5f5sfhtp2g3qrm1o
2012-11-06 12:58:51 +01:00
Thibault Delavallée da6ad1e27c [REF] tools: moved email and mail related functions from misc to mail.
bzr revid: tde@openerp.com-20121106115744-pcxgyqv3lf8zfedw
2012-11-06 12:57:44 +01:00
Thibault Delavallée 207675a174 [REN] html_sanitize -> mail, to have a central file for methods about mail (html sanitizing, html management, emails related functions, ...).
bzr revid: tde@openerp.com-20121106115420-1h8mvzohol9zjysa
2012-11-06 12:54:20 +01:00
Vo Minh Thu 7d1c5ac4ff [FIX] yaml_import: why the hell is False not iterable.
bzr revid: vmt@openerp.com-20121031164512-qegyw1q865neivgt
2012-10-31 17:45:12 +01:00
Vo Minh Thu e44f673e61 [FIX] tools.yaml_import: change w.r.t. etree FutureWarning, which was:
FutureWarning: The behavior of this method will change in future versions. Use
specific 'len(elem)' or 'elem is not None' test instead.

bzr revid: vmt@openerp.com-20121031161437-pzz2czkaq6rw5t31
2012-10-31 17:14:37 +01:00
Odowan Kenobi 55f8e0485b [IMP] yaml_import: allow to use a view from another module when creating a record in yaml by prefixing it with <module_name> + '.' (e.g: account.supplier_invoice_form_view). A great patch from odony. Hooray
bzr revid: qdp-launchpad@openerp.com-20121030152824-0n2gazacag2hzkbj
2012-10-30 16:28:24 +01:00
Olivier Dony 290baa5be7 [FIX] yaml: more explicit error if !record has missing parameters
bzr revid: odo@openerp.com-20121029173421-bbx9kn0xp10bpeh1
2012-10-29 18:34:21 +01:00
Olivier Dony 9582a8bc82 [FIX] res.lang: ar_AR does not exist (Arabic in Argentina?!) -> replaced with ar_SY
ar_SY is the default locale alias for the `ar`
code in babel, so we can use that until a
translation team asks for a regional
variation of Arabic.

This should also fix an issue in the web
client, where ar_AR was not working, because
silently replaced with ar_SY.

This will only work for new databases,
old ones should be manually fixed.

bzr revid: odo@openerp.com-20121024161527-vec2r46a4o5lk47x
2012-10-24 18:15:27 +02:00
Olivier Dony b5b19a7a01 [FIX] generate_tracking_message_id: use more randomness to avoid duplicates
When several message IDs had to be generated for the same
record at the same time, there was a high chance to
get non-unique results. This possibly lead to data loss because
some mail implementations might ignore multiple mails with the
same ID (including OpenERP itself). On most operating systems
the available time resolution precision is better than what
we used (due to the float rounding of `%s`).
Adding a bit of randomness doesn't hurt, as OpenERP will
be used in increasingly distributed environments, so
we now add an extra random part as well.

bzr revid: odo@openerp.com-20121022162421-qr7nq8idihp5781u
2012-10-22 18:24:21 +02:00
Quentin (OpenERP) 820c2551bb [IMP] tools, yaml_import: the values given to the creation should only include the fields that aren't readonly in the view. Because that's what clients do
bzr revid: qdp-launchpad@openerp.com-20121019110604-1gvfcgqvwd1izh71
2012-10-19 13:06:04 +02:00
Quentin (OpenERP) 536cb8775c [TEST] removing values at record creation in yaml
bzr revid: qdp-launchpad@openerp.com-20121018184323-5kq9fb54slij3ioo
2012-10-18 20:43:23 +02:00
Antony Lesuisse ce552adba0 [MERGE] therp-nl/openobject-server/openobject-server_ormcache_key cache not working correctly with skiparg
bzr revid: al@openerp.com-20121017162555-tkydd6uq6fpm3a5i
2012-10-17 18:25:55 +02:00
Antony Lesuisse ed08f59e1f [MERGE] safe_eval opcode updates
bzr revid: al@openerp.com-20121017155526-o0ro53rno8d8cql2
2012-10-17 17:55:26 +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
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
Xavier Morel 7a7876d4a8 [MERGE] from trunk
bzr revid: xmo@openerp.com-20121010154605-u16f57fnck148ued
2012-10-10 17:46:05 +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
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 8b4b31108d [MERGE] from trunk
bzr revid: xmo@openerp.com-20121010154523-2h49kpxk4wqkxcy4
2012-10-10 17:45:23 +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
Quentin (OpenERP) 3d1b4398bf [REf] yaml_import.py: refactoring of _create_record()
bzr revid: qdp-launchpad@openerp.com-20121004115617-ihb4j3tdeco68vob
2012-10-04 13:56:17 +02:00
Quentin (OpenERP) bcf6dccf2d [MERGE] trunk
bzr revid: qdp-launchpad@openerp.com-20121004084807-i3vh4fw8sk7nz7ek
2012-10-04 10:48:07 +02:00
Olivier Dony 2a96eb4944 [MERGE] Sync with trunk
bzr revid: odo@openerp.com-20121003161807-3nwp7kvc3s2eh2xf
2012-10-03 18:18:07 +02:00
Olivier Dony a42baec455 [IMP] translate: unify the server and web translation export mechanisms
- qweb and Javascript terms extraction now builtin
- all qweb/JS terms are flagged with an extra PO comment:
  `openerp-web`, which the web client will use when
  loading translations
- the homemade Python/Mako extractor has been removed
  and replaced by the default babel Python extractor.
  Net result is that we extract less spurious terms, but
  keep valid ones, so everything looks great under
  the sun.

bzr revid: odo@openerp.com-20121003132659-h5obyl1j7hjo1y2b
2012-10-03 15:26:59 +02:00
Xavier Morel 1e4a677f05 [MERGE] from trunk
bzr revid: xmo@openerp.com-20121010154436-wz29sdkbs9vvhjba
2012-10-10 17:44:36 +02:00
Quentin (OpenERP) bc0e25938a [FIX] yaml import: if a field has a default value, we must call its on_change()
bzr revid: qdp-launchpad@openerp.com-20121003082306-ml0nodz6ubriwtpi
2012-10-03 10:23:06 +02:00
Quentin (OpenERP) 261e33f740 [FIX] yaml_import: the parent default values must be complete before calling the onchanges()
bzr revid: qdp-launchpad@openerp.com-20121002160055-ew4377e7jcqlgzv7
2012-10-02 18:00:55 +02:00
Quentin (OpenERP) fa852bab33 [FIX] yaml_import: don't erase the initial fields_view_get() result with the fields_view get of the first one2many fiel, other wise things get wrong -_-
bzr revid: qdp-launchpad@openerp.com-20121002120405-hvy4ltgrjzesndox
2012-10-02 14:04:05 +02:00
Quentin (OpenERP) 7812c73354 [IMP] yaml processing: improved previous patch by replacing the old parameter view with the result of fields_view_get() directly, to avoid having an extra parameter a bit useless
bzr revid: qdp-launchpad@openerp.com-20121001153806-k40ly5vdzh1v3hv3
2012-10-01 17:38:06 +02:00
Olivier Dony e35992cc53 [MERGE] Sync with trunk
bzr revid: odo@openerp.com-20121001144941-16d8mbi5475c3tyb
2012-10-01 16:49:41 +02:00
Quentin (OpenERP) 6c8ed08bf3 [IMP] yaml processing: fixed the creation of record through yaml files in order to use the views and on_change() functions that match the initial fields_view_get().
bzr revid: qdp-launchpad@openerp.com-20121001142735-bvqx48fbt9lyesjw
2012-10-01 16:27:35 +02:00