Commit Graph
81544 Commits
Author SHA1 Message Date
Thibault Delavallée db2bdee343 MERGE] [FIX] email_template: fix relative -> absolute url conversion
Local URLs are converted into absolute URLs, notably because when using the
email designer, images are added using local URLs. Previously to this fix
the template was analyzed to find local URLs and make them absolute.
However this causes 2 issues :
- mako-based URLs are broken because a scheme is added before the mako that
generated the image src
- when changing the base url, the templates are not updated
The URLs are now converted dynamically when generating the content of the
html. This is done by passing a new parameter that enable the post processing
of the generated content.
Also fixed double body generation when using templates; fields parameter
was not propagated correctly.

bzr revid: tde@openerp.com-20140304112957-l9b10gyjqphs5fgc
2014-03-04 12:29:57 +01:00
Xavier Morel e78a3b18cc [ADD] tentative removal of attachments
Attachments ought be removed only if they are not used in an existing page/web
view.

Theoretically this could be set directly in unlink(), but:
* that would make a nice error message significantly harder
* the expenses of performing a text search in all view archs would be a bit expensive

Notes:
* the views set could be reduced to only "web" views
* the search is likely sensible to false negatives e.g. different order of
  query parameters. It *will* remove images still being used.

bzr revid: xmo@openerp.com-20140304110716-u14w6uo8fbkfa42i
2014-03-04 12:07:16 +01:00
Denis Ledoux f363856773 [FIX] website_hr_recruitment: missing required 'name', which leaded to crash, and the phone field is partner_phone, not just phone. Do you even test what you do ?
bzr revid: dle@openerp.com-20140303174445-j733tpmccc9x855u
2014-03-03 18:44:45 +01:00
Xavier Morel a99a15c960 [ADD] deduplication of website images being uploaded
There is a deduplication in ir.attachment, but it's only for FS-stored content
*and* it only deduplicates storage not models (as there are access rights
issues involved).

The goal here is to always return the same attachment when a user uploads the
exact same image multiple times (because it's simpler or whatever).

Initially tried to use a binary field & digest(), but search() blows up
because it tries to utf-8 encode raw binary data. So use char & hexdigest
instead.

_compute_checksum returns None if the provided attachment data does not look
like a website image attachment.

Unhandled: multiple existing matches, maybe a UNIQUE constraint on the
checksum field would be a good idea just in case.

bzr revid: xmo@openerp.com-20140303153855-5f2l8v0jq2mgb26f
2014-03-03 16:38:55 +01:00
Xavier Morel ec68d3d8bd [IMP] don't duplicate website_url function field of attachments
bzr revid: xmo@openerp.com-20140303142401-2jaxc3m31tmqw9qa
2014-03-03 15:24:01 +01:00
Xavier Morel 9d00835b2c [FIX] order of attachments in 'existing images' sub-dialog: put last uploaded first
bzr revid: xmo@openerp.com-20140303135426-evouhwgjtwku3v2b
2014-03-03 14:54:26 +01:00
Thibault Delavallée d417da6c1a [MERGE] Sync with saas-3
bzr revid: tde@openerp.com-20140303110400-arkw9yciv4eopb5a
2014-03-03 12:04:00 +01:00
Thibault Delavallée 05fdc2290a [IMP] email_template: relocate url rewritign stuff directly into the rendering method.
bzr revid: tde@openerp.com-20140303104044-hgmii31ga6msf72z
2014-03-03 11:40:44 +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
Denis Ledoux 70d3570846 [FIX]website: do not send False value to google map api to retrieve the image. Otherwise, you are in the middle of the ocean.
bzr revid: dle@openerp.com-20140228170900-lagmopkmkb58exqr
2014-02-28 18:09:00 +01: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
Denis Ledoux 2d903bcbb8 [FIX]website: stop animation on focus (clean fix)
bzr revid: dle@openerp.com-20140228163112-hru06zno1sl919uq
2014-02-28 17:31:12 +01:00
Kersten Jeremy c55af162d5 [TYPO] Typo for demo calendar
bzr revid: jke@openerp.com-20140228160611-uxq6y89bus33vehy
2014-02-28 17:06:11 +01:00
Christophe Simonis 57c4691236 [TYPO] website_hr_recruitment: s/Kraigslist/Craigslist/g
bzr revid: chs@openerp.com-20140228151648-2f33zqeffg8ipcyg
2014-02-28 16:16:48 +01:00
Christophe Simonis a5fc14193d [FIX] website_mail: forbid access to email_designer routes to public user
bzr revid: chs@openerp.com-20140228151544-ipoih9c924rsbqi1
2014-02-28 16:15:44 +01:00
Christophe Simonis 47c4728f43 [FIX] mail,website_sale: rename file_type to file_type_icon to avoid name conflict with file_type field added by document module
bzr revid: chs@openerp.com-20140228142233-i0mm9lav0czbydkk
2014-02-28 15:22:33 +01:00
Kersten Jeremy 4954c0fa39 [FIX] Allow other users to read field recurrent_id_date from private event, else we cannot see that this event is excluded from a recurrence
bzr revid: jke@openerp.com-20140228143930-3eeam1a3676kgv4i
2014-02-28 15:39:30 +01:00
Kersten Jeremy 015083df09 [FIX] Calendar - Tempalte Mail - Move the if condition who vas between table and tr into td, else wysiwig and some other sanitizers will move the if condition outside the table
bzr revid: jke@openerp.com-20140228140053-02952ews6aadfcjf
2014-02-28 15:00:53 +01:00
Kersten Jeremy b2045b91ac [IMP] Improve dipslay of form_embedded_html for mail Template. Removed the big margin, and add scroll on overflow
bzr revid: jke@openerp.com-20140228135224-my13sabs7f7h3c60
2014-02-28 14:52:24 +01:00
Christophe Matthieu abcd7e4926 [FIX] website snippet: When duplicating a column, the column becomes a col-md-1 instead of keeping existing width
bzr revid: chm@openerp.com-20140228132507-0s6y5k3vkbmusvf1
2014-02-28 14:25:07 +01:00
Christophe Matthieu ce1ff0a854 [FIX] website snippet: Fix parallax with retro-compatibility; Crappy fix for carousel because bootstrap active cycling when user click on a bullet and don't stop when user edit a snippet inside a slider.
bzr revid: chm@openerp.com-20140228131738-il41640r8x9zesll
2014-02-28 14:17:38 +01:00
Christophe Simonis c8971214f9 [FIX] website_sale: allow validation of free orders (amount = 0) without payment transaction
bzr revid: chs@openerp.com-20140228123414-4chmuemyi72rpwgf
2014-02-28 13:34:14 +01:00
Christophe Matthieu 24f9dc348a [FIX] website_sale: long product title is over the price in grid view.
bzr revid: chm@openerp.com-20140228102257-000435ykuv7000ub
2014-02-28 11:22:57 +01:00
Christophe Matthieu c11f4f9352 [FIX] website: snippet: continue slide cycling when the user edit the content
bzr revid: chm@openerp.com-20140228095531-8c735qyacmffryno
2014-02-28 10:55:31 +01:00
Kersten Jeremy 80f5dd1322 [FIX] Check that redirect uri is distinct that original uri in fragment_to_query_string, else with redirect to root website. That avoid a loop if some route calling this function are called without hash
bzr revid: jke@openerp.com-20140228095422-4xzxfsv20s4zepxq
2014-02-28 10:54:22 +01:00
Kersten Jeremy 7b91fa8920 [IMP] Hide seconds in demo data from event and event track module
bzr revid: jke@openerp.com-20140228095052-nrf5tt38y7k9jr2v
2014-02-28 10:50:52 +01:00
Christophe Simonis 783a8e22a9 [FIX] payment_ogone: ogone is so bad with encoding that they need to duplicate their code to handle utf8 correctly ಠ_ಠ
bzr revid: chs@openerp.com-20140228092535-1tfy5832rgq79ob9
2014-02-28 10:25:35 +01:00
Kersten Jeremy 01028e5260 [IMP] Remove the seconds on event demoo data
bzr revid: jke@openerp.com-20140228090844-akorvc0ve71x0i4j
2014-02-28 10:08:44 +01:00
Christophe Simonis 91c278ad75 [FIX] payment_ogone: use utf8 version of orderstandard page
bzr revid: chs@openerp.com-20140227214423-k0dz4769kibfgld4
2014-02-27 22:44:23 +01:00
Christophe Matthieu 5e509d07df [FIX] website_sale: search filter with multi values for one attribute does not work. (and fix slider)
bzr revid: chm@openerp.com-20140227164756-846ezfa36fz3v4d9
2014-02-27 17:47:56 +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
Christophe Simonis 3e2c1b1be3 [FIX] website_sale: do not write on public user
bzr revid: chs@openerp.com-20140227164000-owh6217y3t5iyiow
2014-02-27 17:40:00 +01:00
Denis Ledoux ee67a1ae39 [IMP] auth_signup: email first in the signup form, as is regarded as the most important variable
bzr revid: dle@openerp.com-20140227161638-5rp3bunjx77fbavu
2014-02-27 17:16:38 +01:00
Denis Ledoux 82fceb4620 [FIX] web: login, autofocus if login is filled
bzr revid: dle@openerp.com-20140227161454-sd6qxmpgv2bvslf7
2014-02-27 17:14:54 +01:00
Christophe Matthieu b994ae4938 [FIX] website_sale: search filter with multi values for one attribute does not work. (and fix slider)
bzr revid: chm@openerp.com-20140227160519-eakqgm2zwrxseya7
2014-02-27 17:05:19 +01:00
Thibault Delavallée a9a4767d17 [FIX] email_template :
- fixed composer using template that were rendering the body twice, once form the template and
once from the composer body. Only the latter one is used, so avoid generating the template body
that is not necessary
- fixed email_template generating values for a set of given fields, ignoring the field list
given into parameter
- fixed post processing of templates to transform local urls into absolute urls; now urls are
transformed after body generation, when sending email based on templates , or when generating
the content when using the composer.

bzr revid: tde@openerp.com-20140227153835-gmqnxrzed9fnbxhm
2014-02-27 16:38:35 +01:00
Christophe Simonis 8b81179d45 [FIX] payment_paypal: create account with at least required fields
bzr revid: chs@openerp.com-20140227151959-mpk2bjk9k8t0chqo
2014-02-27 16:19:59 +01:00
Thibault Delavallée a17c09afff [IMP] [FIX] email_template: do not sanitize the template content.
Indeed its content may contain invalid html that could be stripped by the
sanitizer. The content generated based on the template will be sanitized
when stored in the mail_mail or mail_message body field, thus after
rendering.

bzr revid: tde@openerp.com-20140227144228-d275lxz6ryarkg4t
2014-02-27 15:42:28 +01:00
Kersten Jeremy 2b7de6164f [FIX] Fix notification in calendar. All peoples had all notifs :(
bzr revid: jke@openerp.com-20140227142933-33bh05ozdb7uwjy5
2014-02-27 15:29:33 +01:00
Christophe Matthieu d96cf8c54c [FIX] website: editor: can not edit a label in edit mode, must prevent the default click
bzr revid: chm@openerp.com-20140227140043-8iko13704pci9823
2014-02-27 15:00:43 +01:00
Christophe Matthieu 6a9d3326db [FIX] website_sale: 'Ship to a different address' not translatable
bzr revid: chm@openerp.com-20140227135120-drw0jha7gzqptdog
2014-02-27 14:51:20 +01:00
Thibault Delavallée b1f88d634d [IMP] [FIX] email_template: do not sanitize the template content.
Indeed its content may contain invalid html that could be stripped by the
sanitizer. The content generated based on the template will be sanitized
when stored in the mail_mail or mail_message body field, thus after
rendering.
The template therefore holds html, but that is not sanitized. But that's
still html, therefore using an html field.

bzr revid: tde@openerp.com-20140227134829-te8mxeakc3s96fun
2014-02-27 14:48:29 +01:00
Christophe Matthieu f462d1564f [FIX] website: bootstrap: Fixed the sliding issue of carousel library in IE9. The transition was not working in any snippet.
bzr revid: chm@openerp.com-20140227133347-6pk45n7ibyrx8imf
2014-02-27 14:33:47 +01:00
Kersten Jeremy 49a92c376a [FIX] Fix loop when parse hash into get param with no hash
bzr revid: jke@openerp.com-20140227130705-jlvl157aio3o4df3
2014-02-27 14:07:05 +01:00
Xavier Morel 6b857b6eeb [FIX] whitespace/indent lost by RTE
Didn't manage to find RTE settings to avoid losing leading whitespace of
lines, so reindeint arch after doing all integration, right before saving back
to view's field.

* html.fromstring(parser=HTMLParser(remove_blank_text=True) does not seem to
  work, so serialize to XML, and parse back with
  remove_blank_text. remove_blank_text necessary for lxml's pretty_print to
  work correctly.

* pretty_print only & always uses 2 spaces/indent level. Our files (and the
  HTML editor's Format button) uses 4 spaces -> need a second pass to double
  indents.

bzr revid: xmo@openerp.com-20140227125934-q8j3z440px2ic6kx
2014-02-27 13:59:34 +01:00
Denis Ledoux e28677f727 [FIX]project: chosend beginning stage for new project_issue sequence <= 1 (instead of =, same behavior than in tasks)
bzr revid: dle@openerp.com-20140227122938-i0s6dfxd42pl6ov3
2014-02-27 13:29:38 +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
Paramjit Singh Sahota 89de7d9f25 [MERGE] Merged lp:~openerp/openobject-addons/saas-3
bzr revid: psa@tinyerp.com-20140227114202-g2yw8pmsn4v0lm05
2014-02-27 17:12:02 +05:30
Christophe Matthieu 6a777b9e62 [FIX] website editor: Editor bar is showing border in ie.
bzr revid: chm@openerp.com-20140227111726-s1545ii3exjqjkxz
2014-02-27 12:17:26 +01:00