Commit Graph
6329 Commits
Author SHA1 Message Date
Goaman 60e165e60b [IMP] wesbite: add comment in tour
closes odoo/odoo#60784

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2020-10-27 15:29:28 +00:00
Goaman 1981f175a6 [IMP] website: remove unused reference 2020-10-27 15:29:23 +00:00
Jeremy Kersten 0a948f67ec [FIX] website: fix recursive list in _enumerate_page
Each time the function is called, we append to the same persistent object.

closes odoo/odoo#60808

X-original-commit: d8790cce3e4a23d2b6b1c32d48d5df14fbdcfd33
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-27 10:23:25 +00:00
Jeremy Kersten 71f42e274d [FIX] website: favicon use STATIC_CACHE_LONG that is a real year
365 * 24 * 60 is not a year, but year/60 ;)
While we fix it, it is the good time to change and use the dedicated
http.STATIC_CACHE_LONG that exists for it.

closes odoo/odoo#60807

X-original-commit: bb4d5bebaf926cbdf6f8842cd1ca0e5850523bf5
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-27 10:22:56 +00:00
Benjamin Vray 8ca7aa5d3c [FIX] website, portal: fix language selector inline
This commit align vertically the copyright text and the inline
language switcher items. This commit also add a padding on
list-inline-item in the language selector. Because before this commit,
there was no space between lines if the list was to be displayed on
multiple lines.

Part of #59581

task-2312878

closes odoo/odoo#60527

X-original-commit: a8c4ca8a942d94557db5b95f42344fee71faf6e2
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-22 13:06:15 +00:00
Benjamin Vrayandqsm-odoo 97f33eca52 [FIX] website: hide the add language separator if it is the last item
Before this commit, the add language separator was visible at the end
of the inline language switcher even if the add language link was not
displayed.

Part of #59581

task-2312878

X-original-commit: cf34f10a54390d2ecd86d47de90c221d79ed5873

Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-10-22 13:05:52 +00:00
Swapnesh Shah 0995755126 [FIX] website: default focus of searchpanel
Before this commit, Going to Website --> Configurations --> Apps was displaying Modules related to Website only but the default focus on searchpanel was on "All". (https://tinyurl.com/y5tw5uob)

Now, The default focus of searchpanel is on Website Category. (https://tinyurl.com/y6984hl7)

closes odoo/odoo#60485

X-original-commit: 0e2c55eec07600585121acf560ec8ffebde442e3
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-21 22:06:35 +00:00
Benjamin Vray 49aad4ede1 [FIX] website: fix carousel blockquote width on mobile
Before this commit, the width of carousel blockquotes was too small to
display correctly on mobile device.

Part of #55857

task-2318526

closes odoo/odoo#60439

X-original-commit: 12a68cc0f057f6febc70fdc6785a1bcec9f282f3
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-21 11:58:34 +00:00
Benjamin Vray 677f9c235f [FIX] website: fix small layout issues in carousel on mobile
-Remove arrows on mobile because it's too big and hide the content.
 User will use the touch screen to make the carousel move.
-Bordered style: Reduce the borders on mobile.

Part of #55857

task-2318526

X-original-commit: 86cd5e898b482192e50a20d0b6ef2a9b02b8301f
2020-10-21 11:58:33 +00:00
Jeremy Kersten 5e9748cc82 [FIX] website: remove searchbar from kanban theme
closes odoo/odoo#60073

X-original-commit: c10cc2cfb46d34e6a119859dc1bc34ce8229c1da
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-15 10:58:30 +00:00
Benjamin Vray f1d5e73d5e [IMP] website: reorder carousel style option list
task-2318526

closes odoo/odoo#60425

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-21 10:02:19 +00:00
Benjamin Vray 54582e8205 [IMP] website: replace the default website logo image
This commit replace the default website logo image by a new one. This
new website logo image works with any background color thanks to its
white background.

task-2362012

closes odoo/odoo#60369

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-20 11:52:21 +00:00
qsm-odoo f0781b794f [FIX] website: restore footer slideout effect on Firefox
For some strange reason, the footer slideout effect was not working on
Firefox anymore. The height of the footer is not understood by Firefox
sticky implementation which it seems to not understand because of the
combination of 3 items: the footer is the last :visible element in the
`#wrapwrap`, the `#wrapwrap` uses flex layout and the `#wrapwrap` is the
element with a scrollbar.

As neither of the last two items can be changed, this commit fixes the
problem by adding a pixel div element in the DOM after the footer on
page load, if the slideout effect is enabled. This is obviously not
ideal but solves the problem while waiting for another solution.

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

closes odoo/odoo#60361

X-original-commit: c8fc4a113256db92acd1991280d130c1f0fb628e
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-20 10:54:27 +00:00
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