summaryrefslogtreecommitdiff
path: root/addons/website/data/website_demo.xml
AgeCommit message (Collapse)Author
2020-06-02[IMP] website: add a demo page to test color combinations classesstefanorigano (SRI)
Part of https://github.com/odoo/odoo/pull/45856 task-2197038 closes odoo/odoo#45856 Related: odoo/upgrade#1211 Related: odoo/enterprise#10200 Related: odoo/design-themes#218 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-06-02[IMP] web_editor, website, *: use new color namesqsm-odoo
*: mass_mailing, website_blog, website_forum, website_hr_recruitment Deprecate alpha, beta, gamma, delta and espilon color names and now use a new color system: o-color-x, with x from 1 to 5. This will allow to review the colors of all themes to have nice visuals for the new color combinations classes, without breaking the current uses of bg-alpha, alert-delta, etc in current websites of customers (by keeping the old color and classes for compatibility). This will also allow to uniformize all themes under the same conventions to enforce BS color override: - o-color-1 used as primary (as before, for alpha) - o-color-2 used as secondary (as before, for beta) Before, some themes were not following the 2 guidelines. The users using those themes will simply have the possibility to choose o-color-1 and o-color-2 colors accordingly to restore their website without breaking the new system features. Another change is that those colors are defined through color palettes and not theme color palettes. This will avoid them to generate automatic bootstrap classes which we don't want (alert, btn) and generate the one we want by ourself. Note: for mass mailing, the colors and classes also have been renamed but the system stays unchanged. Part of https://github.com/odoo/odoo/pull/45856 task-2197038
2019-08-03[IMP] *: correctly read/write website_publishedRomain Derie
The `website_published` field from the website's mixins is basically a readonly from `is_published` field. On read, this field will simply read `is_published` and check if the record's website_id is accessible (only for the multi mixin). On write, it will always write on `is_published`. This commit improves a few things: - A lot of code was writting on website_published which was just then writting on is_published. Writting directly on is_published makes more sense. - Some backend fields would still reference `website_published` instead of `is_published` which would just go through the related for no reason. Plus, using `is_published` will make the field tooltip more accurate as we are not in a website context ('Visible on current website' to 'Is Published') - Filter and search on tree view were still using the `website_published` related field, which is just a readonly when we are not in a frontend context. - Some create and write function would have security check on `website_published` value but that was wrong as the user could bypass that by simply writting on `is_published`. For the write method, check `is_published` is more accurate as it will cover both case since `website_published` will then call the write method on `is_published`
2019-06-11[IMP] website: remove noupdate for debug page's archRomain Derie
Before this commit, those pages would be flag as noupdate. If not modified, those view would not get modification on module update, which is not logic. Now, those view will benefit from any update. It makes even more sense since multi-website as those views will never get modified directly (it will COW). closes odoo/odoo#33920 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2018-10-01[FIX] website: resolve failed-forward-ported website demoqsm-odoo
The following series of commits were badly forward-ported: - https://github.com/odoo/odoo/commit/24a8bce5429eef7139bdd1bc87aa1ef8733670a7 - https://github.com/odoo/odoo/commit/9ef7763ecdf4fb102e49ce68ac4ca3ce7557016e - https://github.com/odoo/odoo/commit/66d37834284f890c00f00c8ab32ca820f757beb6
2018-10-01[MERGE] forward port branch saas-11.4 up to 57e387b6452Christophe Simonis
2018-09-29[FIX] website: store default menu tree (apps menu) for new websiteRomain Derie
Previously, for multi-websites it was decided that: - creating a new website would not get already existing apps menu (shop, blog, forum..). - installing a new app would create the app's menu on existing website This was decided mostly for technical reason but it is a weird behavior. This commit saves the installed apps menus in order to copy them on new website If this default menu got deleted, we ensure a minimalist tree menu for new website Note: This also fixes the bug where installing a website_module more than once (with -i website_module in command line) would create the menu (blog, shop, forum..) on the first website a second time. This was because the website.menu.create() overrided in website would return the last created record in the self loop, thus the last one created would be the one set to the xml_id (ir.model.data). This commit closes #27253
2018-09-25[FIX] website: create `ir.ui.view`/`website.page` in the same recordRomain Derie
Somehow, having theses 2 new `website.page` records created separately from their `ir.ui.view` would throw an error in dev-xml when installing website module. A task has been created in website team to track the origin of this bug. In the meantime, this commit will avoid the traceback by creating the view inside the page record. As the page's view is not intented to be inherited, it is the best way to write it anyway.
2018-09-24[IMP] website: add snippets showcase demo dataqsm-odoo
Reaching the URL /demo/snippets-debug will now showcase all snippets *automatically* (if a theme uses different snippets or if the snippets change in the future, this page will not have to be adapted).
2018-09-24[IMP] website: add BS4 showcase demo dataqsm-odoo
Reaching the URL /demo/bs-debug will now showcase all bootstrap main components and utilities.
2018-09-21[FIX] website: remove domain on website demo dataJeremy Kersten
Remove demo data for domain to make it usable on runbot. Before this commit, when you switch on runbot to website 2, you was redirected to 0.0.0.0. + add tooltip (fgi request)
2018-09-26[FIX] website: add correct ID on demo pages containerqsm-odoo
closes odoo/odoo#27244
2018-09-25[FIX] website: create ir.ui.view / website.page in the same recordRomain Derie
Somehow, having theses 2 new `website.page` records created separately from their `ir.ui.view` would throw an error in dev-xml when installing website module. A task has been created in website team to track the origin of this bug. In the meantime, this commit will avoid the traceback by creating the view inside the page record. As the page's view is not intented to be inherited, it is the best way to write it anyway. Step to reproduce: - Start odoo in dev xml - Install website app Related to #27199 closes odoo/odoo#27210
2018-08-22[REF] website, *: clean demo data and some default main dataqsm-odoo
* social_media - Remove action server demo (out-dated and buggy) - Remove website app / themes app actions (useless) - Move demo social media to the social_media addons - Use same contact us page for demo website 2 - Improve edition of contact us and about us pages by using snippets as default contents - ...
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[REF] website: small diff pep, renaming, make generic functionJeremy Kersten
This commit should not change the behaviour in most cases. 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-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-27[REF] website(_sale): BS4, adapt carousel structuresqsm-odoo
Carousel items must now have the 'carousel-item' class.
2018-07-27[REF] *: BS4, adapt formsqsm-odoo
The 'form-horizontal' class have been removed; the '.form-group' elements must now use the 'row' class for an horizontal layout. The 'control-label' class was renamed to 'col-form-label'. The 'help-block' class was renamed to 'form-text'. The 'has-error' and 'has-success' classes have been removed and replaced by a new system using the :valid and :invalid pseudo-classes, when a parent has the 'was-validated' class. While this system is great, it is not straightforward to use it in Odoo. Fortunately, BS4 provides the 'is-valid' and 'is-invalid' classes as fallback. This commit replaces the 'has-error' and 'has-success' classes by 'o_has_error' and 'o_has_success' classes (for JS compatibility) and use the 'is-*' fallback classes. (The 'has-warning' class has no equivalent but was unused in Odoo anyway).
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, 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-09-24[IMP] website: add BS3/snippets showcase demo dataqsm-odoo
(should not be forward-ported) - Backport of https://github.com/odoo/odoo/commit/9f2750d9ebda20758345724cd2a0934ab08d1f00 - Backport of https://github.com/odoo/odoo/commit/925fdbc683c546e096d1ae99aa22606480f78a0e closes odoo/odoo#27187
2018-07-04[FIX] Syntax of icons (#25577)kujiu
Description of the issue/feature this PR addresses: Accessibility improvements forbids the use of the syntax `<i class="fa fa-check"/> Some text` to create a labelled icon. But, by this, some fonts are changed. Desired behavior after PR is merged: The old syntax can be used.
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
2017-09-26[REF] website: rename ir_ui_view_id by view_id to fit odoo coding stylerde
2017-09-26[IMP] website, website_crm, website_hr_recruitment: remove useless name ↵rde
field from website.page Before this commit, website.page had a 'name' field which was useless because website.page inheritS from ir.ui.view which has its own 'name field. At the end, we were duplicating/synchronizing 'name' field between website.page and its ir.ui.view for no reason because we were always using the one from ir.ui.view. Now, getting website.page's name will always retrieve the one from its ir.ui.view and there is no redundant information.
2017-09-15[ADD] website: add new page managementrde
website.page = old ir.ui.view with page=True website.redirect is a new mechanism to replace in the futur the ir.attachment mechanism of redirect. From now, we don't have a specific /page controller to serve 'page'. We use a new model website.page which is rendered if none route matches the url and that the field 'url' on website.page matches the request.httprequest.path. The order to serve a path is: - Routes defines in controllers (/shop, /blog, ...) - ir.attachment with name matching the path - website.page with url matching the path - website.redirect with url_from matching the path - 404 To improve: - allow regexp in website.redirect model - allow to edit the view_arch from the page.management via redirect backend (needed when traceback in the page, or when modifying a js/css/less/...)
2017-09-06[IMP] website: Clean and simplify res_config viewMahendra barad
Purpose ======= - Settings are too complex: too long + too many options that shouldn't be suggested with checkboxes e.g. twitter roller is now suggested as a new snippet to install from website editor google maps, slides, forum, etc. should show up in the apps store - When saving the page I expect to stay in the settings -> no redirection to homepage anymore! Specification ============= See task 33620
2017-06-19[FIX] website(_*): properly style primary buttonsqsm-odoo
* portal, sale Some primary buttons had both the 'btn-primary' and 'btn-default' classes, which is wrong. In standard bootstrap, the 'btn-default' class seems to be masked by the use of 'btn-primary' but it is not the case in some of our themes.
2017-01-03[IMP] various: add module name in server action nameThibault Delavallée
Purpose is to ease their ordering and understanding.
2017-01-03[REF] ir_actions: refactor and simplify ir.actions.serverYannick Tivisse
Main idea of this commit is to simplify the various options of ir.actions.server model. Purpose is to make it a simple tool to execute some actions or python code. This has two main consequences * create and update server actions are simplified to update only the current record. Complex options can always be achieved by python code instead of error-prone option building mechanism; * condition of server actions is removed. If a condition is necessary it can either be included in a code server action, or integrated in an automated action; This commit features : * remove 'client_action' server action type. Indeed this can be achieved with a code server action returning an action; * remove 'condition' on ir_actions_server model. From now on conditions and triggers are managed in server action code or using automated or scheduled action; * clean 'create and copy a record'. Create and link are the proposed options. Copy of the record or of a selected record is removed. Link is simplified by removing the parsed expression that allowed complex path update. It is simpler to write code than write python-like expression in char fields; * remove 'use_write' options. It now simply updates a record; * remove 'write_expression' as it is replaced by code actions; * remove 'ref_object' not used anymore with the removal of "choose a record"; * remove helper to build an expression not used anymore with the removal of "write expression"; * remove object ID finder; * removed template display when choosing an email template; just go on the template if you want more details; * refactor server action form view to reflect changes. It will be used in future commits as base view for automated and scheduled actions; * add 'sequence' in list view; * add new 'usage' selection field allowing to distinguish which model uses the server action. Indeed as server action will soon be used in scheduled or automated actions having a clue about the usage is always helpful; Thanks to @fpodoo for the original idea and preliminary work. Thanks to @jpr-odoo for first developments. Thanks to @jem-odoo and @rco-odoo for reviewing.
2016-12-23[IMP] account: onboarding invoice report layoutPratima Gupta
Impacted modules : base, base_setup, account, report, and base_vat The purpose is here to ease the creation of the first invoice. To do so, we need to ease the configuration of VAT, company data, and report layouting. This commits brings - better labelling for TIN, VAT and Tax Id for partner and companies (form view, ...) - change settings for footer of report : allow to use custom or standart footer, and display them in settings view. - always display TIN in standart report footer - remove (demo) data of main company to not set company logo on reports Also, a message is display on the report when the data company are not configured yet. The invoice report is now regenerated each time the user want to print it.
2016-11-18[FIX] *: convert action server to new syntaxJeremy Kersten
Use record / records instead of deprecated locals
2016-09-30[IMP] website: rename default website for demo dataJeremy Kersten
2016-08-10[MIG] website: migrate server actions to new APIThibault Delavallée
2016-08-04[MIG] website: migration to new apiRavi Gadhia
Migration of website module to new API. The tricky phase is ir_http.py : we need to use `request.env` only when the authenfication phase is done. Normally by calling `super` of `_dispatch` method, but website module required it to be done before. This is important since `env`is a lazy property of `request` object. Some hack were kept since this commit is a migration ('RequestUID' in ir.http, ...) Some docstrings were added.
2016-08-04[MOV] website: module directory organizationJérome Maes
2014-01-31website sale refactorAntony Lesuisse
bzr revid: al@openerp.com-20140130233951-55ttup4ohmp4i0nf
2013-10-23[IMP]Improved.bth-openerp
bzr revid: bth@tinyerp.com-20131023132529-kvtvs64mnu8so4pr
2013-10-23[IMP]Add demo data for company slogan.bth-openerp
bzr revid: bth@tinyerp.com-20131023132004-9vlx3kcpefg1yz81
2013-10-13[IMP] renamse files to conform to the future openerp module guidelinesAntony Lesuisse
bzr revid: al@openerp.com-20131013030806-2236jpszm1morlg6