summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml
AgeCommit message (Collapse)Author
2019-04-01[IMP] website: use Chart.js in community dashboardMathieu Duckerts-Antoine
This commit is one part of the task 'removing nvd3'. We use now Chart.js to draw charts. Task ID: 1946138
2019-02-22[MERGE] forward port branch saas-12.1 up to 0f4abc5c228Christophe Simonis
2019-02-21[MERGE] forward port branch 12.0 up to 84143a34b31Christophe Simonis
2019-02-08[IMP] website, *: add new logo sizing optionqsm-odoo
* portal, web This commit introduces the first of many-to-come non-color website user values: the logo height. Now, the user can choose it in the customize dialog. PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-08[REF] website: unify the theme customize dialog color optionsqsm-odoo
Before this commit, color options in the theme customize were treated as big exception in the system. The whole color panel XML was defined client-side and used custom design. Now, all colors are defined as options in the "server-side" template, allowing for more customizations and better maintenance. This commit also makes the color saving system generic to allow for more new options in the future (like customizing the logo height or the font size, which is the next task). PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-08[IMP] website: improve theme customize dialogqsm-odoo
- Make the controller part more readable and more efficient (O(1) ORM operations instead of O(n)) and remove deprecated code. - Add the possibility to have a toggle standalone option. This is used as soon as an `<opt/>` is alone in its container (note that now, the container can be any tag and will be ignored during rendering). - If an option has no specified 'string' to attach to it, the name of the first view it toggles will be used. PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-14[FIX] website, *: restore and enforce Odoo UI designqsm-odoo
* web_editor BS conflicts with our UI again: btn sizes and form controls are more difficult to force with BS4, this commit adapts the controls to use less problematic sizes, and adds/adapts some more forcing rules. Part of https://github.com/odoo/odoo/pull/31117 task-1941156
2019-01-31[FIX] website: prevent animation of anchor links with invalid fragmentqsm-odoo
Also secure the anchor creation to only allow valid names, that is letters, digits, underscores and hyphens. task-1913458 closes odoo/odoo#30701
2019-01-16[FIX] website: solve alignment bugs in onboardingAnshuman Sharma
- Fix the position of 'Add to menu' toggle button in new page dialog - Properly align tip icon in the welcome message task-1895287 closes odoo/odoo#29403
2019-01-18[MERGE] forward port branch 12.0 up to f854e01a983Christophe Simonis
2019-01-09[MERGE] forward port branch 12.0 up to 3e4138deaa2Christophe Simonis
closes odoo/odoo#30045
2018-12-06[FIX] website: redirect_type oversightJeremy Kersten
Related to #2924b77b6f5 Similary to #8ca728bb9312 closes odoo/odoo#29330
2018-12-20[IMP] website: Explain scope of language in keywords in seoJorge Pinna Puissant
When there is a website with traduction (for exemple, Spanish and French). In the Spanish website, at the SEO menu, you can add keywords using any of the languages (Spanish or French), but these keywords are only added to the Spanish website. To avoid misunderstanding between the website language and the keyword language a tooltip is added. closes odoo/odoo#29683
2018-12-06[IMP] website: keep social media popover on one rowqsm-odoo
Before this commit, the social media popover (used in forum but available everywhere) may break over multiple rows if used on a relative positioned small button. This however never occurred in standard <= 12.0 so we will consider this not a bug fix. This will however occur with the upcoming forum refactoring, so we needed a fix for master. This commit forces the social icons on one row and take the opportunity to refactor the template to make a simpler and more beautiful popover by using conventional icons and social media own colors. closes odoo/odoo#29327
2019-01-28[MERGE] forward port branch saas-12.1 up to d3b8422c9c4Christophe Simonis
closes odoo/odoo#30614
2019-01-18[FIX] web_editor, website: restore anchor link featureqsm-odoo
Following the new editor's merge at https://github.com/odoo/odoo/commit/22efdfbecc1e8c688000be98903a5a355d1ece8a, the anchor link feature was not working anymore. This commit also fixes a feature behavior: when editing a link which already contained an URL, the anchor field was not shown directly. closes odoo/odoo#30346
2019-01-17[IMP] web_editor,*: Refactoring the wysiwyg editor and 'html' fieldChristophe Matthieu
* Creating a new structure by transforming all the plugins in the library using the odoo inheritance system. Plugins are easier to implement with the AbstractPlugin to add Odoo behaviors. * From now on, the methods of the library (in this case Summernote) can no longer be called by other modules or files. Only the wysiwyg widgets can access it, to simplify the updating process. The wysiwyg object serves as an interface. * Depending on the options the snippets will be loaded or not, the editor will be in an iframe or not... all of this is transparent from the outside. * Regarding iframes, all controllers related to editing have been removed: the new API no longer needs them. This speeds up loading, eases testing and removes complexity for the same features. PUBLIC FEATURES There are several public methods on the Wysiwyg class: * Wysiwyg.prepare (WidgetParent): returns a deferred resolved when the library (xml, lazy, assets...) is loaded. * Wysiwyg.getRange (DOM): returns the range (selection in the dom) * Wysiwyg.setRange (startNode, startOffset, endNode, endOffset): creates a range (selection in the dom) * Wysiwyg.setRangeFromNode (DOM, options) that creates a range from an element (option available to select all, start or end) A jQuery selector was added: :o_editable, which indicates whether the current element is editable. That is, if it is contained in a tag with the attribute 'contentEditable = "true"' or in a tag with the class o_editable. Several methods are also present: * focusIn: makes a focus and places the cursor at the beginning of the element * focusInEnd: makes a focus and places the cursor at the end of the element * selectContent: makes a focus and selects the content HTML FIELD The HTML field can receive different options: * style-inline: {boolean} transforms a class into an inline style when saving and vice versa when reading. * no-attachment: {boolean} prevents the use of attachments (in media dialog) * cssEdit: {xml_id} to use a template containing the css to loaded in an iframe when editing * cssReadonly: {xml_id} to use a template containing the css to load into an iframe when viewing in readonly * snippets: {xml_id} snippets template (can be used with or without cssEdit) * wrapper: {template} qweb static template (containing a tag: id = "wrapper") that will include the content during editing (removed on save) MASS MAILING A widget was created for mass mailing. There are now two fields: body_html and body_arch. body_arch contains the code with the class without conversion into inline style, useful when editing and one with the inline style that is visible in readonly mode and sent by email. Advantage: no spreading errors, able to update css/theme, able to do more changes when converting to inline style so that a maximum of mail clients have an impeccable rendering. Co-authored-by: Antoine Guenet <age@odoo.com>
2019-01-17[REF] web_editor,*: Move and rename files to prepare refactoringChristophe Matthieu
The refactoring of the wysiwyg editor and 'html' field allows us to move some of the code that was in web_editor but only used in website or in mass_mailing. Some parts are still in web_editor but will be moved at a later time.
2019-01-16[IMP] website: improve onboarding flowAnshuman Sharma
- Improve the website tour (typo, tip positions, etc) and added new steps to publish a new page - Make close button of 'Mobile Preview' more visible - Fix the overflow for long menu names in menu editor dialog - Change the menu string from 'Affix Top Menu' to 'Fixed Top Menu' - Change theme customization dialog's title to 'Customize Theme' from 'Customize this theme' - Improve strings for Google Analytics task-1895287 closes odoo/odoo#28199
2019-01-09[MERGE] forward port branch saas-12.1 up to 8aa8548d8abChristophe Simonis
2019-01-09[IMP] website, *: allow creating anchor linksAndrea Ulliana
* portal, web_editor Anchor Link: - Some visual improvements of the link dialog. - New 'Page Anchor' field. - System by default: top and bottom. - Shows existing anchors. Creation of the anchor: - New option 'Anchor Name' to be able to create an anchor. task-1913458 closes odoo/odoo#29150
2018-11-06[MERGE] forward port branch 12.0 up to dd70c684268Christophe Simonis
2018-10-26[REF] website: review theme dialog engineqsm-odoo
Refactor the code to remove useless parts, simplify behaviors and allow more customizations in future tasks. closes odoo/odoo#28167
2018-10-25[FIX] website: fix the date picker widget on the publish page dialoglen-odoo
When updating to BS4, the datetimepicker library was updated to tempusdominus.js. It expects the DOM to be slightly different to apply correctly. opw 1896103 closes odoo/odoo#28073
2018-10-16[FIX] website: hide 'DateRangeButtons' inside SearchView on small deviceDharmraj Jhala
In website dashboard, 'DateRangeButtons' are pushed into control panel's SearchView and breaks the UI in small devices. This commit fixes the issue by hiding them in small devices. task-1884038 closes odoo/odoo#27082
2018-09-26[FIX] website: better allow color extensions in the futureqsm-odoo
2018-09-25[FIX] website: BS4, restore gallery snippetKishan Gajjar
2018-09-24[IMP] website: SEO dialog, remove trach icon in th (it's not clickable)Fabien Pinckaers
2018-09-24[IMP] website: SEO dialog CSS html cleanupFabien Pinckaers
2018-09-19[FIX] website, *: review navbar color systemqsm-odoo
* web_editor, website_slides Current system is styling all navbars with the user color. This was not the expected behavior but it is in fact quite nice, so we decided to keep it. There was however a problem: choosing the menu text color only applied to the main navbar (as it was an xpath toggling the navbar-dark class). This commit solves the problem by forcing navbar-light to behave as navbar-dark automatically if the menu background is dark, and this without any JS or extra CSS rules. This allows to get rid of the menu text color option. This commit also reviews the light and dark colors which are used when website is not installed.
2018-09-13[IMP] website: improve Optimize SEO and Page ManagerSébastien Theys
Modal generic: - Fix footer overflowing buttons by pushing them to a new line. Page manager: - Add an SEO column to easily see which pages have incomplete SEO. - Add an edit SEO column to navigate to the SEO modal on said page. - Hide "edit in backend" column as debug. - Generally improve the whole view by adding appropriate titles on icons, etc. SEO modal: - Improve general style. - Add description length alert. - Restructure the keyword table/suggestions. - Reset page meta to their initial value on Discard. - Various small usability improvements. PR: #26897 task-1850579
2018-09-13[FIX] website: only show 'Follow tooltip' when possibleJeremy Kersten
Before this commit, the message was always displayed. Now we only show into the default homepage the message "Follow all the tooltip" when there at least 1 tooltip in the current page. task-1878245
2018-09-13[FIX] website: remove share page info option from page managerJeremy Kersten
Advanced user can do it from the backend by the way and it is not obvious to understand the impact to set/unset this option. Seems like I was the only guy to think that this feature was needed task-1878245
2018-09-03[FIX] website: review website customize dialogqsm-odoo
Make some changes which are needed for theme migration. - Theme colors as user colors fallback only (not hard choice) - Review option dependency system
2018-08-30[REF] web_editor, *: review color theming systemqsm-odoo
* web, website - Introduce gray color palettes (needed for themes migration) - Synchronize BS4 color maps with individual variables (see comments about this in the code). - Review alpha/primary, beta/secondary matching: Before this commit, we decided that the common way to define a color palette was defining primary, secondary, gamma, delta and epsilon. alpha and beta were then forced to primary and secondary without other possibility. The new system makes more sense: 1) define alpha, beta, gamma, delta and epsilon 2) primary and secondary will automatically be set to your alpha and beta (allowing to style the default UI with BS4-independant variables) 3) if you are not happy with (2), you can define primary / secondary in your color palette so that they are not automatically set to alpha / beta This commit also changes what classes the editor uses. Background colors and text colors will now use alpha/beta/gamma/delta/epsilon (not primary and secondary anymore). For buttons, all the possibilities are suggested but color duplicates are hidden (so if your primary and alpha are equal, only one button color is suggested).
2018-08-30[REF] website: simplify color preview system in theme dialogqsm-odoo
Only one color palette is shown at a time, so no need for the extra css rules.
2018-08-22[ADD] website: Added a feature to set opengraph/twitter meta image from SEO ↵Kishan Gajjar
dialog. With this commit now user can set custom meta image from the seo dialog. If the user sets such image then it will be displayed when the user shares that URL in social sites. By default, it will show the list of images used in the current page. Alternatively, user can use media dialog to select/upload images. By default, it will take the company logo as a meta-image. We also improved how custom meta tags are handled for different pages, Now we can set custom meta tags based on the model and we can override '_default_website_meta' method in case you want to change default meta values from the specific model. e.g. For products displayed on the shop, if we want to change the value of og:image to product specific images instead of default logo In future, it will be used to add model specific metas like og:price, og:currency We passed 'website_company_id' in frontend session info because we display company logo in dialog for all pages. We can't use /logo.png as it is not updating in multicompany and multiwebsite. task id: 1835370 Closes: #25430
2018-08-17[FIX] website: BS4, restore facebook snippet UIqsm-odoo
+ solve JS error introduced by a recent commit Thanks to @kig-odoo for original fix
2018-08-13[IMP] website: res_config_setting make most key website specificJeremy Kersten
google analytics, google map api key, ... can be set by website Remove useless duplicated label Co-authored-by: Derie Romain <rde@odoo.com> Co-authored-by: Kersten Jérémy <jke@odoo.com>
2018-08-13[FIX] website: improve/fix menu, copy on unlink, clone page, unique_path, ↵Jeremy Kersten
sale_report, ... Fix bug from the initial poc of JOV Fix menu creation - creating a menu would create a 'container' menu in the DB (.create is call without website_id) then writing on it would copy (if condition to cow) the menu with a website_id leaving the first one as a menu container unused. - website_menu should always have a website_id we dont want to support the multiwebsite system that allow to have generic/specific menu unlink/write is useless now since we always have a website_id Make unique_path website dependent, 2 distinct website can have a page with same name Make Sale report multiwebsite compliant Make website_id on sale_order / account.invoice as a related stored from partner_id. Co-authored-by: Derie Romain <rde@odoo.com> Co-authored-by: Kersten Jérémy <jke@odoo.com>
2018-08-13[IMP] website: improve pagemanager to be multi website compliantJeremy Kersten
Now we can see which specific page override wich page when page are sorted by url. Co-authored-by: Derie Romain <rde@odoo.com> Co-authored-by: Kersten Jérémy <jke@odoo.com>
2018-08-13[IMP] website,*: support multiple websitesJoren Van Onder
This implements support to administer multiple websites. Although the core functionality already existed, managing multiple websites was fairly technical. In the interest of database updates and migration this attempts to keep duplicated data to a minimum. To do this the usual generic records are rendered unless some website-specific record exists that replaces it. Copy-on-write (COW) is used to create these website-specific records. Through this mechanism creating a website-specific record is delayed until necessary. A COW mechanism has been implemented on 4 models: ir.ui.view, website.page, website.menu and ir.attachment. These COW mechanisms are activated when editing data through the website (aka frontend). These frontend edits (e.g. with web_editor) will be website-specific, possibly creating a website-specific record when necessary. When editing data in the backend nothing special will happen, even when editing a generic record. Note that because of this mechanism also facilitates the ability to create new, uncustomized websites because the generic data is kept. Support is provided for a website to have any theme. Themes are fairly complex to handle. Standalone themes can depend on other standalone themes (e.g. theme_beauty depends on theme_loftspace) and themes usually modify some data of the themes they depend on. Because a theme can be installed on multiple websites, using website_id m2o fields does not work well. It would require duplicate data, making updates and migration harder. Because of this, data for themes (ir.ui.view and ir.attachment specifically) have a theme_id m2o. website has a theme_ids m2m that identifies all theme modules currently installed on it. Through these fields we figure out what to render. A theme is only fully uninstalled when it's no longer active on any website. The advantage of this approach is that upgrading or migrating theme data is no different from the single-website case. The website.published.mixin class was modified to handle multiple websites. A wizard was added in the backend to easily manage this for multiple website. Although not used anywhere in this commit, a 'website_id' variable has been added in the evaluation context of ir.rule. It allows to easily make any model multi-website aware, all that's needed is a custom website_id m2o field on a model and a custom record rule.
2018-08-10[IMP] *: make customize dialog generic and improve optionsqsm-odoo
* web, web_editor, website, website_theme_install, portal, theme_default, theme_bootswatch The purpose of this task is to make the customize dialog as generic as possible, that is theme-independant: 1) The design is now totally generic (Odoo visuals) 2) The XML definition is form-view like. This allows themes to extend the dialog without any risk of breaking the style and also allows to not care about lots of technical details. 3) New options have been included. Those were themes options that are now generic and which themes can simply adapt without touching the customize modal (navbar colors, footer color, navbar layout, fonts, body background, ...). The color palette can now also be customized with user colors. Using sass functionnalities, color palettes and fonts integration is now a lot better. Thanks to @qha-odoo for the original design. task-31677
2018-08-09[IMP] website_*: Improve menus and configurationsed-odoo
Purpose ======= Clean menus structure in website frontend and backend, for an easier navigation. Specification ============= Website ------- - Restructure menu - Enterprise: Keep google analytics view in a dedicated menu item when ecommerce is installed: - Sales Dashboard(ecommerce dashboard) - Analytics (google analytics) - Community: Keep both sales orders and google analytic dashboard on the same dashboard view - Restore google analytics api option in website settings when ecommerce is installed E-Commerce ---------- - Website > orders > orders: add default filter "from website" and remove it in the action. That way if you create an order manually there is still a way to find it from the menu (the salesteam is different) - Default filter for abandoned cart menu - Improve setting text and tooltip. It's not obvious that recovery emails must be sent manually. Replace with: - Title: Abandoned Carts - Subtitle: Send a recovery email when a cart is abandoned - Tooltip: Abandoned carts are all carts for which no transaction has been confirmed while the customer has filled in their address. You can find them in *Website > Orders > Abandoned Carts*. From there you can send a recovery email to stimulate the customers to resume their order. - Tooltip email template: This email template is suggested by default when you send a recovery email. - Tooltip hours: Carts are flagged as abandoned after this delay. - Hour label: Cart is abandoned after .... hour(s). Task ID: 1859170
2018-08-07[FIX] website, website_sale: BS4, adapt carousel controlsDeep Patel
Completes https://github.com/odoo/odoo/commit/20d033a782f4d85fdd6f15df68d116b2fd7a7dfd Closes https://github.com/odoo/odoo/pull/26077
2018-07-31[FIX] *: BS4, restore modal headersqsm-odoo
Close icon should now be put after the modal title in the DOM. Completes commit https://github.com/odoo/odoo/commit/d9801c1abe06b4c20702c0e94c56eea6a3ed8327
2018-07-27[REF] *: BS4, adapt the label component structureqsm-odoo
The '.label' elements have been replaced by '.badge' elements without the 'badge-pill' class.
2018-07-27[REF] *: BS4, 'center-block' -> 'd-block mx-auto'qsm-odoo
2018-07-27[REF] *: BS4, 'pull-left/right' -> 'float-left/right'qsm-odoo
2018-07-27[REF] website(_sale): BS4, adapt carousel structuresqsm-odoo
Carousel items must now have the 'carousel-item' class.