diff --git a/test-requirements.txt b/test-requirements.txt index 4ad8e0eceaa8..6f7d3fff756f 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1 +1,2 @@ odoo-test-helper +odoo-addon-web_pivot_computed_measure@git+https://github.com/OCA/web.git@refs/pull/3038/head#subdirectory=web_pivot_computed_measure diff --git a/web_responsive/README.rst b/web_responsive/README.rst index cc4927b9b565..4a6ebd9ea7e7 100644 --- a/web_responsive/README.rst +++ b/web_responsive/README.rst @@ -7,7 +7,7 @@ Web Responsive !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:5f714094452fb1e45e247f83044cfa129f326bc053504f3cbae12b9690a5ccce + !! source digest: sha256:630f5662d042c91ddbd52b0ce83446a3c6ff4c56105334f45c33c476ee3dbd2a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png @@ -17,13 +17,13 @@ Web Responsive :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github - :target: https://github.com/OCA/web/tree/17.0/web_responsive + :target: https://github.com/OCA/web/tree/18.0/web_responsive :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_responsive + :target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_responsive :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -97,18 +97,18 @@ comfortably |image11| -.. |image| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/redirecthome.gif -.. |image1| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/appmenu.gif -.. |image2| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/appsearch.gif -.. |image3| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/listview.gif -.. |image4| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/formview.gif -.. |image5| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/listview.gif -.. |image6| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/form_buttons.gif -.. |image7| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/chatter.png -.. |image8| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/shortcuts.gif -.. |image9| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/appsearch.gif -.. |image10| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/document_viewer.gif -.. |image11| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_responsive/static/img/chatter-colors.png +.. |image| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/redirecthome.gif +.. |image1| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/appmenu.gif +.. |image2| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/appsearch.gif +.. |image3| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/listview.gif +.. |image4| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/formview.gif +.. |image5| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/listview.gif +.. |image6| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/form_buttons.gif +.. |image7| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/chatter.png +.. |image8| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/shortcuts.gif +.. |image9| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/appsearch.gif +.. |image10| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/document_viewer.gif +.. |image11| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_responsive/static/img/chatter-colors.png **Table of contents** @@ -136,7 +136,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -179,6 +179,8 @@ Contributors - Angel Patel +- Mohamed Alkobrosli + Maintainers ----------- @@ -203,6 +205,6 @@ Current `maintainers `__: |maintainer-Tardo| |maintainer-SplashS| -This module is part of the `OCA/web `_ project on GitHub. +This module is part of the `OCA/web `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_responsive/__manifest__.py b/web_responsive/__manifest__.py index 1e0d1e03f92b..4bde3e6eacef 100644 --- a/web_responsive/__manifest__.py +++ b/web_responsive/__manifest__.py @@ -9,14 +9,14 @@ { "name": "Web Responsive", "summary": "Responsive web client, community-supported", - "version": "17.0.1.1.4", + "version": "18.0.1.0.0", "category": "Website", "website": "https://github.com/OCA/web", "author": "LasLabs, Tecnativa, ITerra, Onestein, " "Odoo Community Association (OCA)", "license": "LGPL-3", "installable": True, - "depends": ["web_tour", "mail"], + "depends": ["web", "web_tour", "mail"], "development_status": "Production/Stable", "maintainers": ["Tardo", "SplashS"], "excludes": ["web_enterprise"], diff --git a/web_responsive/readme/CONTRIBUTORS.md b/web_responsive/readme/CONTRIBUTORS.md index 8e7d7d5e2c25..11b1e7dc59a2 100644 --- a/web_responsive/readme/CONTRIBUTORS.md +++ b/web_responsive/readme/CONTRIBUTORS.md @@ -21,3 +21,5 @@ - Taras Shabaranskyi \<\> - Angel Patel \<\> + +- Mohamed Alkobrosli \<\> diff --git a/web_responsive/static/description/index.html b/web_responsive/static/description/index.html index 0effde19d1d1..cb374a139d56 100644 --- a/web_responsive/static/description/index.html +++ b/web_responsive/static/description/index.html @@ -367,41 +367,41 @@

Web Responsive

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:5f714094452fb1e45e247f83044cfa129f326bc053504f3cbae12b9690a5ccce +!! source digest: sha256:630f5662d042c91ddbd52b0ce83446a3c6ff4c56105334f45c33c476ee3dbd2a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Production/Stable License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

Production/Stable License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This module adds responsiveness to web backend.

Features for all devices:

  • Redirect to the dashboard after logging in. Users will only be redirected to the home page after login if they have enabled the ‘Redirect to Home’ option in their profile settings.

    -

    image

    +

    image

  • New navigation with the fullscreen app menu

    -

    image1

    +

    image1

  • Quick menu search inside the app menu

    -

    image2

    +

    image2

  • Sticky header & footer in list view

    -

    image3

    +

    image3

  • Sticky statusbar in form view

    -

    image4

    +

    image4

  • Bigger checkboxes in list view

    -

    image5

    +

    image5

Features for mobile: * View type picker dropdown displays comfortably

  • Control panel buttons use icons to save space.

    -

    image6

    +

    image6

  • Followers and send button is displayed on mobile. Avatar is hidden.

    -

    image7

    +

    image7

  • Big inputs on form in edit mode

  • @@ -413,20 +413,20 @@

    Web Responsive

    with Firefox Tab switching. Standard Odoo keyboard hotkeys changed to be more intuitive or accessible by fingers of one hand. F.x. Alt + S for Save

    -

    image8

    +

    image8

  • Autofocus on search menu box when opening the app menu

    -

    image9

    +

    image9

  • When the chatter is on the side part, the document viewer fills that part for side-by-side reading instead of full screen. You can still put it on full width preview clicking on the new maximize button.

    -

    image10

    +

    image10

  • When the user chooses to send a public message the color of the composer is different from the one when the message is an internal log.

    -

    image11

    +

    image11

Table of contents

@@ -464,7 +464,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -496,6 +496,7 @@

Contributors

  • David Vidal <david.vidal@tecnativa.com>
  • Taras Shabaranskyi <shabaranskij@gmail.com>
  • Angel Patel <patelangel1414@gmail.com>
  • +
  • Mohamed Alkobrosli <malkobrosly@kencove.com>
  • @@ -509,7 +510,7 @@

    Maintainers

    promote its widespread use.

    Current maintainers:

    Tardo SplashS

    -

    This module is part of the OCA/web project on GitHub.

    +

    This module is part of the OCA/web project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    diff --git a/web_responsive/static/src/components/apps_menu/apps_menu.esm.js b/web_responsive/static/src/components/apps_menu/apps_menu.esm.js index b1c3b2f29b25..93d355934e76 100644 --- a/web_responsive/static/src/components/apps_menu/apps_menu.esm.js +++ b/web_responsive/static/src/components/apps_menu/apps_menu.esm.js @@ -1,4 +1,5 @@ -/** @odoo-module **/ +/* global document, location, window */ + /* Copyright 2018 Tecnativa - Jairo Llopis * Copyright 2021 ITerra - Sergey Shebanin * Copyright 2023 Onestein - Anjeel Haria @@ -6,15 +7,17 @@ * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ import {Component, onWillStart, useState} from "@odoo/owl"; -import {session} from "@web/session"; import {useBus, useService} from "@web/core/utils/hooks"; import {AppMenuItem} from "@web_responsive/components/apps_menu_item/apps_menu_item.esm"; import {AppsMenuSearchBar} from "@web_responsive/components/menu_searchbar/searchbar.esm"; import {NavBar} from "@web/webclient/navbar/navbar"; import {WebClient} from "@web/webclient/webclient"; +import {browser} from "@web/core/browser/browser"; import {patch} from "@web/core/utils/patch"; +import {router} from "@web/core/browser/router"; +import {session} from "@web/session"; import {useHotkey} from "@web/core/hotkeys/hotkey_hook"; -import {browser} from "@web/core/browser/browser"; +import {user} from "@web/core/user"; // Patch WebClient to show AppsMenu instead of default app patch(WebClient.prototype, { @@ -23,21 +26,21 @@ patch(WebClient.prototype, { useBus(this.env.bus, "APPS_MENU:STATE_CHANGED", ({detail: state}) => { document.body.classList.toggle("o_apps_menu_opened", state); }); - this.user = useService("user"); + this.user = user; onWillStart(async () => { const is_redirect_home = await this.orm.searchRead( "res.users", [["id", "=", this.user.userId]], ["is_redirect_home"] ); - this.env.services.user.updateContext({ + user.updateContext({ is_redirect_to_home: is_redirect_home[0]?.is_redirect_home, }); }); this.redirect = false; }, _loadDefaultApp() { - if (this.env.services.user.context.is_redirect_to_home) { + if (user.context.is_redirect_to_home) { this.env.bus.trigger("APPS_MENU:STATE_CHANGED", true); } else { super._loadDefaultApp(); @@ -52,9 +55,9 @@ export class AppsMenu extends Component { this.theme = session.apps_menu.theme || "milk"; this.menuService = useService("menu"); browser.localStorage.setItem("redirect_menuId", ""); - if (this.env.services.user.context.is_redirect_to_home) { - this.router = useService("router"); - const menuId = Number(this.router.current.hash.menu_id || 0); + if (user.context.is_redirect_to_home) { + this.router = router; + const menuId = Number(this.router.current.menu_id || 0); this.state = useState({open: menuId === 0}); } useBus(this.env.bus, "ACTION_MANAGER:UI-UPDATED", () => { @@ -132,7 +135,7 @@ export class AppsMenu extends Component { } onMenuClick() { - if (!this.env.services.user.context.is_redirect_to_home) { + if (!user.context.is_redirect_to_home) { this.setOpenState(!this.state.open); } else { const redirect_menuId = @@ -143,12 +146,11 @@ export class AppsMenu extends Component { this.setOpenState(!this.state.open); } const {href, hash} = location; - const menuId = this.router.current.hash.menu_id; - if (menuId && menuId != redirect_menuId) { - console.log(this.router.current.hash.menu_id); + const menuId = this.router.current.menu_id; + if (menuId && menuId !== redirect_menuId) { browser.localStorage.setItem( "redirect_menuId", - this.router.current.hash.menu_id + this.router.current.menu_id ); } diff --git a/web_responsive/static/src/components/apps_menu/apps_menu.xml b/web_responsive/static/src/components/apps_menu/apps_menu.xml index 7e0a877f5786..99e90f509a03 100644 --- a/web_responsive/static/src/components/apps_menu/apps_menu.xml +++ b/web_responsive/static/src/components/apps_menu/apps_menu.xml @@ -6,12 +6,7 @@ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). --> - - 'o_navbar_apps_menu hide' - true - - - + @@ -26,6 +21,22 @@ onClick="onNavBarDropdownItemSelection.bind(this)" /> +
    + + + + +
    @@ -34,8 +45,8 @@