Commit Graph
2950 Commits
Author SHA1 Message Date
Yannick Tivisse 42141a5b59 [IMP] website: WidgetWebsiteButton: Add label on website below the publication status 2015-08-31 12:58:44 +02:00
Raphael Collet 12e7039c29 [FIX] website_forum: fix incorrect use of env(...) 2015-08-31 10:56:55 +02:00
Fabien Pinckaers 276065b3f8 [IMP] tour css glitch 2015-08-30 15:21:38 +02:00
Christophe Simonis edeceba7df [MERGE] forward port of branch saas-6 up to 7a768a4
Due to `sale` rewrite (94716a3f14),
the commit 503820acb6 has been partially
ignored (in sale.order.line) and will be rewritten later using new-api.
2015-08-28 15:07:16 +02:00
Christophe Simonis 6d85a9a4b9 [MERGE] forward port of branch 8.0 up to d744923 2015-08-27 18:30:46 +02:00
Christophe Matthieu 46de6789c6 [FIX] website: computeFonts when mediaEditor is called 2015-08-27 18:09:39 +02:00
Christophe Matthieu 877f38e2be [FIX] website: history buttons "undo", "redo" for embedded editor
* use summernote base history when not editing the website,
* fix the history buttons "undo", "redo" for embedded editor,
2015-08-27 18:09:39 +02:00
Christophe Matthieu a1194b2bb8 [FIX] website: use and improve ctrl-z/v in forum
* fix erroneous paste edge case,
* improve selection and pasting
* delete and backspace with hr

opw-646222
2015-08-27 18:09:39 +02:00
Nicolas Lempereur 8c77c711ee [FIX] website: escaping saved html content
Escape text nodes changed via the web editor before sending the content
it to the server controller.

It is done since the content is unescaped one time when being displayed,
and it is not done for inline style and script tags (which may be
injected by dropping a snippet) since that would break them.

replacing the solution in cdb900044.
2015-08-27 17:27:39 +02:00
Denis Ledoux ed214a6681 [FIX] website, website_sale: alternative for images
Images should have an alternative
(the "alt" attribute") in order
to be W3C compliant (accessibility).

opw-648135
2015-08-27 15:46:14 +02:00
Jeremy Kersten 11d09a427f [FIX] website: editor - don't try to load ico and video in only_images mode 2015-08-26 15:33:35 +02:00
Christophe Matthieu b44749f8d5 [IMP] website.theme: add event into the on_select arguments to allow the prevent default 2015-08-26 15:31:28 +02:00
Simon Lejeune 5c374313f6 [REF] planner: back again in a modal
fp's request
2015-08-26 14:53:00 +02:00
Christophe Matthieu b90c663702 [FIX] website: two sliders or galleries can have the same id
(because the user can edit separate part like footer or using versioning)

Backport of 394a0c8bb4.
2015-08-25 17:14:55 +02:00
Martin Trigaux 3acaebc7f6 [I18N] list of resource and terms
Remove from the list of translatable modules the modules that do not contains
any term and have empty .pot file.

website: remove duplicated terms from .pot
2015-08-25 13:33:05 +02:00
Martin Trigaux 6c51a80aa4 [I18N] export application terms of all modules 2015-08-25 12:01:38 +02:00
Christophe Simonis 88c0ce0692 [MERGE] forward port of branch saas-6 up to e16d495 2015-08-24 18:19:19 +02:00
Odoo Translation Bot 99931637d5 [I18N] Update translation terms from Transifex 2015-08-23 01:51:13 +02:00
Christophe Matthieu 41e730cbfa [IMP] web_editor: add document into the media editor
User can upload documents and add the link in the page to download it.
2015-08-21 22:06:52 +02:00
Christophe Matthieu d4bae06d08 [IMP] web: use css to display attachment mimetype
Widgets and website display images or display the type with icon like pdf, doc...
2015-08-21 22:06:52 +02:00
Christophe Matthieu 6baf611df1 [IMP] web: create generic controller '/web/content' and '/web/image'
Replace deprecate controllers like /web/binary/image, /web/binary/saveas...
Use ETag for all content with 'unique' option to cache the content if the content is never changed.
2015-08-21 22:06:52 +02:00
Christophe Simonis b2062df319 [MERGE] forward port of branch 8.0 up to 86f98d5 2015-08-21 17:01:17 +02:00
Christophe Matthieu ee0fd9765e [IMP] website: add on_select on Theme object
Called by click or changes with enable or disable.
Called only one time by selection.
Receive all changed inputs.
For e.g.: allow to the designer to use this method to open modal or other option.
2015-08-21 16:01:00 +02:00
Christophe Matthieu 86696c3d70 [FIX] website: can't add a slide in banner 2015-08-21 15:58:53 +02:00
Christophe Matthieu 394a0c8bb4 [FIX] website: two sliders or galleries can have the same id
(because the user can edit separate part like footer or using versioning)
2015-08-21 15:58:53 +02:00
Christophe Matthieu a38e5bee18 [FIX] website: zero index for snippet gallery 2015-08-21 15:58:53 +02:00
Nicolas Lempereur 57c00ebea5 [FIX] website: escape when in a modal don't close editor
When a bootstrap modal is closed via the escape key, the editor would
snatch this keydown event and think we want to stop the editing.
2015-08-21 15:58:52 +02:00
Nicolas Lempereur ca9f0f283b [FIX] website: remove remnants of video autoplay
Video autoplay was removed in commit 9069d0 (december 2014) but there
was still two needless references.
2015-08-21 15:58:52 +02:00
Nicolas Lempereur 0ddb68be81 [FIX] website: manage css margin for resizing
In some case margin could be applied via CSS and not via mb* classes
(e.g several themes with different aspects but a shared snippet). This
commit allow this if custom CSS margin matches a CSS mb* class value
(currently 0, 4, 8, 16, 32, 48, 92 and 128).
2015-08-21 15:58:52 +02:00
Nicolas Lempereur 681195a53e [FIX] website: edge case for slider background
Update the snippet option background "target" and cached
"background data" each time another slide is shown.
2015-08-21 15:58:52 +02:00
Nicolas Lempereur 0934fcc9ad [FIX] website: improve font awesome icons
* don't duplicate fa classes needlessly,
* keep img-* classes which may be used on icons with a background,
* copy overlay when we transform a tag to a span
2015-08-21 15:58:52 +02:00
Nicolas Lempereur b35b21402e summernote: Fix script error when last undo.
from https://github.com/summernote/summernote/commit/715fec370
2015-08-21 15:58:52 +02:00
Nicolas Lempereur 43d378f2e8 summernote: add hasUndo and hasRedo method for pre/next buttons
Since the stack offset of the editing history is hidden, it was not
possible to have next (CTRL+Y) and previous (CTRL+Z) buttons.
2015-08-21 15:58:52 +02:00
Christophe Matthieu f52c046afe [FIX] website: snippet editor call on_clone & on_remove on children 2015-08-21 15:58:52 +02:00
Christophe Matthieu 0c1f6f7092 [FIX] website: double enter in blockquote & pre = new line outside 2015-08-21 15:58:52 +02:00
Xavier Morel 2ea5c3aeef [IMP] restrict modules to system_group
* listing of modules in website already bypassed session user
* altered authenticated endpoint so it does the same
* sudoed a few read accesses & name_get in groups
* other accesses are list/form views, menu only accessible to
  system_user
* new-API-ified some calls & unified listing of installed modules
2015-08-21 12:59:06 +02:00
Yannick Tivisse 1617db3337 [IMP] Modules list reorganization to correspond with the app switcher. 2015-08-21 10:44:51 +02:00
Yannick Tivisse 0decfd94d1 [IMP] __openerp.py__ files : remove all occurence of authors and website
where it was 'Odoo SA', 'OpenERP SA', 'OpenERP s.a.', 'OpenERP SA', 'OpenERP'
      or 'http(s)://openerp.com' or 'http(s)://www.odoo.com'
2015-08-20 16:15:59 +02:00
Ronak Baxi 393f136509 [IMP] *: Uniformize all modal footers
The main button has classnames btn btn-primary.
Other buttons have classnames btn btn-default.
No more 'or' between the buttons.
2015-08-19 08:10:45 +02:00
Simon Lejeune cd80cb424e [REF] planner: possibility to hide title in the page
Wet let the dom as it is used by the planner implementation. Hide all
the titles of the end pages.
2015-08-18 17:57:38 +02:00
Christophe Matthieu dd4566de37 [FIX] website: remove col-md-12 obsolete bootstrap fix 2015-08-17 10:13:00 +02:00
Christophe Matthieu 384d717dcd [FIX] website: remove col-md-12 obsolete bootstrap fix 2015-08-17 10:12:15 +02:00
Odoo Translation Bot 4359f65522 [I18N] Update translation terms from Transifex 2015-08-16 01:58:03 +02:00
Christophe Simonis 73e652818b [MERGE] forward port of branch saas-6 up to 8d95f6d 2015-08-15 16:57:35 +02:00
Christophe Simonis 8d95f6dcdf [MERGE] forward port of branch 8.0 up to 19b5ba2 2015-08-14 17:26:04 +02:00
Denis Ledoux 19b5ba2b08 [FIX] website: condition to flag a menu as active in the top menu
1. A menu with `/page/website.***` should be flagged as `active`
if the current url is `/page/***`. This is a retro-compatibility
patch for c9d41679fb, so the
menu is marked as active without having to rename it, by
removing this `website.` thing.

2. If you defined two menus with as url `/page/test` and `/page/test2`
Both menus were flagged as `active` when you browsed the url
`/page/test2`, because it started by both menus urls.

Fixes #3059
Closes #3070
2015-08-14 17:11:16 +02:00
Mathias Neef c9d41679fb [FIX] website*: active class in menu
In the top menu bar, the `active` class is set when the
menu url matches the page url (the url in the browser url bar)

A while ago, we made so all urls
`/page/website.***'
were automatically redirected to
`/page/****`

Therefore, if the menu url still contains this `website.` prefix,
the active class wasn't set on it, while it should.

Fixes #3059
Closes #3070
2015-08-14 17:10:46 +02:00
qsm-odoo 532d4243a6 [IMP] web, website: Split base.xml into base.xml/base_common.xml
This allows to always have the templates in base_common.xml in the
frontend.
2015-08-14 13:56:51 +02:00
qsm-odoo 07c020d7e5 [IMP] website: PDFJS lib - GitHub import
* Import src, web and external directories from PDFJS GitHub repo
2015-08-14 13:54:49 +02:00
Antony Lesuisse 4feb82dd49 [REM] website: kanban helper
website_project has been removed and this helper is now useless.
2015-08-14 13:33:31 +02:00