summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.backend.xml
AgeCommit message (Collapse)Author
2021-05-17[FIX] *: update documentation links Following the recent reorganisation of ↵Victor Feyens
the documentation in 12.0+, the majority of the documents have been moved and their old links are no longer valid. Some redirection rules will soon be deployed, but those rules might be dropped in some years and we want the links to still work, which is why we still replace the links to the new ones. FW-Port of odoo/odoo#70675 (13.0) closes odoo/odoo#70728 X-original-commit: 85c24961ab9ff5c1c79eb7415c97c46d9a77cca3 Related: odoo/enterprise#18283 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2019-12-09[REV] web: reverts update to fontawesome 5.11.2Kevin Baptiste
This reverts commit ff1c35513aecef5fbc30f7c2f3834450e719714e. closes odoo/odoo#41480 X-original-commit: 116057b26e71db4692280463669f3e80d813ddcc Related: odoo/enterprise#7110 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-28[IMP] web: update to fontawesome 4.7.0 to 5.11.2Kevin Baptiste
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>
2019-08-08[IMP] website, *: improve published smart buttonfja-odoo
* = web, website_blog, website_crm_partner_assign, website_event, website_event_track, website_forum, website_hr_recruitment, website_livechat, website_partner, website_profile, website_sale, website_sale_delivery, website_slides The published button name is a bit ambiguous, now it will clearly state what it does with a new title : "Go to Website". The "Published", "Unpublished" state is shown with the globe icon changing color (green and red) and a title on the button. Badge and Delivery don't have a website page, the button will then be a publish/unpublish button in the backend. task-2002435 closes odoo/odoo#34261 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
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-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
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-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,*: 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-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-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] *: BS4, adapt col-related classesqsm-odoo
col-lg-* -> col-xl-* col-md-* -> col-lg-* col-sm-* -> col-md-* col-xs-* -> col-* col-lg-offset-* -> offset-xl-* col-md-offset-* -> offset-lg-* col-sm-offset-* -> offset-md-* col-xs-offset-* -> offset-* col-lg-pull-* -> order-xl-1 col-md-pull-* -> order-lg-1 col-sm-pull-* -> order-md-1 col-xs-pull-* -> order-1 col-lg-push-* -> order-xl-2 col-md-push-* -> order-lg-2 col-sm-push-* -> order-md-2 col-xs-push-* -> order-2
2018-07-27[REF] *: BS4, rename btn-default to btn-secondaryqsm-odoo
BS4 "btn-default" class was replaced with "btn-secondary", which makes more sense.
2018-07-27[REF] *: BS4, remove the use of btn-smqsm-odoo
Odoo made the bad choice of using the 'btn-sm' class for every button instead of configuring the padding for default 'btn' to be smaller. In BS4, the style of btn-sm is actually more complex, lowering the font-size too. Also, btn-xs was removed so we would not have the possibility to display smaller button than our default ones. This commit removes btn-sm wherever it was used. Unfortunately, this might remove it at some places where it made sense but this can be restored in a second time.
2018-07-27[REF] *: BS4, adapt display classesqsm-odoo
The system completely changed. I also had to adapt classes to new screen breakpoints. hidden/hide -> d-none show -> d-block hidden-xs -> d-none d-md-(block/inline/...) hidden-sm -> d-md-none d-lg-(block/inline/...) hidden-md -> d-lg-none d-xl-(block/inline/...) hidden-lg -> d-xl-none visible-xs-* -> d-* d-md-none visible-sm-* -> d-none d-md-* d-lg-none visible-md-* -> d-none d-lg-* d-xl-none visible-lg-* -> d-none d-xl-* hidden-print -> d-print-none visible-print-* -> d-none d-print-* ... and all possible combination of those had to be handled too.
2018-06-22[IMP] Improve compatibility with screen readers (accessibility) (#24574)kujiu
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable. This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader. * [IMP] Labels must have a for attribute. Improve accessibility. * [IMP] Better error message when trying to read a missing cached value * [FIX] Add some aria-label and title attributes for screen readers. * [FIX] Template name is not included in the error message in case of SyntaxError in QWeb * [FIX] Improve the Tour failed at step error message to be more explicit. * [IMP] Add aria-labels * [FIX] Add missing aria-label on failing test * [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all. * [IMP] Color names on kanban views and many2many tags * [IMP] Add some checks on views for accessibility. * [IMP] Add `alt` attribute on `img` tags. * [IMP] Add aria-label and title on non-described icons * [IMP] Add button role to widgets with btn class * [IMP] Translate aria and formatted attributes. * [IMP] Remove wrong aria-labelledby * [IMP] Add menu role on dropdowns * [IMP] Buttons must be focusable * [IMP] Add aria attributes on progress bars * [IMP] Improve accessibility of basic widgets * [IMP] Change main layout to more semantic tags * [IMP] Add menuitem role when missing * [IMP] Remove wrong role='presentation' * [IMP] Improve accessibility of tab panels * [IMP] Add aria-invalid on invalid fields * [IMP] Add aria-sort on ordered columns * [IMP] Add role on alerts * [IMP] Use dialog role, header, main and footer tags for modals * [IMP] Add labels on o_status * [IMP] Improve accessibility of kanban view with feeds and articles * [IMP] Add alerts in case of new messages * [IMP] Add widget, navigation or img role to aria-labelled items
2018-05-23[IMP] web,mail: improve search view for mobile devicesGéry Debongnie
With this commit, we introduce a better screen to manipulate the search view in a mobile device. Note: most of this work was initially done by suh-odoo, then was adapted and moved to community by myself. task 31464
2018-04-18[REF] *: <a/> elements do not need the oe_link classqsm-odoo
The 'oe_link' class is not linked to any style. The class is automatically converted to 'btn-link' for <button/> elements but this will not be done on <a/> elements as they are (nearly) unprocessed node during views rendering. Also there is minor difference between a '.btn-link' element and a <a/> element anyway (and maybe there should not be at all).
2017-12-05[IMP] website(_sale): Improve UX for the website dashboardDhawal Limbuwala
Purpose ======= There are some usability issues in the website dashboard Specification ============= 1/ Move button 'Go to Website' in the header 2/ Hide the action button bar if there's nothing in it 3/ Align the labels in the graph's legend 4/ Make the legend labels and display more obvious 5/ Modify the graph colors to be more readable 6/ Remove margins around todo buttons
2017-12-05[IMP] website: Remove the suggested app on the website dashboardDhawal Limbuwala
2017-09-30[IMP] website: Script injected in DOM: window.onerror empty paramsrde
Before this commit, error thrown by scripts injected in DOM won't return a clean error on window.onerror. It would open the crash_manager's show_error's dialog that wouldn't display any informations except "Script Error." and "Traceback:". This is because of browser's security reason: it will just give you a 'Script error.' as message and nothing else for security issue. Now, this kind of error will show a clearer message informing that it is probably originating from a Javascript file served from a different origin. There is now also the possibility for developers to handle/override the behavior when this kind of error is catch to prevent the dialog to open for example. Might be of use: https://blog.sentry.io/2016/05/17/what-is-script-error.html https://stackoverflow.com/a/7778424 https://danlimerick.wordpress.com/2014/01/18/how-to-catch-javascript-errors-with-window-onerror-even-on-chrome-and-firefox/ (Search for Script Error)
2017-09-28[IMP] website: change link for google analytics tracking IDVandan Shah
closes #19730
2017-06-19[IMP] website: Restructure the 'Google Analytics' wizard.Hiral Bhavsar
* Set the blocking warning if the user enters a 'Client ID' without any 'Tracking ID'. * 'Google Analytics in Dashboard' field is visible only if 'Google Analytics' is checked in website settings. * Get/Set the value of 'google_analytics_key' and 'google_management_client_id' from 'website' model instead of 'ir.config_parameter' on 'Google Analytics' wizard. * If ID is set on 'Google Analytics' wizard then activated the related features and populate fields in website settings.
2017-03-03[IMP] website: improve dashboard header to have a website-related dashboardRohan Patel
This header displays icons that proposes to install other website related applications.
2017-03-03[REF] website: merge Website and Website Admin menu itemsRohan Patel
This commit merge the two website menu items in order to ease user flow inside Odoo. When clicking on the Website item a server action is called that decides to redirect the user either to the dashboard if the user is an admin or a website publisher, either to the website for other people. Overriding this method allows to define a specific behavior. Future commit will also redirect sales people to the website dashboard. Dashboard itself is customized to add a header used to display a website button. It will be used in future commits to add other new stuff to the dashboard.
2017-03-03[FIX] website: update google analytics documentation linkRohan Patel
2017-01-03[FIX] website: Link to the latest version for documentation user pagesYannick Tivisse
2016-09-16[FIX] website: improve ACL supportDamien Bouvy
The dashboard must be visible for non-'group system' users, hence the sudo call + only display the link to modify the client id if the user has sufficient access rights. Small visual correction for live users counter in the dashboard.
2016-09-16[IMP] website: make the website dashboard ACL awareDamien Bouvy
The Website Admin dashboard displays graphs for sales, analytics,etc. using a (somewhat easily) extensible js framework. Unfortunately, this framework is ACL unaware, meaning that it will completely and silently crash if you are missing any of the required access rights. To solve this, extensions must now specify not just a graph name but a necessary group for it and set the value for this group in the extension of the backend controller. This commit also - make the icon visible for the group 'Website Designer and Editor' (not juste the Settings group, which is extremely restrictive) - make the button to set the Google API key only visible to people with sufficient access rights
2016-08-22[IMP] website: improve dashboard designCsaba Fazekas
2016-03-15[FIX] website: deal with unauthorized usersMartin Geubelle
Show an appropriate message if the user does not have access to the analytics views.
2016-03-10[ADD] website, website_sale, website_crm: new dashboardMartin Geubelle
2015-09-15[FIX] website: published/unpublished button + useless codeqsm-odoo
For some strange reason, two CSS rules had different priorities between firefox and chrome (which forced chrome to always display published and unpublished at the same time). The chosen solution is to change the value of the button in published/ unpublished instead of toggling and relying on CSS classes (with this method, the DOM looks better too). There was also duplicated code in website for assets_backend.
2015-08-31[IMP] website: WidgetWebsiteButton: Add label on website below the ↵Yannick Tivisse
publication status
2015-07-10[IMP] web_editor: split website into web_editor (to use editor in backend ↵Christophe Matthieu
for html field) and website
2015-06-15[FIX] Cross-addons: Kanban templates: records editable/deletableAaron Bohy
for the sake of compatibility with the communication logic in the new Kanban implementation.
2015-03-13[FIX] website, mass_mailing: restore original FieldTextHtml widget -> ↵Olivier Dony
FieldTextHtmlFrame only for mass_mailing The new `summernote in iframe` version of the FieldTextHtml widget is not ready for prime time yet. Usability is not very good when used as a replacement for the previous html editor, especially in email composer windows, and initial loading is very slow. For now we only enable it as FieldTextHtmlFrame for mass_mailing templates, where isolation of the style is important (so that recipients receive the exact same result as was displayed on screen, without side-effects caused by backend/frontend style) In master the summernote version will be improved and the old CLE version will be dropped completely.
2015-02-15[IMP] Project form view cleanedFabien Pinckaers
2015-02-12[IMP] website: create a new web editor in the backend to edit html field ↵Christophe Matthieu
with the website builder
2015-01-20[IMP][REF] website: introducing a mixin class to handle website_publishedDavid Monjoie
and website_url fields. This will allow to remove custom code in every website addons that redefine those two fields and the URL getter method. The published button in backend has also been cleaned. It is now a link button that redirects to the website_url. It does not change the publish status anymore. Indeed it makes sense publish and unpublish website documents directly in the website, while checking that everything is correct, instead of doing it in the backend. Next commits will update the Odoo addons to use this mixin and the new button in the form view.
2015-01-08[REM] modelines: Gotta catch 'em allRichard Mathot
2013-12-02[FIX] website: product backend view with website_button widgetChristophe Matthieu
bzr revid: chm@openerp.com-20131202163010-9nksvoxmbuj9v8i1
2013-12-02[WIP] website: add website_button widget in backend to publish and go back ↵Christophe Matthieu
to the website. (need bootstrap 3 for layout) bzr revid: chm@openerp.com-20131202124504-78zvm5t0p1hpsn53