Commit Graph
1613 Commits
Author SHA1 Message Date
sha-odoo 252c50f110 [FIX] website*: correct placement of various tooltips 2015-04-21 11:23:50 +02:00
Christophe Simonis a9471c43b9 [MERGE] forward port of branch saas-6 up to e941c0f 2015-04-17 15:33:00 +02:00
Jérome Maes 6a11f594a8 [IMP] website_slide, website : move the PDFJS library from slides to the website module to allow reusing it in website modules.
This huge library handle PDF file to display them, count their pages, ... Due to its size, the lib is declared in a separated optional bundle who should be called with a 't-call-assets' only on the page it is required.
2015-04-15 14:56:24 +02:00
Christophe Simonis 3206a35aed [MERGE] forward port of branch 8.0 up to 8ac8281 2015-04-13 12:07:58 +02:00
Jeremy Kersten 1971b987ad [FIX] website_forum: fix template to support html minifier 2015-04-10 18:02:54 +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
Christophe Simonis 2a88020c10 [FIX] website: language change selector
Correct lang cookie setting when the main layout has not updated.
2015-04-08 20:14:25 +02:00
Jeremy Kersten a696913364 [FIX] website: ir_http - no redirect for bot and save lang in cookie
Detect most of bots/crawlers to avoid auto redirect. Most bots fetch
with lang en_US, so even if default website lang was not in en_US,
googlebot was redirected to en_US page.

Now we keep also the language selected by user into a cookie.
If cookie exists but lang not in url, we redirect the user into
his preferred language.

Manage special case to allow to change the lang in url to set the
default lang at fly in url and set the cookie...

Many routes are not specified as multilang=False but should be.
With the auto redirection, we need to update these routes to avoid
useless redirects !
2015-04-08 15:39:57 +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 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
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
Yannick Tivisse 981b978a35 [IMP] web: responsive centering of the 'Try to reconnect' banner + color uniformization 2015-03-31 10:06:07 +02:00
Géry Debongnie 54c7eb4403 [FIX] remove forgotten references to variable openerp 2015-03-26 09:22:27 +01:00
Christophe Simonis 2565aa60e0 [MERGE] forward port of branch saas-6 up to c2b4766 2015-03-25 19:14:46 +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 Simonis 5aba579e74 [MERGE] forward port of branch saas-6 up to 42db2db 2015-03-21 15:54:05 +01:00
Aaron Bohy 53a9f6c081 [IMP] Web et al.: ControlPanel extracted from ViewManager
The ControlPanel is still instantiated by the ViewManager.

Changes details:
* web: views.js:
    Code related to views header is extracted from the ViewManager
    to a new Widget named ControlPanel.

    Also uses the headless flag to tell the inner view not to put
    its buttons (use case: kanban) or pager (use case: list) in the
    header as it is hidden.
* web: view_form.js, base.xml:
    Uses the headless flag at initialization of the One2ManyViewManager
    widget instead of extending the ViewManager template (which doesn't
    handle the header anymore).

* web: view_list.js:
    Test on this.options.$pager instead of this.options.$buttons
    when dealing with pager.

    Note: the behavior for list view is unchanged and has a bug.
    If there are more then 80 records to display, only the 80th
    first are display, and as there is no pager, there is no way
    to see the remaining ones. A fix for this would be to use a
    light ControlPanel in One2Many views as well. With this,
    there won't be duplicated .oe-'view'-buttons/sidebar/pager
    anymore.

* web: view_graph.js, view_pivot.js:
    Only render buttons in non-headless mode

* web_dashboard: dashboard.js:
    Fix some references that were broken with ControlPanel extraction

* web_view_editor: web_view_editor.js:
    Extend ControlPanel instead of ViewManager

* Changes in selector of ControlPanel elements in several addons:
    * base_import
    * mail
    * web
2015-03-20 16:17:06 +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
Géry Debongnie 4fdf74fe21 [IMP] web+addons: improvement to module system
The module system needs to know the dependencies of a given module
before executing the function.  This is why the dependencies were
defined once in an array, and then were described one more times in the
call to require.

But a trick can simplify this: the boot function can parse the string
representation of the module and extract the calls to require from it.
It is more work for the processor, but it leads to simpler module
definitions.
2015-03-18 09:23:37 +01:00
Géry Debongnie 996b6571b7 [REF] website: update to the new module system 2015-03-18 09:09:22 +01:00
Hitesh Trivedi f2987ea412 [IMP] website_blog : onboarding. The cover image of a blog post is editable (opacity, color, size, ...). Add a new tour, views improvements and new default images 2015-03-17 09:09:27 +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
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
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
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
Christophe Matthieu 856f03bf9b [FIX] website: when a snippet have a o_not_editable class the contentEditable=false must added automatically. 2015-02-18 12:23:09 +01:00
Christophe Simonis 1b3fb3c4a8 [MERGE] forward port of branch 8.0 up to 222b2d3 2015-02-17 18:54:52 +01:00
David Monjoie 832c3e1393 [FIX] website: soften the selector to find the text image snippet 2015-02-17 08:57:23 +01:00
Christophe Matthieu 8a10204e38 [FIX] website summernote: scroll top when change the style of the text, need ta add the forgotten preventDefault 2015-02-16 13:34:25 +01:00