Commit Graph

81555 Commits

Author SHA1 Message Date
Thibault Delavallée 17a23c60b8 [IMP] [MONKEY] Re-apply changes introduced at version 3328.
Original commit by chm.

[FIX] cleditor: When the DOM is modify, the event resize try to call refresh and refresh has not DOM available. Correction : If the DOM as no prent, don't call refresh.

bzr revid: tde@openerp.com-20140305105455-1ewix4pm9m5ob1bm
2014-03-05 11:54:55 +01:00
Thibault Delavallée bff34f4014 [DUMMY] Void commit with a space change, because this cause a crash in bazaar.
bzr revid: tde@openerp.com-20140305104931-xnftljkziznsi9qq
2014-03-05 11:49:31 +01:00
Paramjit Singh Sahota a64ed6673c [MERGE] Merged lp:~openerp/openerp-web/saas-3
bzr revid: psa@tinyerp.com-20140305050903-8n1prme78ou7n2h2
2014-03-05 10:39:03 +05:30
Paramjit Singh Sahota 97cff89b3d [REM] REmoved the jquery.cleditor.min.js for the lib.
bzr revid: psa@tinyerp.com-20140305050612-8z0jpohvg026l2xi
2014-03-05 10:36:12 +05:30
Denis Ledoux 1761704af2 [FIX] web: view form fieldselection, use name_search instead of cascading search and name_get
One rpc call won
Moreover, res_company in server overwrite name_search for company field in res users preferences, to display all allowed companies of the user, and not just the one allowed by record rules, so the user can change to the companies he is allowed to.

bzr revid: dle@openerp.com-20140304173838-c7uimmey8gvi3b64
2014-03-04 18:38:38 +01:00
Thibault Delavallée de37ea15ac [MERGE] [FIX] website_sale: effectively send the email of a draft or confirmed quotation on the ecommerce after payment. Having the action is not sufficient, we have to trigger it manually. We do this by creating and sending a mail.compose.message, like what is done manually on a quotation when using the 'Send by email' button.
bzr revid: tde@openerp.com-20140304161659-9ueka2y4ctfk4okv
2014-03-04 17:16:59 +01:00
Denis Ledoux 40b1ab36bb [FIX] crm: convert lead to opp wizard, on change salesman choose default salesteam if any
bzr revid: dle@openerp.com-20140304154442-o2zvun8ehv2ro6dl
2014-03-04 16:44:42 +01:00
Thibault Delavallée 6924171964 [FIX] website_sale: effectively send the email of a draft
or confirmed quotation on the ecommerce. Having the action is not sufficient
we have to trigger it manually.

bzr revid: tde@openerp.com-20140304154433-t9mo6bzsesx7z613
2014-03-04 16:44:33 +01:00
Thibault Delavallée 1802496c9f [FIX] website_sale: fixed wrong method name, sale_reset_order is not defined anymore
bzr revid: tde@openerp.com-20140304143426-0eaec0sr6y4ogta9
2014-03-04 15:34:26 +01:00
Paramjit Singh Sahota 2331b14f57 [UPDATE] Updated the cleditor lib from v1.3.0 to v1.4.4 to fix the INTERNET EXPLORER issues.
bzr revid: psa@tinyerp.com-20140304132534-8dyuusqda5vsdcit
2014-03-04 18:55:34 +05:30
Xavier Morel a0feb7c3c9 [REV] backout xmo@openerp.com-20140303153855-5f2l8v0jq2mgb26f, schemas should not be altered in saas-3
bzr revid: xmo@openerp.com-20140304132101-qysq310wp1oo859n
2014-03-04 14:21:01 +01:00
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