Commit Graph
5731 Commits
Author SHA1 Message Date
Jason Van Malder b266c58d56 [FIX] website: fix first/last process steps lines not showing after edit
First & last lines are on `i:after`. After editing, the i is replaced by
a span, so the line disappeared.

See https://github.com/odoo/design-themes/commit/cae0a546cb8e671cc2797bf975413bac746a2b08
which is the original themes commit.

opw-2177464

closes odoo/odoo#44082

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-28 11:00:42 +00:00
qsm-odoo 766e43a0d3 [FIX] website: prevent duplicate of facebook snippet after CTRL+Z
See https://github.com/odoo/odoo/commit/eb4aac3afaceb20c745f3bae0dd5142c1d2a2e1e

task-2117636

closes odoo/odoo#44048

X-original-commit: a00d095ab9d8fc30c78fcaf17c0e5b66a3c04bb0
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-28 09:46:42 +00:00
Swapnesh Shah ba8dd4d215 [IMP] website: Move sequence field to first
Before this commit, `sequence` field was in the last column of List view which is not Ideal for `widget="handle"`
Now we display `sequence` first on the list view

closes odoo/odoo#43969

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-01-26 17:21:45 +00:00
qsm-odoo d9c98c429e [REF] website: fine-tune existing snippets
- Remove s_comparison title's col
- Rename 'Text Block' into 'Text'
- Make all icons of s_features rounded

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:03 +00:00
qsm-odoo 599b5910f0 [REF] website, *: review xml using old title classes and structure
* website_event, website_forum, website_slides

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:03 +00:00
qsm-odoo 346a7ca5d4 [FIX] website, *: quick review of new snippet thumbs
website_form, website_twitter

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo 09249206ed [MOV] website: add s_product_list snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo 1c2eafaad8 [MOV] website: add s_color_blocks_2 snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo 0307677b1f [MOV] website: add s_badge snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo bc6e2e4983 [MOV] website: add s_blockquote snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo fb9aab745b [MOV] website: add s_progress_bar snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo a74cd7ad4f [MOV] website: add s_text_highlight snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo 34a8199cfe [MOV] website: add s_process_steps snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo add6abe691 [MOV] website: add s_timeline snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo 0f346ae2b5 [MOV] website: add s_showcase snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo 00db26e85e [MOV] website: add s_media_list snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo 56a87813e6 [MOV] website: add s_masonry_block snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:02 +00:00
qsm-odoo f4643cd5ce [MOV] website: add s_numbers snippet from themes repo
Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:01 +00:00
qsm-odoo 5a4edc09d6 [IMP] website, *: prepare theme snippets addition in website
* website_blog, website_event, website_form, website_mail_channel,
  website_mass_mailing, website_sale, website_twitter

+ Reorganize the order.
+ Do not promote apps via snippets when they already are promoted via
  the "New" menu. Also do not promote apps in the same snippet section
  more than once.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:01 +00:00
qsm-odoo 4ca401a855 [REM] website, *: remove s_btn snippet
* website_slides

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
2020-01-24 13:02:01 +00:00
Romain Derie f0a4b7326c [REF] website_mail_channel, *: adapt discussion group to actual snippet
* website

Adapt to current snippet/widget guidelines/hierarchy.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152191
2020-01-24 13:02:01 +00:00
Romain Derie 4357a29fa9 [IMP] website: review 's_share' snippet
Part of Inner Snippets review task. `s_share` should have a list of preset
layouts.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152191
2020-01-24 13:02:01 +00:00
Romain Derie 86e12bf186 [IMP] website: add s_alert snippet default layout options
Part of Inner Snippets review task. `s_alert` should have a list of preset
layout.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152191
2020-01-24 13:02:01 +00:00
Romain Derie e3952f62bc [IMP] website: add ID on snippet option elements
Needed in design-themes to be able to add selector to those elements.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152191
2020-01-24 13:02:01 +00:00
Romain Derie ca7bb63ebd [IMP] website: review 's_hr' snippet
To fit the general look&like of the left panel, the size elements should be
handled with an input to allow full control.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152191
2020-01-24 13:02:01 +00:00
Benjamin Vray 7572cc150d [IMP] website: review snippet tabs
Adding new options that are available through Bootstrap (Tabs or pills
class for nav-item. Alignment, menu horizontal/vertical, etc). Adding a
slide transition option. The snippet becomes also a drag&drop zone.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152185
2020-01-24 13:02:01 +00:00
Benjamin Vray ca5f9ce26d [IMP] website: review snippet parallax
Make the parallax snippet empty (remove the title). Remove the padding.
Add style to the building block with a message to help user to drag
stuff into the snippet.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152185
2020-01-24 13:02:01 +00:00
Benjamin Vray 80c4533eff [IMP] website: review snippet company team
Add padding top and bottom on title. Add padding bottom on the whole
block. Disable y-axis padding in the divs who are within the company
member divs. Do not allow to drop a company member div within another.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152185
2020-01-24 13:02:01 +00:00
Benjamin Vray 9894eca37d [IMP] website: review snippet accordion
Adding arrows to move the items above and below each others and remove
the big title

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152185
2020-01-24 13:02:01 +00:00
Samuel Degueldre f34d7f4fab [IMP] website: review structure snippets
This commit reviews a bunch structure snippets to streamline their use
and edition, namely:

Banner, Cover, Picture and Text-block snippets:
- Remove extraneous levels of edition (buttons, heading/text only
columns)

Picture snippet:
- make picture bigger

Three columns and comparison snippets:
- Make regular column options available on the cards
- Remove unwanted UI elements (card footer, button)

Cover snippet:
- Make title bold

It also consolidates the main colorpicker and the column colorpicker
into a single option as they did the same thing and allows inner content
to be dropped next to images in the Image - Text and Text - Image
snippets.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152184
2020-01-24 13:02:00 +00:00
Xavier Morel 4baecc31df [FIX] website: reset password tour (in community)
The tour had been fixed for running headless, however that was only
checked in enterprise, and community turns out to have a more complex
loading sequence, and thus higher likelihood of dangling request: when
logging in, on enterprise the user lands on the applications screen
which performs no further RPC. On community however the homepage
triggers the Chatter action which can take some time to load after we
already see the user menu.

Add a community-only step which waits for chatter to load.

closes odoo/odoo#43936

X-original-commit: d7777044a7649a4809dd08f864bb8d43729b201e
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-01-24 14:37:15 +00:00
Xavier Morel d2c7efa9be [FIX] website, test_website: problematic tours
Fix various tours which either have transient failures due to logging
the entire browser lifecycle or don't deal well with the last step
being suppressed if no explicit `run` is provided.

* test_website: add a warning final step for the page reset as there's
  no way to actually run a tour step in the recovery page (because
  it's asset-less)
* website: remove final step's action in reset password tour, it's
  relatively low-value and adding a proper followup is probably not
  worth the effort
* website: add final check step in dashboard tour, as we want to check
  that the dashboard gets loaded, but we don't want that to be dangling
2020-01-21 06:56:15 +00:00
Xavier Morel 956c4e5bfa [FIX] website: bit which blows up during tests 2020-01-21 06:56:14 +00:00
fja-odoo 876a7aad0b [FIX] web_editor: fix move snippet hiding
The move snippet arrows where not hiding properly when the target was
not movable.

closes odoo/odoo#43864

X-original-commit: ab32882ff0ecaf9995e52b062b880cd8ea0b6efa
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-23 16:09:30 +00:00
David Beguin c785373db1 [FIX] website: fix visitor _compute_time_statistics
This commit fixes the visitor's time_statistics computation. When creating a
new visitor, last connection datetime is not set, so it's not retrieved in the
search_read and crash at search_read_result[visitor.id].

This fix also speeds up and simplifies the time_statistics computation.
As time_connection_datetime is always set (for already created visitor) and in
the depends, no need to read values before looping, the data is already fetched
in memory. We can then use directly the value for each visitor in self.

Task ID: 2120464
PR #40199

closes odoo/odoo#43780

X-original-commit: 1f0c9f272ea5b6b7b891fcb8d00eb81e7fe33f81
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-22 15:17:14 +00:00
qsm-odoo ac2a063b28 [FIX] website: restore s_btn style
closes odoo/odoo#43689

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-21 16:47:47 +00:00
Romain Derie 98678199a3 [FIX] *: fix translations inconsistency in 't-set'
This commit fix most `t-set` errors that either led to:
  1. unwanted text to be considered as translatable.
     eg: `<t t-set="classes">text-left bg-100 p4</t>` would create an
     `ir.translation`.
  2. text that should be translatable were not.
     eg: `<t t-set="text" t-value="'Both'"/>` would not create an
     `ir.translation` while it should.

If a text should be translatable, it should never be inside a `t-value`:
  - `<t t-set="text">Both</t>`
If a text should not be translatable, it sould either be inside `t-value`,
`t-valuef` or the `<t>` tag should have `t-translation="off"`:
  - `<t t-set="classes" t-translation="off">text-left bg-100 p4</t>`
  - `<t t-set="classes" t-valuef="text-left bg-100 p4"/>`
  - `<t t-set="classes" t-value="'text-left bg-100 p4'"/>`

https://github.com/odoo/odoo/pull/43660
https://github.com/odoo/enterprise/pull/7839
https://github.com/odoo/design-themes/pull/203

closes odoo/odoo#43660

Related: odoo/enterprise#7839
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2020-01-21 15:32:08 +00:00
fja-odooandqsm-odoo 218e1cad61 [IMP] web_editor, *: allow saving of snippets
* website, mass_mailing, website_event, website_form,
  website_mass_mailing, website_sale

Now the user can save snippets to use them on other pages.

task-2120409

closes odoo/odoo#40408

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-01-16 14:29:04 +00:00
Benjamin Vray de4d7e14f8 [IMP] website: review snippet rating
Adding more control on the rating snippet. Choose the color, select
other icons in media dialog, no limit to add active or inactive icons,
display the rating inline or below the title.

task-2146209

closes odoo/odoo#41169

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-16 10:37:35 +00:00
Benjamin Vray 76afbf9321 [IMP] website: show internal drag&drop zones of dropped snippets
- Apply the style of drag&drop zones (.oe_structure.oe_empty) even when
  it is a descendant of the editable element, not the editable element
  itself. This change allows to add a visible drag&drop zone in any
  snippet.

- Add the editor messages (data-editor-message) on drag&drop zones when
  a snippet is dropped (not only on editor start as before).

In preparation of task-2152185

closes odoo/odoo#43358

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-15 15:21:20 +00:00
Xavier Morel 80896a0bf3 [FIX] core: chrome doesn't abide by --http-port anymore
An http-port provided on the command line (may also have been an issue
for config files, didn't check) would not be taken in account anymore,
because `odoo.tests.common` would be imported during the import of
`odoo` itself (when loading odoo.service.server), itself importing
`odoo.tools.config` leading to a default configuration being set up.

* remove `odoo.tests.common.PORT`, `config['http_port']` should be
  used always
* defer the import of odoo.tests.common by moving it inside
  load_test_file
* stop generating default configs

closes odoo/odoo#43283

X-original-commit: 45871f498ea4cf3ada719692e69cd413883ab442
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-01-14 13:15:04 +00:00
qsm-odoo 03ee121d6a [REF] web_editor, *: use _onUserValueXXX methods instead of notification
* website

This commit is simply about factorizing the code some more and making
sure the user value widgets always trigger a meaningful 'previewMode'
value.

Part of https://github.com/odoo/odoo/pull/42986
2020-01-09 13:09:38 +00:00
qsm-odoo d3ac066ee5 [REF] web_editor, *: allow to simulate notification of a widget
* website

This commit is simply about making the related method public instead of
private (allow to better see the diff in upcoming improvement commits).

Part of https://github.com/odoo/odoo/pull/42986
2020-01-09 13:07:03 +00:00
Samuel Degueldre d513c662e0 [IMP] website, *: add full height option and scroll down button
*: website_blog, website_event

This commit adds a "Height" option to sections, allowing them to have a
minimum height of the user's choosing (either full screen height or half
screen height, similar to blog covers). Enabling the full screen option
also allows the user to add a "scroll down button" that will scroll down
to the next section, also similar to blog covers.

As such, the classes doing the corresponding things in website_blog and
website_event have been renamed to reuse the same code.

task-2155710

closes odoo/odoo#41623

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-08 14:13:36 +00:00
Romain Derie c86bff6a02 [IMP] website: load theme images also when module install through CLI
Themes image would not be shown correctly in the theme selection if the
`website` module was installed in CLI.
Indeed, the code supposed to load the theme images was done in the kanban view
during theme selection after installing module through apps screen.

Now, this code is encapsulated and called in post_init hook of website.
This was also needed for an improvement on `test_themes` module, see
https://github.com/odoo/design-themes/pull/195.

closes odoo/odoo#42206

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-01-07 16:11:52 +00:00
Toufik Ben Jaa 427e8d76a3 [FIX] website: avoid to instanciate env in request
- The module `website` instanciate the environment bound to
    request before `_dispatch` is called.
    This causes issues with with routes that create their own
    psycopg2 cursor.

    To be more precise, the issue that allowed us to discover this
    instanciation is linked to the module `auth_oauth`.

    The route `/auth_oauth/signin` is a `none` route that receives
    a database name. It uses the db name to create a cursor and
    an environment manually to process the OAuth signin, log-in the user
    then assume it is safe to now use `request.env` to process the rest
    of the code.

    But here, since a cursor has already been created in `request` before the
    route had the chance to commit its changes to `res.users`, the
    changes made in the route `/auth_oauth/signin` are not available.

    And this causes issues with the computation of the session token
    done in the method `_compute_session_token` in the model `res.users`.

    It uses the field `oauth_access_token` to compute the session token.
    But since, the cursor in `request` is in a transaction that is not
    yet aware of the changes made on this field, it will compute a
    session token using the old `oauth_access_token` and store this
    outdated token in the client's session.

    Then here depending if you are using a multi-worker or a multi-thread
    Odoo, you either are never signed in or your session is expired
    after a cache cleaning (the method `_compute_session_token` is cached).

closes odoo/odoo#42808

X-original-commit: ceec103826ae2a18c63b48c17850d035e352fa3b
Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2020-01-06 17:38:59 +00:00
Nicolas Lempereur d138a708a0 [FIX] web_editor: Revert "update attribute of edition container"
This reverts commit 404fa816403b60c0d6e36bef6f2c73f020ea5ff3.

The commit acts on some special case. But it seem to break some case
when there is a t-ignore or other directive at that same element.

Reverting because a good solution would need to take
into account t-attr-class and this might not be possible easily.

opw-2122947

closes odoo/odoo#42599

X-original-commit: da62f7e65bd1df67138fe9a82000f800dc0ff84c
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-01-02 13:56:54 +00:00
Jorge Pinna Puissant c34a1e7f2f [FIX] base, website: debug assets in multi-website/multi-company
Fine-tunning of 42eec88e5da164e4930c48113109f2c8d4b73da3

Before this commit, the assets were not found when the user is connected
in mode debug assets in a multi-website and multi-company. This occurs
because the attachments (assets) were created only for the first website
accessed, and cannot be loaded when trying to access the second website.

Now, the attachments are created for each website accessed and can be
loaded withtout problems.

closes odoo/odoo#42593

X-original-commit: 95077a8cdd9f2cd99c2ef85bdf7ca5d58e006b71
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2020-01-02 13:32:39 +00:00
Samuel Degueldre 6481d0b353 [REF] website, *: remove unused class oe_custom_bg
*: web_editor, website_forum, website_mass_mailing, website_slides

This class no longer does anything.

Part of odoo/odoo#41561
task-2155808

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-31 13:25:21 +00:00
Samuel Degueldre de6589619b [IMP] website, web_editor: migrate background options to use imagepicker
The previous commit introduced a new imagepicker uservaluewidget, which
allows the user to select a picture or video in a generic way, this
commit adapts the background and CoverProperties snippet options to make
use of this uservaluewidget instead of duplicating most of the logic.

Part of odoo/odoo#41561
task-2155808
2019-12-31 13:25:19 +00:00