- Apr 27, 2023
-
-
xO-Tx authored
Steps to reproduce: - Go to a website page > Add a 'Form' block > Add a new 'Selection' field. - Go to the page (in 'edit_translations' mode) > The selection field options are not translatable. The goal of this commit is to make the select options translatable by adding an intermediate `.o_translation_select` element. This element will handle option's text translations from the linked `<select/>`. The final values are copied to the original element right before save. opw-3233360 closes odoo/odoo#117519 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Apr 03, 2023
-
-
Benoit Socias authored
Since [1] when a `/` was added as default text when no option is selected in dropdown options, the selected font name is not displayed anymore inside font options because they both rely on specifying a `content` on the `::before` pseudo-element inside the `we-toggler`. Because the empty value text also includes a `:empty` inside its selector, that rule wins over the font name. This commit makes the font name rule `!important` so that it gets applied instead of the empty selection rule. [1]: https://github.com/odoo/odoo/commit/dc6ff20386567abbabcb2d35388a3dc8995cab28 task-3256509 closes odoo/odoo#117448 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Oct 25, 2022
-
-
Romain Derie authored
This is a backport of [1] from Odoo 16 ----------------- Before this commit, the only possibility when adding a google font was to use google servers to serve the font. This was not ideal as some people really want to serve it themselves without the need of their visitors to reach google servers. That's especially true since recently where it seems like German clients are receiving letters about that to tell them it's illegal and this should be changed, as it wouldn't respect the GDPR. Somehow, it seems related to the fact that google knows you visited a website by just downloading the font, because they very well know with just your IP who you are exactly. It's yet unsure if that issue is well-founded or not, but since German courts seem to be sanctioning people about this, there is no reason to not at least provide a workaround. What is sure is that it makes a lot of noise and more and more people seem to be impacted by this as many opw are getting opened, as well as github messages. Whether it is well-founded or not is thus not really our problem anymore, we should just provide a way for our users to protect themselves against this "German law problem" (or at least think they are protecting, if Odoo thinks that's a non issue or the German court is wrong or ambiguous). Note that a cookies banner to inform users would not be enough for that "problem", as the user would already have accessed your website and thus the related problematic fonts. Another solution which is not something we want (at all) would be to serve local system fonts while the user did not consent about google fonts, or having a blocking screen page telling people visiting the website will fetch google fonts. Obviously those 2 possibilities are a no go as it leads to terrible UX. Finally, note that: - in Odoo 16, the default fonts will be the system fonts, meaning there won't be any call to google by default, regardless of this pr - there is a work in progress to improve the current cookies bar to differentiate essential and non essential cookies and to allow user to accept only one or both (task-2800976). Useful links: - https://github.com/odoo/odoo/issues/83638#issuecomment-1054470699 ODO detailed point of view about this - https://rewis.io/urteile/urteil/lhm-20-01-2022-3-o-1749320/ The German law about this [1]: https://github.com/odoo/odoo/commit/b06ce21eba6388ce34bbffffadcb489f0e8557dd Closes #83638 task-2756486 opw-2970167 opw-2960466 opw-2960555 opw-2952427 opw-2800976 opw-2748647 (possibly many more) Courtesy of @bso-odoo for the regex part which was inspired by another of his google font fix attempt closes odoo/odoo#103389 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Oct 02, 2020
-
-
Benjamin Vray authored
Before this commit, the padding of the top action buttons in the editor (save, discard and undo buttons) was related to the buttons padding options of the theme. After this commit, the padding of those buttons doesnt change with the theme padding value. task-2349723 closes odoo/odoo#58993 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Dec 10, 2020
-
-
Siddarth Gajjar authored
- Before this commit, Autocomplete dropdown ui is not compatible with existing editor ui. - After this, Autocomplete dropdown UI for url and GMAP imrpoved. closes odoo/odoo#60735 Taskid: 2352870 Closes: https://github.com/odoo/odoo/pull/60735 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
- Sep 23, 2020
-
-
qsm-odoo authored
The text tools were moved in the right panel with a temporary solution but as there is no right panel in translate mode, the text tools were just floating summernote-way. This commit restores the top editor bar in that case while waiting for the new editor. Part of https://github.com/odoo/odoo/pull/58347 closes odoo/odoo#58347 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Sep 22, 2020
-
-
stefanorigano (SRI) authored
Fix the design. Trig animations hovering any part of the button rather than its inner image only. task-2335267 part-of: #57942
-
stefanorigano (SRI) authored
task-2335267 part-of: #57942
-
stefanorigano (SRI) authored
Adjust shadows/borders in order to make the color-combination box stand-up. task-2335267 part-of: #57942
-
qsm-odoo authored
Since [1], the editor panel is now on the right. The top actions z-index was not adapted and was now too high and going above modals. It worked before because the zindex was confined into the topbar stacking context, which does not exist anymore. [1]: https://github.com/odoo/odoo/pull/57975 closes odoo/odoo#58237 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
qsm-odoo authored
*: website_event, test_website This commit is a series of hacks. The goal is to move the summernote text tools to the editor panel for the website editor. All the code to use the text tools in a top bar is kept (mass mailing, etc) and the text tools are placed at the right place for website in an ugly way. This is obviously temporary, until we can implement those text tools more generically and in a better way thanks to the new editor. Part of https://github.com/odoo/odoo/pull/57975 task-2344227 closes odoo/odoo#57975 Related: odoo/design-themes#364 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
qsm-odoo authored
*: website, mass_mailing See parent commit for information about the scrollbar moved to the '#wrapwrap' element, which was necessary to achieve this right panel design. Note: in the future, having the scroll on the #wrapwrap may not be necessary anymore as the edition might be done in an iframe. Part of https://github.com/odoo/odoo/pull/57975 task-2344227
-
- Aug 22, 2020
-
-
qsm-odoo authored
Now any set of widgets and rows can be placed in a we-collapse element so that those elements can be foldable. The first element inside (or the mentioned "string" on the we-collapse element itself) is used as the always shown element (with a toggler on its left to toggle the visibility of the other items). we-collapse inside other we-collapse is supported as well. Limitations / Other infos: - The use of '⌙' and   characters is not automatic (yet?). Sometimes it actually make sense to use them without a we-collapse or to not use them in a we-collapse. - The use of we-collapse is limited to widgets inside the same option. So unfortunately, there is no current way to add all bg image options in a folable section as those contain many different options. Maybe in the future. Part of https://github.com/odoo/odoo/pull/56350 closes odoo/odoo#56350 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Aug 14, 2020
-
-
qsm-odoo authored
*: website Part of https://github.com/odoo/odoo/pull/55959 task-2157252 Co-authored-by:
stefanorigano (SRI) <sri@odoo.com>
-
stefanorigano (SRI) authored
*: website Part of https://github.com/odoo/odoo/pull/55959 task-2157252
-
stefanorigano (SRI) authored
*: website Part of https://github.com/odoo/odoo/pull/55959 task-2157252
-
- Jul 14, 2020
-
-
qsm-odoo authored
*: web_editor Part of https://github.com/odoo/odoo/pull/53930 task-2157252
-
qsm-odoo authored
*: web, mass_mailing, website, website_form, website_sale New CSS design of the editor (step 1/x). This work is unfortunately far from perfect but is a first step towards what we want. In particular, much CSS linked to elements that are meant to be removed/moved in the upcoming weeks was done in a huge rush but will thus hopefully be removed/reviewed before the 14.0 release. As the design is now far more complex including gradients and other "complex" elements, it was also very difficult to keep a design based on css-variable so this system was removed, which means that the editor now appears the same everywhere (backend, frontend, ...). The original goal of this system was to have an adapted style for backend, frontend and website visitors. Unfortunately, the current result was a very good frontend editor design, a not-so-good backend editor design (for mass mailing at least) and a totally unadapted design for the website visitors. Making this perfect will be achievable by loading different assets for those 3 areas and hopefully those assets will only differ by the values of editor scss variables. Part of https://github.com/odoo/odoo/pull/53930 task-2157252
-
- Jul 09, 2020
-
-
qsm-odoo authored
*: web, web_editor Instead of three lists + one map to define font information and user choices saved as the index of the related fonts in those lists, the fonts are now stored in an unique map <font-name> -> <data> and the user choices are saved as the font name. This allow to have a visually better definition of the fonts and allows to reorder fonts in the UI without losing user customization (and actually simplify some code). Unfortunately any user font customization < 14.0 will be lost, but this is a small price to pay (users can still rechoose the same font in the editor UI where they will go anyway to discover all the new shiny features we are introducing there). Part of https://github.com/odoo/odoo/pull/54065 task-2291398 closes odoo/odoo#54065 Related: odoo/design-themes#269 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
qsm-odoo authored
*: website Make sure strings are printed quoted and null values are not printed. Part of https://github.com/odoo/odoo/pull/54065 task-2291398
-
- Jul 28, 2020
-
-
qsm-odoo authored
*: web_editor -> Introduce the we-gpspicker widget and improve the way the gmap lib is loaded (for Odoo / multiple snippets / ...). Part of https://github.com/odoo/odoo/pull/49101 task-2091396
-
- Jun 02, 2020
-
-
qsm-odoo authored
*: web_editor Note: on color palette change, all the colors of the user are reset and he is warned about it. Part of https://github.com/odoo/odoo/pull/52224 task-2197038
-
qsm-odoo authored
*: web, web_editor Now, the user can edit each individual component of each color preset thanks to the third tab of the left panel. The edition of the first preset is the same as the others for the users but it is actually also used for "no-preset" areas, meaning that they impact the whole website by default (*without impacting the other presets*). The website thus appears as areas using presets, preset 1 being the default (in the future all areas will be customizable with a different preset). The only difference between "using preset 1 explicitely" and "not using a preset" will be that background color is transparent in no-preset, leaving the body background appear. If the body background has no image, then there is no difference at all as the background color of the body is set to be the background color of the preset 1. In boxed mode, that color is used for the "box" and the website body uses a different customizable color. Note: before this commit, the "text" color edition was used to set the main text color and one of the constrasting color for the color-yiq function (the darkest if a dark color or the lightest if a light color). That last part has been removed and automatic colors will now always use $gray-900 and $white as contrasting colors, unless changed by the theme explicitely. This needed to be removed as now the "text color" edition has been moved in the "preset 1" config and should thus only impact the "no-preset / preset 1" areas instead of all the presets. Part of https://github.com/odoo/odoo/pull/45856 task-2197038
-
qsm-odoo authored
*: website Part of https://github.com/odoo/odoo/pull/45856 task-2197038
-
- Feb 06, 2020
-
-
qsm-odoo authored
* web_editor, theme_bootswatch Instead of having an entirely dedicated system for theme options in a third tab of the left panel, those theme options are now simple snippet options. See the customizeWebsite generic method. This allows to make any option available in the third tab or on any meaningful element like the header or the footer. This also allows to take advantage of all the features of the left panel: dependencies, visibility update, etc. Note: same as before, those changes do apply the color/size/layout immediately on the website, even if not saved. Changing that behavior is complex and might be the job of another task. Part of https://github.com/odoo/odoo/pull/41166 task-2088298
-
- Feb 03, 2020
-
-
qsm-odoo authored
Part of https://github.com/odoo/odoo/pull/44500 closes odoo/odoo#44500 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
qsm-odoo authored
Part of https://github.com/odoo/odoo/pull/44500
-
- Dec 23, 2019
-
-
Jeremy Kersten authored
task-2118794 closes odoo/odoo#42207 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
- Dec 09, 2019
-
-
Kevin Baptiste authored
This reverts commit ff1c3551. closes odoo/odoo#41480 X-original-commit: 116057b26e71db4692280463669f3e80d813ddcc Related: odoo/enterprise#7110 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Nov 28, 2019
-
-
Kevin Baptiste authored
FontAwesome 5 introduced new names for some icons as described on https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes This commit replaces the old names to the new ones. closes odoo/odoo#35826 Taskid: 2050241 Related: odoo/enterprise#5180 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Nov 18, 2019
-
-
Samuel Degueldre authored
Previously, background size and position for snippets was configured in a modal, the user could choose a "focus point", which is rather unintuitive. They could also choose to use the "contain" background mode, with or without repeat, or a third option, where they could customize everything, from the background size in both directions to whether to repeat the background in only one or in both directions. This commit streamlines the background-sizing options, only the "cover" and "repeat pattern" options have been kept, as they cover almost every use case. Their configuration has been moved into the options menu for consistency with the rest of the editor, and the background's position is now chosen by clicking on the corresponding menu option, and dragging the background to the desired place. Part of https://github.com/odoo/odoo/pull/38959 maintask-2066614 task-2088304
-
- Aug 28, 2019
-
-
qsm-odoo authored
* mass_mailing, note, website, website_blog, website_form, website_mass_mailing, website_sale This commit, unfortunately, mixes three things: - Restoring as much as possible the scss organisation to allow styling the web_editor UI properly. - Fixing some bugs like a border around the page once the editor is loaded, no ability to scroll the snippets, etc - Introducing a whole new UI for snippet options: a left panel instead of the old dropdown & button overlay. Note: this commit also do some linting and ES6 convertion even though some of it has been done in the parent commit. Note 2: some elements that were removed are still styled in the POS apps but this is because part of a feature was removed while leaving dead code behind, this is handled in another PR which is to be merged (https://github.com/odoo/odoo/pull/36136). Part of https://github.com/odoo/odoo/pull/36068 task-1942370 closes odoo/odoo#36068 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Aug 21, 2019
-
-
Gorash authored
The wysiwyg abstraction layer was introduced in saas-12.2 by commit f2969923. Its goal was to provide an external interface for other modules that wanted to use the editor feature such that the editor core itself could be changed without requiring extensive changes in the other modules. This commit is adapting the wysiwyg interface to instantiate the 12.0 editor below it rather than the saas-12.2 one, thus reverting the "new editor" part of f2969923 itself. Part of PR 35677. Co-authored-by:
Nicolas Bayet <nby@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>
-
- Jun 17, 2019
-
-
qsm-odoo authored
Following the new editor of https://github.com/odoo/odoo/pull/29775, many editor styles and behaviors were broken: - Translation colors - Background sizing cursor - etc, etc This is because commit https://github.com/odoo/odoo/commit/b49745e52d7a7bc27afd416206dcd5fa242aa07a decided to wrap all the scss rules of the website editor scss file in a `body.editor_enable` rule without any care. For example, the rule for translation colors became: `body.editor_enable > html[lang] > body.editor_enable > ...` which obviously does not work. closes odoo/odoo#34190 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Mar 21, 2019
-
-
Antoine Guenet authored
While waiting for a larger fix of the themes, force prevent overriding of the web editor's UI CSS by themes. This is achieved by applying `!important` on all web editor UI CSS. This is a temporary fix until the themes CSS is fixed and/or the new web editor library is ready. closes odoo/odoo#31721 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Feb 14, 2019
-
-
Christophe Matthieu authored
Issue: wysiwyg asset slow down the loading of the website, error inadvertently introduced: https://github.com/odoo/odoo/pull/29775 The assets are now loaded assynchroneously, when the editor is needed, its assets will be loaded. closes odoo/odoo#30700
-