Commit Graph
2711 Commits
Author SHA1 Message Date
Jeremy Kersten efbe6ae880 [IMP] website: Split loading of asset to load css before js
"An external CSS files were included after an external JavaScript file in the document head.
To ensure CSS files are downloaded in parallel, always include external CSS before external JavaScript."
-- Chrome analyzer --
2015-04-10 11:43:46 +02:00
Jeremy Kersten 67c40a50fa [FIX] assets : clean typo and useless script 2015-04-10 10:55:58 +02:00
Christophe Matthieu 368ea9d614 [FIX] website: summernote: don't need to add a white space when delete a selection if the string is not fully erase 2015-04-09 16:09:07 +02:00
Christophe Matthieu c35f8a7b48 [FIX] summernote: when the editor create a link, we need to use deleteContents with the flag to_write as true to insert the link at the same place. 2015-04-09 16:07:12 +02:00
Christophe Matthieu 3d8ac2e3df [FIX] website: snippet editor: if a snippet is dropped near a text node with a previous click, need to get the parent node to trigger the history 2015-04-09 15:14:20 +02:00
Jeremy Kersten 4aa2e52b3d [FIX] website: allow to rename a website page.
Code from delete_page has been spliited (functions, templates, ...)
to be re-usable by rename_page

Change default input type from website.prompt.
Old default value 'text' had no sense, there are no tag <text>.
2015-04-08 13:40:11 +02:00
Denis Ledoux 2661a6c0cd [REVERT] e089f296d2
This revision completely breaks the reports
having long content in cells

To reproduce, just create a sale order with a long
line description, and print the sale.order report
before and after this revision, then see the difference.

opw-632317
2015-04-07 17:23:50 +02:00
Christophe Matthieu c2c093d6b8 [FIX] website.editor: remove javascript exception when the user close the modal after add a question in website_forum 2015-04-07 16:28:19 +02:00
Christophe Matthieu 734060f5b1 [FIX] website: can apply color picker to multi-selected areas
Port of commit 4912176a1b9ea1c59babb4d519d03692ad9a6ab2 from website_less
2015-04-01 11:23:02 +02:00
Christophe Matthieu 5c6b175b64 [FIX] website: fixed t-oe cleaning
Port of commit 86c2939dd71b7de711f79f2c2dbb486f86c2e760 from website_less
2015-04-01 11:23:02 +02:00
David Monjoie 286308155c [IMP] website: added routes to resize image attachments
You can already resize the image from the field of a model, why not a field from an xmlid object or an xmlid object itself ?
2015-04-01 11:23:02 +02:00
David Monjoie 67ff2eb92b [FIX] website: fixed element should have a position
Otherwise, it is fixed according to the other elements, here, the wrapwrap element.
So if we add a margin to wrapwrap, the margin is also added to the navbar, which
means it is not really fixed on the top.
This fix avoids this issue so the navbar is always fixed at the top of the page.
2015-04-01 11:23:02 +02:00
Christophe Matthieu 0af0738841 [FIX] website: selection of active background option
Port of commit 91d6af1dcd774e16f72375012288f5fab7574a4d from website_less
2015-04-01 11:23:01 +02:00
David Monjoie 0cda9a7401 [FIX] website: add a scrollbar for customize modal if needed
Port of commit 9d511913f8de469e6980f4fb6b2923245e2e6f48 from website_less
2015-04-01 11:23:01 +02:00
David Monjoie 54e8d225fc [FIX] website: render data-oe-call when website is ready
In master, js files are loaded at the top of the page so we need to call this function only when the website is ready
2015-04-01 11:23:01 +02:00
Christophe Matthieu a4885bf454 [FIX] website: fixed multi_render of data-oe-call
Port of commit 37fa0a416bd323c82d624482e3a3c778bdd54d8e from website_less
2015-04-01 11:23:01 +02:00
David Monjoie 60e5b041d4 [IMP] website: activate bootstrap less by default
It will be activated by default in master anyway and we already need lessc installed on the server in saas-6 because of the planner.
2015-04-01 11:23:01 +02:00
David Monjoie 5a6d2f6e23 [FIX] website: default options are possible to disable by xpath
If we don't do that, the default options get mixed up with theme modules (including our own theme_bootswatch).
Even worse, when installing any theme (including theme_bootswatch), the menu to change these options is replaced by the new theme one, so you cannot disable the broken options.
This trick allows theme modules to disable the default options so they don't conflict, while restoring the user choices when uninstalling the theme.
2015-04-01 11:23:01 +02:00
Raphael Collet 58d6bb30ab [FIX] ormcache: fix calls to ormcache with unexpected context parameter
The implementation of ormcache does not work on methods that take a context
parameter. Because of the decorator decorator, the arguments of the call are
passed positionally to the method ormcache.lookup, and positional arguments
are used in the cache key.

The fix consists in removing the context parameter from the faulty methods,
either directly, or by caching a private method called by the public method.
2015-03-26 18:44:51 +01:00
Christophe Simonis 313acf87a2 [MERGE] forward port of branch 8.0 up to d780014 2015-03-26 18:44:22 +01:00
FalcoBolger 95b921d0f7 [FIX] website: move support for ir.attachment resources to web module
Commit 540b753bf8 introduced
support for resources stored as ir.attachment records in
asset bundles too.
This is specifically useful for customizations.

However the HTTP route for reaching those resources
when they are *not* in a bundle was originally created
in the `website` module (as a special handling for
404 requests)

This means that these dynamic resources would only
be partially supported when `website` is not installed,
causing various problems:
 - missing resources in debug mode where bundles are skipped
 - errors when trying to define new client-side Qweb templates
   via XML resources - which are loaded with a direct request
 - ...

This commit moves back the supporting code to the web module.

The `mimetype` column is not present in ir.attachment without
the `website` module, but sniffing it based on the attachment
name works fine at serving time too.

Closes #6002
2015-03-26 17:33:19 +01:00
Raphael Collet 0beb14f0d2 [FIX] ormcache: fix calls to ormcache with unexpected context parameter
The implementation of `ormcache` does not work on methods that take a `context`
parameter.  Because of the decorator `decorator`, the arguments of the call are
passed positionally to the method `ormcache.lookup`, and positional arguments
are used in the cache key.

The fix consists in removing the `context` parameter from the faulty methods,
either directly, or by caching a private method called by the public method.
2015-03-26 16:42:10 +01:00
Christophe Matthieu 3587bcd305 [FIX] website summernote: create justify methods to align the text because the browser default method fail. 2015-03-24 16:24:34 +01:00
Christophe Matthieu ae130e3d79 [FIX] website summernote: Add recordUndo for font changes. 2015-03-24 16:24:33 +01:00
Christophe Matthieu 44069b6e7b [FIX] website summernote: Apply a better clean dom to remove error create by the browser contentEditable. 2015-03-24 16:24:33 +01:00
Christophe Matthieu 96b33cdbce [FIX] website summernote: sould not delete de tag container when select all text inside (although there are several selected child nodes) 2015-03-24 16:24:33 +01:00
Christophe Matthieu c9dd223305 [FIX] website editor: delete content should not remove the editable ancestor node when all content is seleted 2015-03-23 12:25:06 +01:00
Christophe Matthieu 2f5e4149fb [FIX] summernote: wrap the content with p when the user keyup on 'enter' but should not wrap the content if the editable area is a p, li or other para 2015-03-23 12:25:06 +01:00
Christophe Matthieu e1cf30a88f [FIX] website editor: remove wrong tooltip on snippet icon 2015-03-23 12:25:05 +01:00
Christophe Matthieu f5a0a64e08 [FIX] website editor: snippet clean_for_save method is never called 2015-03-20 15:25:33 +01:00
Goffin Simon 5611b5e2fa [IMP] To allow to translate pages in version.
The translations of a page A in a version are applied to all the pages
with the same key of page A.
2015-03-18 17:19:07 +01:00
Christophe Simonis a329aa1949 [MERGE] forward port of branch 8.0 up to e27744d 2015-03-18 14:05:02 +01:00
Antony Lesuisse 7dbd495985 [IMP] website: server actions allow trailing paths 2015-03-18 13:10:58 +01:00
Goffin Simon 01c983919c [FIX] website: to keep the spaces around the translations
We keep the original spaces around the translations to avoid
missing spaces between words.
2015-03-16 17:03:50 +01:00
Goffin Simon 5733ee865e [FIX] website: no interpretation for "\2060" on mac with google chrome
On mac with google chrome, the character "\2060" has no interpretation
and a small square is displayed instead.

opw: 630276
2015-03-16 12:37:40 +01:00
Nandan Jani d1d8802a40 [IMP] website_quote: support printing for the customer
Backport of master commit ed9f8fdbb4
2015-03-13 16:55:11 +01:00
Olivier Dony 7eec97a584 [FIX] website, mass_mailing: restore original FieldTextHtml widget -> FieldTextHtmlFrame only for mass_mailing
The new `summernote in iframe` version of the
FieldTextHtml widget is not ready for prime time
yet.
Usability is not very good when used as a replacement
for the previous html editor, especially in email
composer windows, and initial loading is very slow.

For now we only enable it as FieldTextHtmlFrame for
mass_mailing templates, where isolation of the
style is important (so that recipients receive the
exact same result as was displayed on screen, without
side-effects caused by backend/frontend style)

In master the summernote version will be improved
and the old CLE version will be dropped completely.
2015-03-13 13:44:06 +01:00
Christophe Matthieu 513d1a26d1 [FIX] summernote: Summernote change the native id of the editable area if a script use a unique id, summernote break the default comportment. Replace id by data-note-id to set the editor 'id' 2015-03-09 16:33:03 +01:00
Christophe Matthieu fb8da05e42 [FIX] website: snippet editor: Many2one autosearch a location for the event is working, but result is not saved 2015-03-09 11:26:17 +01:00
Christophe Matthieu c9d7803675 [FIX] website: backend editor don't display the default value and don't exit the fullscreen mode when click on escape 2015-03-06 10:25:31 +01:00
Christophe Simonis bc2fd0515b [MERGE] forward port of branch 8.0 up to 017f346 2015-03-04 15:16:10 +01:00
Goffin Simon 092c64b76f [FIX] website: translations for qweb templates not applied.
-Website.tours must be loaded after the translation data:
"website.ready" before the tour ensure that the translations are loaded.

-Translations for qweb templates not applied:
Translate all text nodes in qweb templates when translation data
are loaded.

-Add some translations in website tours.

opw:619786
2015-03-03 16:05:34 +01:00
Thibault Delavallée 4b649af00d [FIX] website: settings: avoid crashing when no website_id
given in the onchange.
2015-03-02 16:35:31 +01:00
Goffin Simon fc481c5e3a [FIX] website: quote slider not editable.
Quote slider must be editable when the snippet is dropped
in a page.

opw:628510
2015-03-02 16:25:58 +01:00
David Monjoie 1e8932f769 [IMP] website: extracted language selector in its own template
It is a technical part of the website, it actually acts like a "Language Widget", I don't see any good reason to not extract it into its own template.
I needed this for a designer who wanted to move the language selection elsewhere, and I realized it was not already in its own template. Worse, we already had a duplication of this content in our own module!
I need this in saas-6 to get rid of the actual third duplications of this content which exists in 8.0 (counting the theme).
2015-03-02 14:09:55 +01:00
Christophe Simonis a8a9265340 [FIX] website: backend html widget: only use an iframe if field is not readonly 2015-03-02 13:43:52 +01:00
Olivier Dony 0c483d3f43 [FIX] typos in last forward-port 2015-02-24 15:50:13 +01:00
Olivier Dony 95a2f8b121 [MERGE] Forward-port latest bugfixes from 8.0 up to cbb51610ee 2015-02-24 14:47:19 +01:00
Goffin Simon cbb51610ee [FIX] ir.ui.view: qweb translations: allow looking up translation in parent template
- Translations lookup normally uses the namespace of the current
QWeb template, after merging all inherited views.
But when a QWeb template is "cloned" by a child view using
inheritance with `primary` mode, the translations are more
likely to exist for the original (parent) template, and would not
be found when using only the "child" namespace.
This patch adds support for looking up each translation
also in the parent namespace in this case, if none was found
for the child template in the first place.

- ir.translation's _get_source() now supports a list of res_id
to search for, in addition to a single res_id

- Also moved the logic of routes /website/customize_template_get
and /website/get_view_translations to the ir.ui.view model where
it belongs.

opw: 615241

Closes #5325
2015-02-24 14:01:34 +01:00
Christophe Simonis 3792f502d7 [IMP] website: keep id in inherited view.
This help migration as some (not yet updated) inherited views still
hook on this id.
2015-02-23 18:21:41 +01:00