Commit Graph
3567 Commits
Author SHA1 Message Date
Jeremy Kersten f0463a3e1d [IMP] web_editor, website, website_sale: add zoom option for t-field image
web_editor Qweb: Add 'zoom' option for widget image
    <span t-field="product.image_small" t-options="{'widget': 'image', 'zoom': 'image_medium'}" />

website: Add Zoom code to be standard for all website module

website_sale: add zoom on Main product image
2016-09-21 21:29:18 +02:00
Jeremy Kersten ebbe98867e [FIX] website: increase limit in searchpage for menu
In edit menu, search with de demo data /shop, was the 12th results, but limit 9.
We only move the problem to later, but when the user start with the website apps,
it avoid to be lost on first menu creation.
2016-09-21 21:29:18 +02:00
qsm-odoo 9749b93250 [IMP] website, web_editor, mass_mailing: move margin and size options
website -> web_editor so that they are available for mass_mailing.

To allow setting margins on td elements:

As the above mentionned option allows to control the mt and mb classes
on the mass mailing items, the problem is that we would ideally want it
to be functionnal on td element as they are the main part of a mail.
As they don't support margins, there were many options to fix the
problem:
- Add more JS to place the mt and mb classes on children of td element
- Place the option on children of td element and not td element itself
but in that case, the width control of td would imply a lot of parent
option hierarchy, or the width control had also to be adapted to control
children
- Control padding instead of margin. This forces to add lots of
css rules like pt4 pt8, ... (or td.mt4, td.mt8, ...).

The last solution has been chosen. Padding is more supported than
margins in mail client anyway and the css rules will be isolated in
the mail editor anyway. Using td.mt4 instead of pt4 had the advantage
to not require any JS modification.
2016-09-20 13:52:29 +02:00
Martin Trigaux db42c46eb7 [I18N] export 10.0 source terms 2016-09-19 15:38:47 +02:00
Damien Bouvy a9a4863034 [FIX] website: improve ACL support
The dashboard must be visible for non-'group system' users, hence
the sudo call + only display the link to modify the client id
if the user has sufficient access rights.

Small visual correction for live users counter in the dashboard.
2016-09-16 15:48:48 +02:00
Damien Bouvy 904f06f070 [IMP] website: make the website dashboard ACL aware
The Website Admin dashboard displays graphs for sales, analytics,etc.
using a (somewhat easily) extensible js framework.

Unfortunately, this framework is ACL unaware, meaning that it will
completely and silently crash if you are missing any of the required
access rights.

To solve this, extensions must now specify not just a graph name
but a necessary group for it and set the value for this group in
the extension of the backend controller.

This commit also
- make the icon visible for the group 'Website Designer and Editor'
  (not juste the Settings group, which is extremely restrictive)
- make the button to set the Google API key only visible to people
  with sufficient access rights
2016-09-16 11:46:39 +02:00
Christophe Simonis f4fc3985b6 [MERGE] forward port branch saas-12 up to 10cde43 2016-09-16 11:03:50 +02:00
qsm-odoo c64f58358f [FIX] website: refactore parallax snippet (perf / browser compatibility)
* Do not read multiple DOM data on each scroll. Simply read this when
necessary (edition / initialization).
* Throttle scroll event and debounce resize events (-> performance in
edition and navigation improved).
* Do not save useless data in the DOM.
* Have the parallax state consistent if the page undergo other changes
* Simplify DOM structure and LESS
    - Allow to better see how to place snippets inside the area
    - Before this commit, default parallax had different height on
    chrome and firefox
2016-09-15 14:33:07 +02:00
qsm-odoo cd244a40f3 [FIX] website, web_editor: remove born-dead code
This code was introduced in 8.0 and has never been called.
2016-09-15 14:12:50 +02:00
qsm-odoo ee6cbf751e [FIX] website: missing JS module dependency
Commit 3c98c78fc7 removed a JS
dependency by mistake.
2016-09-15 14:12:49 +02:00
qsm-odoo 04e9c94147 [FIX] web_editor: allow to remove image from gallery thanks to remove button
Commit b309f3ab54 made the snippet remove
button always be there by removing the "preventParentEmpty" mixin.
Instead of preventing to remove the only child of a snippet, the system
was changed to remove the parent if this only child is removed. This
also applies on the system which hide the remove button if the child
cannot be dropped anywhere in the DOM.

Unfortunatly the image gallery snippet relied on the remove button to
be hidden for its content images. Indeed, it was implemented so that
the "remove" button is hidden but a "remove image from gallery" was
there in the customize menu. The solution is to remove this option and
copy its behavior on the standard remove button.

Note: this probably was not done before because the on_remove feature
was broken (fixed with commit 5e9ebcfb01).
2016-09-15 11:06:58 +02:00
Denis Vermylen (dve) d655990e3f [IMP] website: data: improve empty homepage message 2016-09-15 10:08:11 +02:00
qsm-odoo ad930d5208 [FIX] web_editor, website: review responsiveness/style of ace editor 2016-09-13 14:43:50 +02:00
qsm-odoo d83f7587aa [MOV] web, website(_slides): move PDFjs lib to web
website_sign is now a backend-only module in enterprise, so it should
not use a website library (even in a static way).
2016-09-13 14:18:31 +02:00
Frédéric Gilson bfc3313bd5 [IMP] website,website_sale,crm: improve planner content 2016-09-12 16:57:15 +02:00
Christophe Simonis 298e2032ea [MERGE] forward port branch saas-12 up to 9f28139 2016-09-09 18:13:31 +02:00
Christophe Simonis 7a02b90e17 [MERGE] forward port branch saas-11 up to dc4d6b6 2016-09-09 15:43:06 +02:00
Christophe Simonis dc4d6b6a7a [MERGE] forward port branch saas-10 up to e1bd405 2016-09-09 15:14:39 +02:00
Christophe Simonis e1bd405d8c [MERGE] forward port branch 9.0 up to af87c57 2016-09-09 11:49:48 +02:00
qsm-odoo 8476d99101 [FIX] website: make the well snippet grow when putting an image in it 2016-09-07 13:00:02 +02:00
stefanorigano e1022f38a3 [IMP] web_editor, website: add colorpicker palettes customizations
* Add the ability to define palettes custom selection.
* Add the ability to define a custom title for the colorpicker dropdown
* Define a custom layout for single (unique) palette layout

* Define overlay color options based on new colopicker for
Cover and Banner text containers

* Define default palettes
2016-09-07 13:00:01 +02:00
qsm-odoo e696def3c5 [FIX] website: properly allow to remove slide from banner snippet
Removing a slide was buggy :
* Removing the last slide left the slide handles (and the user had to
click on remove slide again)
* There was an ugly delay before the removal
* Changing the bg image of a slide was not possible anymore once one
slide was removed
* ...
2016-09-07 12:30:40 +02:00
qsm-odoo 0eafeab183 [FIX] website: colorpicker option for banner snippet 2016-09-07 11:18:04 +02:00
Martin Trigaux fb74fec3f5 [I18N] export 10.0 source terms 2016-09-07 11:08:42 +02:00
Martin Trigaux 05d91ea4e9 [I18N] update saas-11 translations by merging 9.0 and master
Without fuzzy-matching that is too flexible and error prone.
Was matching on wrong source and got translation without '%s'
2016-09-07 09:40:37 +02:00
Denis Vermylen (dve) e9426b03e7 Revert "[IMP] website, doc: replace eCommerce by e-Commerce"
This reverts commit b4d7b7e6dc.
Odoo always uses term eCommerce
2016-09-06 13:55:12 +02:00
Martin Trigaux 6e61ea2256 [I18N] update saas-12 translations by merging 9.0 and master
Without fuzzy-matching that is too flexible and error prone.
Was matching on wrong source and got translation without '%s'
2016-09-06 10:03:09 +02:00
Martin Trigaux e37d0909a2 [I18N] export master source terms
Since the externalidpocalypse
2016-09-05 16:33:43 +02:00
qsm-odoo b6b3e156a0 [IMP] web, website(_quote): move jSignature lib location (website -> web)
The jSignature lib is now used by non-frontend module (at least it
will be in upcoming commits).
2016-09-05 15:01:21 +01:00
Olivier Dony 859d443863 [IMP] *: rename manifest files for v10 naming convention 2016-09-05 11:57:50 +02:00
Martin Trigaux 3efa9d39c6 [I18N] Update translation terms from Transifex 2016-09-05 11:34:17 +02:00
Odoo Translation Bot 9f0d3800cc [I18N] Update translation terms from Transifex 2016-09-04 00:36:28 +02:00
Christophe Simonis 1a77d9d02a [MERGE] forward port branch saas-12 up to 476cb5a0 2016-09-03 23:57:57 +02:00
Denis Vermylen (dve) b4d7b7e6dc [IMP] website, doc: replace eCommerce by e-Commerce 2016-09-02 17:42:42 +02:00
Denis Vermylen (dve) 07a1ed406f [IMP] website,website_sale: improve settings view
rename options, add radio widget
2016-09-02 17:42:42 +02:00
Christophe Simonis 55d2e4b7cf [MERGE] forward port branch saas-11 up to bde7f88 2016-09-02 17:23:34 +02:00
Christophe Simonis 54e5bbdf35 [MERGE] forward port branch saas-10 up to 897b9b8 2016-09-02 16:28:28 +02:00
Martin Trigaux 11812b0b9e [FIX] all: remove external ids fakely from base
Several modules defines records with the external ID `base.foo_bar` while it is
created inside this module (typically menus and groups).
While there is no technical reasons to do so but this may introduce issues:

- these records will not be deleted during uninstall
- if a language is loaded before the installation of the module, it won't be
  translated

The uninstallation will only remove the records with an external id linked to
this module (these would only be removed when removing base).

Installing a language before the module will drop the translations not linked
to an existing external id (as it can not be resolved).

This commit correct all the external ids tagged as from base or other incorrect
modules.
2016-09-02 16:14:26 +02:00
stefanorigano d6ec094aac [FIX] website: remove bg image support for columns in s_cover snippet
The snippet section can have a color or a background. Previous commit
added the functionnality for its innercolumn too... but having a bg
image on top of another one does not make sense, so only keep the
color option for columns.
2016-09-02 14:59:33 +01:00
stefanorigano 2f303acdd0 [IMP] website: change layout of s_references and s_big_message snippets
- s_references
    * Replace demo images (lighter ones)
    * Move title to left
    * Review responsiveness
- s_big_message
    * Add background
    * Use grid system
2016-09-02 14:58:01 +01:00
Christophe Simonis 897b9b8fc0 [MERGE] forward port branch 9.0 up to cb1ae53 2016-09-02 15:19:39 +02:00
qsm-odoo d41ed40c70 [IMP] web, website: adapt tour launching to new system
* The debug manager contains a feature to launch tours, adapt it
to new web_tour.tour system
* The website help menu allowed to relaunch tutorial tour in debug
mode. This feature is not adapted to new tour system and was useless
in the first place (debug mode in frontend is barely used anyway).
-> remove the website help menu and the feature
2016-09-02 12:39:06 +01:00
qsm-odoo 30117517fa [FIX] website: correct snippet structure of .s_title
Commit 744cd64b53 re-added the removed
col system in the title snippet but did not respect the odoo structure
which is section > .container [> .row > .col-*] and put the container
class directly on the section. With this method, when changing the
background of the snippet, only the container part is filled
with background.
2016-09-02 10:35:24 +01:00
qsm-odoo 48a1eaf792 [IMP] website: make the welcome message fit the whole page height 2016-09-02 10:04:58 +01:00
Fabien Pinckaers 744cd64b53 [IMP] website: usability non-block snippets at the end
[IMP] website: fix tooltip position to avoid horz scrollbar in div
2016-09-01 23:14:43 +02:00
Fabien Pinckaers 76c327a09e [IMP] website: simplify comparisons building blocks 2016-09-01 22:35:48 +02:00
Martin Geubelle e59a7fe3ff [REF] web_editor, website: move ACE editor to web_editor 2016-09-01 17:15:01 +02:00
Adrien Dieudonne 3029857bad [REF] web, website: move jQuery UI Nested Sortable lib
As this lib will be used in the backend, it is moved to assets common.
2016-09-01 14:06:21 +02:00
Raphael Collet 70dec2d896 [REF] registry: now mapping model name to model class 2016-08-31 17:21:59 +02:00
Raphael Collet 75dc39e042 [REF] openerp.http: make request.context consistent with request.env.context 2016-08-31 17:21:58 +02:00