summaryrefslogtreecommitdiff
path: root/addons/website/views/assets.xml
AgeCommit message (Collapse)Author
2021-02-04[FIX] website, web_editor: fix empty parallax snippet not being removedSamuel Degueldre
Previously, when removing all the content of a snippet, that snippet would get automatically deleted. This was not the case for parallax snippets because we previously intended the user to drop the parallax snippet, empty it, and drop other content inside of it. Recently, we added the parallax option on all snippets, rendering the previous workflow obsolete. There is now no longer any reason to keep empty parallax snippets. This commit fixes that. task-2446008 closes odoo/odoo#64907 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-01-19[IMP] website: test a website style can properly be editedqsm-odoo
This test at least ensures that a SCSS edition through the editor can properly be done and indirectly tests that the assets order is correct (in prevision of a future asset refactoring). closes odoo/odoo#64754 Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2020-12-18[FIX] website: dashboard: mounted called twiceAaron Bohy
Before this commit, the 'mounted' method of the ControlPanel in the website dashboard was called twice, when entering the dashboard. It happened because the dashboard updated the ControlPanel before being actually mounted, so mounted was called once when the dashboard was mounted, and once when the update was applied. Ideally, this should not be an issue (this isn't an issue with owl). However, in Odoo, we mix layers of Owl Components and legacy widgets. In these situations, the above scenario isn't properly handled (and can't be). As a consequence, in mobile (enterprise), it crashed because an handler bound in mounted (thus twice) was only unbound once. This commit avoids the issue by correctly setting the control panel props before rendering it (the update was actually useless). opw~2417307 closes odoo/odoo#63574 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2020-10-08[FIX] website: get visitor tz directly from cookieDavid Beguin
Since tz is now (from 6eb4762fee20a158023d774a90e7ee90c2cacec5) 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 17e84025239ed78716ed5d5d92c0ee0e10fbfb29 Linked ENT PR: 12963 Task ID: 2333825 closes odoo/odoo#57103 Related: odoo/enterprise#12963 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-09-30[FIX] website: load website.utils only onceGoaman
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#58901 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-09-29[IMP] web_editor: add assets for jabberwock editorGoaman
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. closes odoo/odoo#58678 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2020-09-16[IMP] web_editor, *: make media-dialog search odoo media-librarySamuel Degueldre
*: website, web_unsplash, website_blog We have recently created an odoo media library that exposes a public API for searching for open-source media, including dynamic SVGs that can be used with the dynamic background-shape system to create illustrations whose colors can be changed by the user. This commit adds the corresponding client-side functionalty: search for the images in the media-library, creating a corresponding attachment when selected, as well as an option to customize the colors of the dynamic SVGs. In the process, adaptations have been made in the web_unsplash module to avoid duplicating code and to adapt code that was making assumptions that are no longer valid. To make new users more aware of this feature, all default images have been hidden from the media-dialog, so that the user is prompted so search for images. Some tests and tours that were relying on having default images in the media-dialog (eg in website_blog) have been adapted to match. task-2316651 Linked to: odoo/iap-apps#235 closes odoo/odoo#56479 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-11[IMP] website: add helpers for theme tourJeremy Kersten
This commit makes it easy to generate a tour depending on a theme. As each theme will have different tour which will recreate the theme preview, this feature is able to create all of them. task-2172208
2020-09-10[IMP] website: remove extra step of banner tourJeremy Kersten
Now that we will write tour by theme, this part is useless. We just keep the old steps that will be not covered by future theme tour. task-2172208
2020-08-24[FIX] web, website: move keyboard navigation and browser detection in commonLucas Perais (lpe)
Before this commit, the files keyboard_navigation_mixin.js and browser_detection.js were defined both in assets_backend and in assets_frontend Obviously then, they should be defined in assets_common, as this commit intends.
2020-08-18[IMP] website, website_sale: add dynamic snippetsLaurent Stukkens (LTU)
* Implement new snippets that allow the user to choose a filter and a template. Three snippets have been created: - Dynamic Snippet: Displays the data in a grid format - Dynamic Carousel: Displays the date in a carousel - Dynamic Products: Let the user pick a product category and displays the products in a carousel task-2276740 PR #53175 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-07-28[MOV] website: move google map snippet from themes to communityThanh Dodeur
Improve the base code and adapt to new website features as well. Part of https://github.com/odoo/odoo/pull/49101 task-2091396 Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-06-10[IMP] website: improve edition and options of "Media List" snippetCocographique
Part of #49697 task-2210730 Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-05-29[IMP] website_blog: use postlink for the tag cloudDramixDw
Refactoring the tag cloud to make it work with post request. Disallow multi-tag in get for bot indexation. task-2250385
2020-05-14[FIX] *: add group_ids where it is neededMartin Trigaux
Following the previous commit adding access via groups_id These views are rendered publicly by specific user
2020-05-14[REM] website: remove lazy template callMartin Trigaux
Was making a render_template on an arbitrary template Does not seem to be used anymore
2020-04-27[IMP] website, *: warn user about outdated blocksfja-odoo
* = mass_mailing, web_editor, website_crm, website_event, website_form, website_forum, website_hr_recruitment, website_mail_channel, website_mass_mailing, website_sale, website_slides When an outdated snippet's option are activated we display a warning in the left panel that inform the user about the potential malfunctions. To do so the snippet's template key is added to the snippet as data-snippet. If a snippet is "t-call" inside another snippet, it will need to use t-snippet-call instead of t-call to have the key on himself. Those unique keys are used on snippet selection to retrieve the snippet's version in the left panel and compare it with the currently selected snippet's version. Versions are describe with data-vcss, data-vjs and data-vxml. If a snippet's key is not in the left panel we consider that snippet as outdated. Added some tests to ensure that t-snippet and t-snippet-call really have their template key as data-snippet Adapted the views to the data-snippet changes adding data-snippet="tmpl_key". Part of: https://github.com/odoo/odoo/pull/44569 task-2189669 closes odoo/odoo#50254 X-original-commit: 28a6cd49b6e87b75c2e70771e241c41778bf9e87 Related: odoo/enterprise#10236 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-04-16[IMP] website, web: add fullscreen mode and frontend keyboard shortcutsSamuel Degueldre
While the edit mode interface is full of useful things, it also adds a lot of clutter, and alters the page's width and thus, its layout. This commit adds keyboard shortcut for website editors to use, and allows them to enter a "fullscreen" mode that hides the editor interface while remaining in edit mode, allowing the user to have fewer distractions while editing text content, and a closer rendition of the page's final layout while editing. For this, keyboard shortcuts were required, and a few other useful shortcuts have been added, such as alt-1,2,3 for the navbar, just like in the backed. task-2126915 closes odoo/odoo#46953 Related: odoo/enterprise#9295 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-04-10[FIX] web, web_editor: allow editor instantiation from public userqsm-odoo
If for some reason someone wanted to develop a textarea using the editor which is supposed to work as a public user (like we are trying to do on Odoo.com), it was not possible. The code was "designed" to allow it but there was one problem: the lazy loading of the editor assets required a `render_template` call to the server... which cannot be done from a public user. This commit solves the issues by allowing the lazy loading of assets to use a custom route if required. That route is then used by the editor "root". That route performs the render_template as a superuser provided that the view's xmlid is whitelisted. Note: there was another unauthorized call for public user: the colorpicker. This was solved by disabling the colorpicker template rpc for public user, they will still get the default summernote one. Part of https://github.com/odoo/odoo/pull/48981 closes odoo/odoo#48981 closes odoo/odoo#49398 X-original-commit: e84a0bfdc99c21406861b88c02b11c925d92f927 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-04-07[IMP] *: adapt qunit suite bundle inheritanceJulien Mougenot
Since the test assets bundle name has been changed and its structure is different, the inheriting assets need to be updated. Task 2002399
2020-03-24[IMP] website: review timeline snippetBenjamin Vray
Removes option to move card to the right/left from the left panel and add this option on the element overlay. Makes the snippet responsive and other improvements. Part of https://github.com/odoo/odoo/pull/46503 task-2194309
2020-03-07[FIX] website: add test for 5ac269d722fRomain Derie
5ac269d722f fixed 7e2b0ebe799 that prevented the website menu to actually be visible, since the JS in charge of displaying the menu was 'crashing'. A test was missing to avoid that issue to appear ever again, since it is quite a critical problem. Note that it might look strange that breaking such a mechanism does not make the runbot red, but since the menus are actually considered visible, the tests are able to 'see' it in DOM and click on it. They are actually hidden through an opacity 0 & height 0 while the JS process them. task-2093679 closes odoo/odoo#47138 X-original-commit: 0dc00a252dfe7fee658579a60dc7b1b1ca71a661 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-03[IMP] website: improve edition of Showcase snippetqsm-odoo
Also no more scss required for the snippet. Part of https://github.com/odoo/odoo/pull/46773 task-2191381 Co-authored-by: Cocographique <nmi@odoo.com>
2020-02-28[IMP] website: increase priority of user custom assetsThanh Dodeur
This commit moves the custom user css assets to a higher priority so their custom css have ascendancy over the other rules. Part of #44633 task-2168391
2020-02-05[IMP] website, *: make theme custo options act as simple snippet optionsqsm-odoo
* 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
2020-02-05[REF] website, web_editor: move theme customization to edit modeSamuel Degueldre
Previously, theme customization was done through a modal dialog in the website module, this was not very user friendly since the rest of the customization for the website design was done from edit mode, meaning the user had to exit edit mode to customize things such as theme colors or fonts. It was also rather confusing to have these seemingly related things in completely unrelated places. This commit moves all of the options that used to be in the theme customization modal into a new tab in the editor's left panel. This commit is mainly just about rendering the old modal as a third left panel content. See next commit for deeper changes. 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
2020-02-05[FIX] website, *: lazy load widget assets of the correct websiteqsm-odoo
*: web Before this commit, when a widget declared assets to lazy load through the assetLibs key, the asset was loaded through a context-less call to the server through the base `rpc` function. This caused problems in website: the website ID was not given to the called route and the loaded assets were then stripped of their specific-website parts. This commit solves the problem by allowing the `loadLibs` and `loadAsset` functions to receive an extra argument: an extra `context` to use for the actual call to the server. The method is now available in the ajax service, so that website can add its custom context automatically, the same way it does it for normal `_rpc` calls. Part of https://github.com/odoo/odoo/pull/44596 closes odoo/odoo#44596 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-30[IMP] website: add a new snippet table of contentBenjamin Vray
New snippet table of content with a sticky navbar with links related to headings in content. Part of https://github.com/odoo/odoo/pull/40690 task-2118980 closes odoo/odoo#40690 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-24[MOV] website: add s_blockquote snippet from themes repoqsm-odoo
Part of https://github.com/odoo/odoo/pull/42937 task-2088157
2020-01-24[MOV] website: add s_progress_bar snippet from themes repoqsm-odoo
Part of https://github.com/odoo/odoo/pull/42937 task-2088157
2020-01-24[IMP] website: review snippet tabsBenjamin Vray
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-16[IMP] website: review snippet ratingBenjamin Vray
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>
2019-12-24[IMP] website: add new 'Product Catalog' snippetBenjamin Vray
Before this task, we had some menu snippets but they were not really perfect and there were theme specific. task-2091911 closes odoo/odoo#40169 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-23[IMP] website: add new s_popup snippetJeremy Kersten
task-2118794 closes odoo/odoo#42207 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-12-18[REF] website: move s_chart snippet to dedicated filesqsm-odoo
2019-12-18[REF] website: move s_countdown snippet to dedicated filesqsm-odoo
2019-12-18[REF] website: move s_image_gallery snippet to dedicated filesqsm-odoo
2019-12-18[REF] website: move s_facebook_page snippet to dedicated filesqsm-odoo
2019-12-17[REF] website: create dedicated file for assetsqsm-odoo
2019-12-17[REF] move history of website_templates.xml to assets.xmlqsm-odoo