Commit Graph
6316 Commits
Author SHA1 Message Date
Sébastien Geelen (sge) 952d3fc954 [FIX] web_editor: update header change position to work with JW
closes odoo/odoo#60322

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2020-10-20 08:01:00 +00:00
Benjamin Vray 2df090dea7 [FIX] website: equalize top and bottom paddings in items snippet
Before this commit, top and bottom padding were not the same in the
items snippet. We also removed horizontal paddings on the section to
keep the snippet columns aligned with other snippets.

task-2312878

closes odoo/odoo#60307

X-original-commit: 22a9a3de3c205709597ab95d8987466bd5579c86
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-19 17:04:26 +00:00
Sébastien Geelen (sge) 86b004725c [FIX] web_editor: remove box shadow on the #wrap container
closes odoo/odoo#60169

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2020-10-16 12:17:07 +00:00
Swapnesh Shah b07f2d31d2 [FIX] *: update document links
Before this commit, links to the documentation were referenced the
previous version, 13.0, instead of the current one, 14.0.

Eventhough there is a redirection done by NGINX of a "versionless" URL
to the latest one (e.g. /documentation/user/general/auth/google.html
-> /documentation/user/14.0/general/auth/google.html as of today), the
goal is to keep links owrking for users that will still be using the
14.0 in three years (and should not endup on the 17.0 doc).

closes odoo/odoo#60228

X-original-commit: 7ac08486d91d0ff0151abeeda057ffa6beda72e8
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-19 07:03:01 +00:00
Adrian Torres b7017e58cc [FIX] *: adapt business code to function-redefined error
This commit adapts the business code in which
class/module/function/method redefinition took place so that it no
longer happens and the pylint test passes.
2020-10-16 12:56:52 +00:00
Thanh Dodeur 52a7772317 [IMP] website: removes google map's unclear message
This commit remove the unclear message from the 'Contact Us' page,
as it could only appear when the google map option is not enabled.

task-2346193

closes odoo/odoo#58479

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-16 17:22:46 +00:00
Benjamin Vray b55cf76cf7 [FIX] website: remove left margin on mobile in showcase snippet
Part of #58552

task-2312878

closes odoo/odoo#60197

X-original-commit: 50f86acd2cc541a5984ae9545243da17703ed83d
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-16 16:31:09 +00:00
Benjamin Vray da4735e4fd [FIX] website: center images in columns in references snippet
Before this commit images were not centered in the columns of the
reference snippet. So in small device, images were left aligned.

Part of #58552

task-2312878

X-original-commit: f6aa2ec8f7aca81138ae451ebde3dba9586d78a3
2020-10-16 16:31:08 +00:00
Benjamin Vray 2fc1ae443c [FIX] website: add padding in masonry snippet column
Before this commit there was no padding on masonry snippet columns
so in mobile device the titles touched the top border of colmun.

Part of #58552

task-2312878

X-original-commit: 82dd37beeb24addd90e756e34ccff5893127168b
2020-10-16 16:31:08 +00:00
Benjamin Vray dac1894d42 [FIX] website: hide horizontal scrollbar in hamburger menu
Before this commit, when a vertical scrollbar appeared in the collapse
navbar menu, the horizontal scrollbar also appeared.

We added overflow-x hidden on navbar and navbar-collapse for never
again display this horizontal scrollbar.

task-2312878

closes odoo/odoo#60187

X-original-commit: 8a889277d8fa0af8498964e264c781424f79e3d8
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-16 14:56:27 +00:00
Jeremy Kersten 7659c864c8 [FIX] website: theme selector, no primary link
Before this commit, the close button in enterprise version was primary (green).
Now we make it black to avoid to have this button like a CTA, and in the same
time, while we have already hacked all this kanban view, we continue changing
the active breadcrumb to a nearly black

closes odoo/odoo#59551

X-original-commit: 481454e18e6cb1c5da317e12c820975a07d39411
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2020-10-08 17:17:08 +00:00
SEINLET Nicolas 5a03cc64d3 [IMP] website_visitor: avoid double indexing
unique constraint create an btree unbique index:
``` # \d website_visitor [...] Indexes:     "website_visitor_pkey"
PRIMARY KEY, btree (id)     "website_visitor_access_token_unique" UNIQUE
CONSTRAINT, btree (access_token)     "website_visitor_partner_uniq"
UNIQUE CONSTRAINT, btree (partner_id) ``` removing index=True avoid this
double indexing.

closes odoo/odoo#60120

X-original-commit: efb33e783bd04d542009ef0f57eba6a4aacbca65
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Signed-off-by: Nicolas Seinlet (nse) <nse@odoo.com>
2020-10-15 15:50:31 +00:00
qsm-odoo c7f28395af [FIX] website: show the correct value for hoverable dropdown option
Before this commit, the hoverable dropdown option was broken because
we changed the option selector to the navbar element instead of the
header element. But we forgot to care about the data-select-class
which adds a class on the header. This commit fixes the issues by
changing the $target back to the header element for the related option
as the fact it is linked to the navbar element is only so that the
options appear in a different section, on navbar click.

Part of https://github.com/odoo/odoo/pull/60031
task-2312878

closes odoo/odoo#60031

X-original-commit: e1f8d549895cd9c459e6350430f30d541d02838a
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-15 08:51:01 +00:00
qsm-odoo bd5b19023b [FIX] website, *: restore navbar options for 'Boxed' header
*: web_editor

The selector targeting the navbar for the related editor options was
not correct to target the navbar of the 'Boxed' version of the header.

Part of https://github.com/odoo/odoo/pull/60031
task-2312878

X-original-commit: 6a4587022ced3e1d72ff8c34a64c7a39e7572520
2020-10-15 08:50:52 +00:00
xO-Tx afa80ec149 [FIX] website: fix invisible parallax snippet issue
When the height not forced (50% or 100% screen's height), the snippet
simply disappear if there is no content inside (default).

The 4e220bf commit makes parallax snippet empty by default and the
main goal of a8f0cee was to make "DRAG BUILDING BLOCK HERE" placeholders
appear only on drag, that's why we need to add a "min-height" for parallax
to keep it visible when the "Height" selected is auto.

task-2327025

closes odoo/odoo#60032

X-original-commit: f019cd677e68312f90604be6abd04a1b1755ae4d
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-14 16:45:10 +00:00
6d6f42f489 [REF] website: adapt to new jabberwock editor
Co-authored-by: Nicolas Bayet <nby@odoo.com>
Co-authored-by: Sébastien Geelen <sge@odoo.com>
Co-authored-by: Antoine Guenet <age@odoo.com>
Co-authored-by: Christophe Matthieu <chm@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
2020-10-14 10:29:11 +00:00
Goaman c469e9bc5d [REM] web_editor,website: empty summernote files
Summernote will be replaced by the new Jabberwock editor.
2020-10-14 10:29:06 +00:00
Benjamin Vray 294142bdbf [FIX] website: disable overlay on arrows in gallery snippet
Before this commit it was possible to activate the overlay of the
arrows of the gallery snippet (with themes because of animation
options)

task-2312878

closes odoo/odoo#59973

X-original-commit: 81a00e3469f93cb4686c92db5695316db92eb84c
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-14 10:34:53 +00:00
Jeremy Kersten 550d2935bd [IMP] website: support generic website for dynamic snippet filters
Made the website_id non mandatory on website snippet filters and adapted
the fetching route so that it interprets an unspecified website_id as
the filter being available on any website.

Before this commit website snippet filters had to be limited to one
single website.

After this commit website snippet filters can be made available on all
websites by setting their website_id to no value (this is the new
default of the pre-defined filters).

https://github.com/odoo/odoo/pull/59831
task-2355369

closes odoo/odoo#59831

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-13 13:09:45 +00:00
xO-Tx 04be44fa47 [FIX] website: fix theme loader opacity
The goal of this commit is to prevent the theme install/update
loader from inheriting the opacity property from container by
setting a background-color with level of transparency.

task-2312878

closes odoo/odoo#59887

X-original-commit: 1e7424579ba7b59c9bc7a4972b10403610f720cb
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-13 14:59:08 +00:00
Benjamin Vray f937e602a7 [FIX] website: fix menu direction of header dropdowns
Before this commit, the menu direction of header dropdowns was
related to the window width but it was wrong because of the right
panel. We also enable it in editor mode.

task-2312878

closes odoo/odoo#59846

X-original-commit: ced500e9bcbb5c84033463689d135ad4c7dc4f39
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-13 11:03:06 +00:00
qsm-odoo 7cc65665ba [FIX] website: remove useless specific scss for quotes carousel
This reverts commit [1] which was fixed the right way and generically
with [2].

[1]: f011c9aacf3a3010c436d4e4f408cd9ae265de1b
[2]: https://github.com/odoo/odoo/commit/9c08e119b125b82e2c42dc944920dd8a96789e25

closes odoo/odoo#59807

X-original-commit: 281edf192efcf5b3c6c045942f75620af9346501
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-12 17:46:34 +00:00
Benjamin Vray e42dcfba36 [FIX] website, *: keep logged user buttons outside the autohide menu
*: portal

The dividers were removed with the new header templates but we still
needed them to know which items do not need to be folded in the
auto-hide menu. Instead of adding these dividers again, we added a new
class for these elements.

part-of: #59640
task-2312878

closes odoo/odoo#59804

X-original-commit: 59584974aa891b1182164adac3d3563d882bcfd7
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-12 17:45:22 +00:00
Benjamin Vray c74deb951d [FIX] website: enable autohide menu in editor mode
Before this commit, autohide menu was disabled in editor mode. This was
thus not really wysiwyg for users anymore.

part-of: #59640
task-2312878

X-original-commit: 969aa3dc11061254c52cf06f0b96d36192d61d40
2020-10-12 17:45:22 +00:00
Laurent Stukkens (LTU) 0ef25d19bc [FIX] website,website_sale: HTML escape dynamic snippet
Issue
    To do on Community:
    - Install website_sale (eCommerce)
    - Go into Website app
    - Navigate through Product/Products
    - Edit 'Customizable Desk (CONFIG)' and add '&' and/or '<' and/or '>'
      characters into the name
    - Save
    - Go to the Website app Dashboard and click on 'Go to Website'
    - Click on 'Edit' button
    - Drag and drop the 'Dynamic Product' snippet into the website
    - Click on the block 'Your Dynamic Snippet wil be ...'
    - In the right panel, in the 'Dynamic Product' snippet options,
      chose a 'Template' and a 'Product Category'

    A traceback is shown

Cause
    the '&' character crashes lxml.etree.fromstring

Solution
    ensure no '&' is sent to lxmx.etree.fromstring by using
    odoo.tools.html_escape (in order to ensure no other problematic
    characters are sent to the front) on the field values except when
    not applicable (widget rendering with record_to_html should not be
    escaped).
    It is important to note here that this is applicable
    to action servers that are used by the dynamic filter.

opw-2357027

closes odoo/odoo#59805

X-original-commit: f91422115c09be484f2868347566b6392ed0effd
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-12 17:45:45 +00:00
Thanh Dodeur a4975d8a4a [IMP] website: improves the menu edition
This commit allows user to edit other menus by clicking on them
the same way the global menu is edited.

task-2272226

closes odoo/odoo#55881

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-08 09:14:24 +00:00
David Beguin 4c9e39cfbd [FIX] website: get visitor tz directly from cookie
Since tz is now (from 6eb4762fee) added to the client cookie,
visitor timezone can directly be set when creating the visitor, using the
request.

Jstz can be removed as even for module in ENT that used this lib,
we can get the timezone using Intl lib instead.

This will also reduce the number of request made only to get visitor's
timezone.

This commit reverts part of 17e8402523
Linked ENT PR: 12963

Task ID: 2333825

closes odoo/odoo#59501

X-original-commit: 3d9a2de3575777c87327691319d89f9de6b8eada
Related: odoo/enterprise#13918
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-10-08 11:45:39 +00:00
qsm-odoo f05866aef3 [FIX] website: solve long dropdown menu problems in navbar
Following [1]. The mentioned commit selectors were to be simplified and
actually did not solve the problem in mobile affixed menu. Also,
targeting "o_affix_enabled" to target the non-affix menu was wrong since
when there is no affix menu, no header has the "o_affix_enabled" class
as its names indicates it. So the mentioned commit fixed half of the
problem and only when the website used the affix menu feature... Let's
hope this new commit fixes everything.

[1]: https://github.com/odoo/odoo/commit/21959599d1c25321865afabe7f70191efdda154e

closes odoo/odoo#59652

X-original-commit: 533a4db8efdf2b16f012e3c9253ae2abc88a344c
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-09 13:54:53 +00:00
DramixDw d2e6015ce0 [IMP] website: make rvp and countdown closer to wysiwyg
Replacing 'in page' message for the "RVP" and the
countdown snippets so that we avoid to display some element that won't
be there on the saved page.

task-2261649

closes odoo/odoo#51632

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-09 15:22:05 +00:00
Benjamin Vray 69a942d363 [FIX] website: fix option to open mega menu dropdown on hover
Before this commit, the option to open dropdown on hover did not work
with mega menu.

task-2312878

closes odoo/odoo#59625

X-original-commit: 9b3b1c623867d3618220d8bd8a729701ae46448b
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-09 11:54:10 +00:00
Romain Derie e38e64b36f [FIX] website: prevent redirect loop on / if no homepage
Since 3d65424708d, if the homepage does not exists (no page with '/' as URL,
no page set as homepage), it would loop between / controller and _serve_page.

task-2250381

closes odoo/odoo#59548

X-original-commit: 07b701c581bd960bed42fcf97fae0dfed0332656
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2020-10-08 16:32:15 +00:00
qsm-odoo e10913daf7 [FIX] website: allow transparent menu to work with hamburger templates
For those templates, the transparent option was broken at some point:
we have to detect the hamburger is opened so that it is not transparent
anymore when opened.

Part of https://github.com/odoo/odoo/pull/59349
task-2327741

closes odoo/odoo#59471

X-original-commit: c3524b1cdc63eae0d30d8f435e8bb9a541c88f06
Related: odoo/design-themes#396
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-08 08:57:20 +00:00
qsm-odooandCocographique 65e38a66fd [FIX] website: fix header position in 'Hamburger Full' template
Part of https://github.com/odoo/odoo/pull/59349
task-2327741

X-original-commit: 5b0797e450cfcd620d72b58bc82689936bb5b71d
Co-authored-by: Cocographique <nmi@odoo.com>
2020-10-08 08:57:20 +00:00
Cocographique a763c880a4 [FIX] website: add missing styles for social media icons
Part of https://github.com/odoo/odoo/pull/59349
task-2327741

X-original-commit: 68e86e7838a9c158b0c9e6191890de47f5e671f7
2020-10-08 08:57:19 +00:00
Benjamin Vray 7d9c8e9779 [FIX] website: hide "add images" button when not in edit mode
Hide the add images button of the gallery snippet when not in edit
mode.

task-2312878

closes odoo/odoo#59470

X-original-commit: abc61b9e50f7006805dfd038d937464eeb5d424a
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-08 08:56:58 +00:00
qsm-odoo 5a594fd8a7 [FIX] website: properly set button font family for navbar buttons
Since 13.0, the website menu can contain text and buttons through
mega menus, which created inconsistencies on the way the "navbar font"
configuration works. Indeed, when setting the "button font", navbar
buttons were updated too... except if that "button font" was equal to
the "text font", in that case those buttons used the "navbar font", so
not logical at all.

This commit solves the problem by only using the navbar font to
style bootstrap nav links, which is the common content of mega menu
snippets anyway but this has a side-effect: text-in-navbar font
may change from navbar font to text font which is acceptable as the 14.0
was released very recently. Sorry for the inconvenience if any, but it
felt important to fix the problem that way for the new static content
of header templates.

closes odoo/odoo#59459

X-original-commit: 31bfb5075063070d24a607ed47da6bdd8207aa5a
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-08 07:45:14 +00:00
stefanorigano (SRI) a9f20dcbb9 [FIX] website: increase footer home-icon readability
Ideally we should let background/text-color adapt to the current
color-preset. Since icons bg are forced to `$gray-100` though, this
commit will just increase readability allowing user's customization

task-2327741

closes odoo/odoo#59303

X-original-commit: 15ac3a2f08ed400ec5f64b40b7a8f5be04c46513
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-06 15:23:39 +00:00
Thanh Dodeur c1393a713c [FIX] website: matches icon apps to the app switcher
This commit makes it so that the icons of the website new-content
menu are closer to the icon of the app they are related to.

task-2329291

closes odoo/odoo#59236

X-original-commit: 4565a65e99a6dae323fd3d7ddf2010fea102bb91
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-06 10:17:32 +00:00
qsm-odoo 2e767ffefa [FIX] website: improve menu loading effect
Long story short: that menu loading effect was introduced with version
12.0 for a technical reason: allow menu items to collapse into a
dropdown when there are too many. For that, during loading their height
is forced to 0 and they are hidden so that they do not make the header
grow when going on multiple lines.

Since 13.0, the lazy loading made this effect to be too delayed... but
fixing that would make another flickering appear due to the logo image
loading. This thus cannot be fixed at the moment.

However, since 14.0 there are several menu templates and some make the
effect look really ugly. Like the vertical header which has a tiny
empty header which then grow with the menu items on loading. To mitigate
the effect, this commit replaces the "height: 0" trick by forcing the
menu items on one line during loading. They however still stay hidden
during this time to avoid the logo menu flickering, for now.

Part of https://github.com/odoo/odoo/pull/59136

closes odoo/odoo#59148

X-original-commit: 1edf40e76be4a4595849c4c9dab692984e372c46
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 16:27:48 +00:00
qsm-odoo e8ed7e6880 [FIX] website: prevent button to flicker in navbar
The navbar may now have static content which can be on the right of the
menu items. Like for the default navbar which has a button on the right.
When they are a lot of menu items, the static content is shrinked...
before the auto-hide extra menus feature is done. This flickering can
be reduced by forcing the navbar buttons to stay on one line.

Part of https://github.com/odoo/odoo/pull/59136

X-original-commit: 5c9d28ac9a1307e5786f0909d5135e82f420274d
2020-10-05 16:27:48 +00:00
qsm-odoo 6c3131d4be [FIX] website: always show border radius config for cards
The border radius configuration is available on elements whose
background color or border is set. For cards, it should always be
available since the background color option is different there and there
is no way to remove the color entirely anyway.

closes odoo/odoo#59089

X-original-commit: 2d860cdddf29b9fbd1a5401082c9f743028d2fb5
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 10:59:00 +00:00
Martin Trigaux 2683184aa6 [FIX] *: fix all the typos
And other reported English mistakes in source string
Courtesy of Transifex translators

And remove leftover from gengo

closes odoo/odoo#59022

X-original-commit: 26efc84c5cac47a2cc83d7b084f8b71528fec6c7
Related: odoo/enterprise#13781
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-05 09:36:34 +00:00
Goaman ad2f0eff5e [FIX] website: load website.utils only once
When in `debug=tests` and in unidentified moments in `debug=assets`,
there is two loading of website.utils which was throwing an error.

closes odoo/odoo#58861

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2020-10-02 08:52:41 +00:00
Goaman 55f10ac9a0 [IMP] web_editor: add assets for jabberwock editor
This commit lays the groundwork for the new editor by adding empty files to the assets in
order to change them later on. The new editor is not stable enough to be merged right
now, but delaying it to 15.0 would be problematic as the current editor has many bugs that
we are unable to fix because of how summernote interacts with browser-dependent code as well
as all the hacks that were done on top of it for Odoo since 8.0.
2020-10-02 08:52:40 +00:00
Antoine Guenet e215422bc0 [REM] website: remove the folded list snippet 2020-10-02 08:52:40 +00:00
Nicolas Martinelli 481d1393e7 [FIX] base_setup, website, tests: remove Gengo references
The Gengo modules were removed with:
https://github.com/odoo/odoo/commit/b38b72e456a
https://github.com/odoo/odoo/commit/9b1f0962baa

But there are still references to it.

opw-2349904

closes odoo/odoo#58938

X-original-commit: a30edba504aa1b62aa02092112a55bca65cf9a0c
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-01 17:34:27 +00:00
Martin Trigaux e79531c136 [I18N] *: export 14.0 source terms
Including demo data this time

closes odoo/odoo#58862

X-original-commit: 575abde110acb3d12b25f177a863374becef0894
Related: odoo/enterprise#13705
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-29 17:52:02 +00:00
Benjamin Vray fcd5e6896c [FIX] website: fix table of content navbar links when scrolling
Before this commit active navbar links were not correctly updated with
the scroll position.

task-2312878

closes odoo/odoo#58871

X-original-commit: a0ef5b0ea5e6025d6121849c2c98c077d86e237b
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-09-29 21:00:41 +00:00
Benjamin Vray c73b03a663 [FIX] website: fix snippet blockquote with display cover
Adapt the snippet with the new color filter layer and fix the padding

Part of https://github.com/odoo/odoo/pull/58850
task-2312878

closes odoo/odoo#58865

X-original-commit: ec880af6aa091ba5f5cc39e754c7266d2488cba7
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-09-29 18:36:12 +00:00
Benjamin Vray 4aa8e4913a [FIX] website, *: fix background layer elsewhere than in a section
*: web_editor

Before this commit, the elements (other than section) and with the
background layer options avaible (shape, color filter, etc.) did not
have the relative position added on their children. So all the
children were hidden behind the layer element which is in absolute
position.

Part of https://github.com/odoo/odoo/pull/58850
task-2312878

X-original-commit: 9c08e119b125b82e2c42dc944920dd8a96789e25
2020-09-29 18:36:11 +00:00