- Feb 11, 2020
-
-
Bhavita Bhatt authored
Following things are done in this commit: 1. changed some labeling and string for more readable and helpful to the user 2. added extra width to the text box 3. added publish/unpublish option for mobile view. 4. track page option auto-activated for any new page,event,job offer,course, blog. task-2088546 closes #40085 Co-authored-by:
jpr-odoo <jpr@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>
-
- Oct 10, 2019
-
-
Andrea Ulliana authored
* web_editor The purpose is to force our dropdown style in our UI so that themes do not break it anymore (same way all the other elements are forced (cards, headings, etc)). task-2059538 closes odoo/odoo#38321 X-original-commit: 4ef0eac5 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
- Sep 12, 2019
-
-
Kaushalya Mandaliya authored
Added cursor pointer when hovering a keyword in Related Keywords and added relevant tooltip for the better user experience. Renamed classes: js_seo_keyword_suggestion -> o_seo_keyword_suggestion js_seo_suggestion -> o_seo_suggestion task-2070946 closes odoo/odoo#36709 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
- Feb 14, 2019
-
-
qsm-odoo authored
Part of https://github.com/odoo/odoo/pull/31117 task-1941156 closes odoo/odoo#31117
-
- Nov 14, 2018
-
-
qsm-odoo authored
* web_editor - Restore the preservation of Odoo text-muted color (the rule became !important with BS4 and had thus to become !important in the preservation mixin). - Preserve base design in the "new content" menu (which now uses text-muted). Indeed, in some themes, the "new content" links were not even visible anymore. closes odoo/odoo#28666
-
- Jan 16, 2019
-
-
Anshuman Sharma authored
- 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
-
- Apr 10, 2019
-
-
Sapan Zaveri authored
Currently, when we open the website on iPad, the navbar is not displayed properly (systray items are overlapping on the website menu). This commit fixes the issue by using '+' icon on the navbar top menus if there is not ample space. This commit also converts multi company selector with 'fa-building' and multi website selector with 'fa-globe' icons on smaller screens. task-1945020 closes odoo/odoo#32321 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Nov 06, 2018
-
-
Nicolas Lempereur authored
Before this commit, RTL on frontend was only enabled for connected user. To have RTL, we add the direction on the element, and the RTL version of the stylesheet for the applicable languages are generated thanks to rtlcss. opw-1892757 closes #28434
-
- Oct 30, 2018
-
-
qsm-odoo authored
- The affix navbar went over the ace editor, preventing to save/close - The ace editor went always under the new content menu Now: - The affix navbar is always under the ace editor - The ace editor closes when the new content menu opens - The new content menu closes when the ace editor opens closes odoo/odoo#28251
-
- Sep 25, 2018
-
-
Sébastien Theys authored
This gives the user an overview of the possible actions, including those he currently does not have installed. It allows him to quickly install the missing applications without having to go on the backend. The commit also improves the existing actions: - correct handling of the actions deferred - add some translated terms PR: #27110 task-1885419
-
- Sep 13, 2018
-
-
Sébastien Theys authored
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
-
Hiral Bhavsar authored
Before this commit, it was not possible to open systray menus in mobile. This is due to popper.js that is wrongly dynamically positioning the dropdown menu. This commit fixes the issue by disabling dynamic positioning by popper.js for the systray menus, so that it uses ou custom styles for dropdown menu. Closes #26434
-
- Aug 31, 2018
-
-
Romain Derie authored
[FIX] web_editor: adapt col size to avoid too small select We should avoid col-md-3 in col-md-9 as the menu dialog is instanciated at 2 places: - When creating a link in the editor - When editing website navbar menu In the second case, there is a hack in `content.js` to remove `modal-lg` lowering the width of the modal and making the select too small. [FIX] website: lower navbar font size With BS4, font-size of navbar element went from 13px to ~17px (rem unit computation). 14px seems better than previous 13px as the frontend content size is higher than the backend one. Thus, 13px looks too small in contrast with the frontend page content. [FIX] website_crm_partner_assign, website_customer, website_membership: fix layout This commit fixes multiple layout issues, mainly by aligning code of the 3 modules: - Add margin right to avoid text to be against image - Using image_medium everywhere - Fixing search input width publish toggle red + odoo primary is weird -> gray navbar now has a background & float-right not working since flex -> remove navbar class, use d-flex and ml-auto so the right element will be floating since using all available width task-1878150
-
- Aug 22, 2018
-
-
Kishan Gajjar authored
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
-
- Aug 13, 2018
-
-
Jeremy Kersten authored
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>
-
Jeremy Kersten authored
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>
-
Jeremy Kersten authored
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>
-
Jeremy Kersten authored
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>
-
- Aug 10, 2018
-
-
qsm-odoo authored
* 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
-
Martin Trigaux authored
מזל טוב The direction parameter will now have a real impact on the web interface and completly switch the direction of the interface. Add the dependency rtlcss to switch the direction with a css postprocessor. Two different assets will be generated for ltr or rtl /web/content/<...>/web.assets_backend.0.css and /web/content/<...>/rtl/web.assets_backend.0.css to be able to differentiate it easily Adapt the css and views to be easier to switch direction Render graph as it is, do not move y-axis right side, as per mathematical rule value goes left from origin are considered negative, so keep graph as it is for right to left language add test cases for language direction specific assets bundle if language direction is rtl then we also store css files in assets bundle now we store two assets bundle, one for ltr and one for rtl language direction test two assets bundles generated, also test two assets bundle generated for en_US and ar_SY
-
- Jul 27, 2018
-
-
qsm-odoo authored
-
qsm-odoo authored
* web, website
-
qsm-odoo authored
Odoo used to declare two main colors: primary and optional (which are purple and turquoise in enterprise). Those were respectively assigned to the 'primary' bootstrap variable and the 'btn-primary' bootstrap variable. BS4, however, does not allow to have a different primary color for buttons. Instead, the 'primary' color is used for all 'primary' related components and utility classes, same as for all other colors. So, if we want to keep our enterprise buttons green, our 'optional' colors had to become our 'primary' color. The old odoo primary is then renamed to the 'odoo' color. The palette of grays is now larger by default and is numbered from 100 to 900 alongside the $black and $white variables. The equivalence for older variables and the way we used them is: $gray-darker -> gray 900 (unused before) $gray-dark -> gray 900 $gray -> gray 700 $gray-light -> gray 600 $gray-lighter-darker -> gray 400 (the old variable was created by us) $gray-lighter-dark -> gray 300 (the old variable was created by us) $gray-lighter -> gray 200 Fortunately, the 'lighter' variations we created fit well in the default BS4 system ! Unfortunately, our $gray-lighter which carried the same function as $gray-200 (see above) is very close to the new default $gray-100 and quite distant from the new $gray-200. This will be handled in the next commit.
-
qsm-odoo authored
-
qsm-odoo authored
media queries that target a specific screen size handled by bootstrap have now a more convenient way to be defined: ``` @media (min-width: $screen-sm-min) { ... } -> @include media-breakpoint-up(sm) { ... } ``` ``` @media (max-width: $screen-sm-max) { ... } -> @include media-breakpoint-down(sm) { ... } ``` ``` @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { ... } -> @include media-breakpoint-only(sm) { ... } ``` ``` @media (min-width: $screen-sm-min) and (max-width: $screen-md-max) { ... } -> @include media-breakpoint-between(sm, md) { ... } ``` Also, bootstrap has changed the values for its default screen sizes: ------------------ | BS3 | BS4 | ------------------ 0 | XS | XS | -> Portrait Mobile 576 | / | SM | -> Landscape Mobile 768 | SM | MD | -> Portrait Tablet 992 | MD | LG | -> Landscape Tablet / Small Desktop 1200 | LG | XL | -> Desktop ------------------ While it is possible to configure BS variables to behave as BS3, we took the decision to keep the BS4 variables untouched. BS4 system seems indeed better and having the purest bootstrap possible is better for Odoo to be used as a framework.
-
qsm-odoo authored
BS4 do not provide vendor prefixes scss mixins anymore as it is meant to be used with the 'autoprefixer' library. As we only support the last version of every major browsers in Odoo, we took the decision to not use the library as it was also complex to integrate in Odoo. We decided to do the library's work by hand if it ever become necessary.
-
- Jul 12, 2018
-
-
qsm-odoo authored
* web Those were broken with https://github.com/odoo/odoo/commit/9de1bc0eef6f5bfaa2a8d745431caa361ae91548 This commit takes advantage of the bug to also improve their design and html validity a little bit.
-
- Apr 18, 2018
-
-
qsm-odoo authored
Unlike LESS, SCSS variables are not lazy loaded. Our system has thus to be updated. This commit creates new templates which are t-called in assets bundles (to replace the old less_helpers template): - web._assets_utils: regroups the mixins and functions which *can* (and so should) be available in every asset bundle - web._assets_primary_variables: regroups the variables (or mixins used as variables) which *can* (and so should) be available in every asset bundle - web._assets_secondary_variables: same as above but provides an environnement where all the 'primary' ones are accessible. This is for example useful to handle the community/enterprise split: // Community primary variables $o-pink-color: pink; // enterprise color $o-brand-primary: blue; // Enterprise primary variables $o-brand-primary: $o-pink-color; // Community secondary variables $o-my-darker-primary: darken($o-brand-primary, 5%); => If there was only one variable template, enterprise edition would have been able to define its primary color at the end but the darker primary would not have been updated. Using the "!default" system and putting enterprise definition above would not have solved the problem as the $o-pink-color would not have been accessible. - web._assets_backend_helpers: regroups the variables, mixins and functions which *can* (and so should) be available in the backend asset bundle only. This is especially (only?) useful for bootstrap variables overriddes. - web._assets_frontend_helpers: regroups the variables, mixins and functions which *can* (and so should) be available in the frontend asset bundle only. This is especially (only?) useful for bootstrap variables overriddes. Note: bootstrap variables are not accessible in any of those anymore. If you have variables that should depend on bootstrap, you have 3 solutions: - Find another way: your variable is probably useless, use bootstrap variables directly or create a variable that will influence the value of bootstrap variables. E.g. instead of declaring: `$myvar: $bootstrapvar * 3` and using $myvar alone, declare: `$myvar: 3` and use `$myvar * $bootstrapvar` where needed. - Declare a copy of the bootstrap variable and use that one. In that case, you should also force-set the real bootstrap one to be sure they match (this should be done in appropriate templates mentioned above). E.g. ``` $o-boostrapvar: 5; ... $boostrapvar: $o-bootstrapvar; ``` - Set your variable to null and set it to your bootstrap expression in the file you will need it (where bootstrap variables are accessible) without forgetting to add the !default flag to allow overriddes. ``` $myvar: null; ... $myvar: $bootstrapvar * 5 !default; ``` This commit also partly changes the variable names to follow the convention: $o-<app_id>-<name> where 'app_id' is the current's app name or a meaningful unique identifier ("theme" for all themes for example, as no multiple themes can be installed).
-
qsm-odoo authored
Convert content so that the assets compile on app installation. The style is still broken after this as the variables/mixins/... are not defined in the right order (as it did not matter in LESS but does in SCSS). This commit basically changes: - Variables: @var_hello -> $var-hello - Mixins: .mixin_world() {} -> @mixin mixin-world {} - Classes used as mixin: .my_class() -> @extend .my_class - Here there were no other solution than to convert the use of a mixin call by the use of an extend as a first approximation - LESS functions -> SCSS functions (e.g. fade -> rgba) - Move first variable definition before the variable is used - Still need to make sure last variable definition is at the right place
-
qsm-odoo authored
This is a simple renaming without adaptation.
-
- Apr 04, 2018
-
-
Jeremy Kersten authored
Before this commit, if you or a lib uses Glyphicons, the font was loaded from /web/content/fonts/ (or /web/static/src/less/fonts/ in debug=assets) It is because bootstrap is imported from /web/static/src/less/import_boostrap.less not directly from /web/static/lib/bootstrap/less/bootstrap.less Now, we use absolute path to load font, overriding the variable define in variables.less from bootstrap.
-
- Jan 10, 2018
-
-
qsm-odoo authored
The variables.less file was producing CSS which was then multiplicated by the number of bundles (see less_helpers). Also simplify some LESS.
-
qsm-odoo authored
* website_sale
-
qsm-odoo authored
-
qsm-odoo authored
- website.ui.less was moved to portal for no reason - rename portal_frontend.less to portal.less
-
- Oct 27, 2017
-
-
qsm-odoo authored
-
- Sep 29, 2017
-
- Sep 15, 2017
-
-
rde authored
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/...)
-