Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ addon | version | maintainers | summary
[web_notify_channel_message](web_notify_channel_message/) | 18.0.1.0.1 | | Send an instant notification to channel users when a new message is posted
[web_notify_upgrade](web_notify_upgrade/) | 18.0.1.0.0 | | Notify active users when a module is installed or updated
[web_pivot_computed_measure](web_pivot_computed_measure/) | 18.0.1.0.5 | <a href='https://github.com/CarlosRoca13'><img src='https://github.com/CarlosRoca13.png' width='32' height='32' style='border-radius:50%;' alt='CarlosRoca13'/></a> | Web Pivot Computed Measure
[web_portal_properties](web_portal_properties/) | 18.0.1.0.0 | | Add a new field on properties to show them on portal
[web_portal_properties](web_portal_properties/) | 18.0.1.0.1 | | Add a new field on properties to show them on portal
[web_pwa_customize](web_pwa_customize/) | 18.0.1.0.0 | <a href='https://github.com/victoralmau'><img src='https://github.com/victoralmau.png' width='32' height='32' style='border-radius:50%;' alt='victoralmau'/></a> | Web Pwa Customize
[web_quick_start_screen](web_quick_start_screen/) | 18.0.1.0.0 | | Configurable start screen for quick actions
[web_refresher](web_refresher/) | 18.0.1.0.1 | | Web Refresher
[web_remember_tree_column_width](web_remember_tree_column_width/) | 18.0.1.0.2 | <a href='https://github.com/frahikLV'><img src='https://github.com/frahikLV.png' width='32' height='32' style='border-radius:50%;' alt='frahikLV'/></a> <a href='https://github.com/luisg123v'><img src='https://github.com/luisg123v.png' width='32' height='32' style='border-radius:50%;' alt='luisg123v'/></a> <a href='https://github.com/cuongnmtm'><img src='https://github.com/cuongnmtm.png' width='32' height='32' style='border-radius:50%;' alt='cuongnmtm'/></a> | Remember the tree columns' widths across sessions.
[web_responsive](web_responsive/) | 18.0.1.0.8 | <a href='https://github.com/Tardo'><img src='https://github.com/Tardo.png' width='32' height='32' style='border-radius:50%;' alt='Tardo'/></a> <a href='https://github.com/SplashS'><img src='https://github.com/SplashS.png' width='32' height='32' style='border-radius:50%;' alt='SplashS'/></a> | Responsive web client, community-supported
[web_responsive](web_responsive/) | 18.0.1.0.10 | <a href='https://github.com/Tardo'><img src='https://github.com/Tardo.png' width='32' height='32' style='border-radius:50%;' alt='Tardo'/></a> <a href='https://github.com/SplashS'><img src='https://github.com/SplashS.png' width='32' height='32' style='border-radius:50%;' alt='SplashS'/></a> | Responsive web client, community-supported
[web_responsive_company_color](web_responsive_company_color/) | 18.0.1.0.0 | | Styling hooks for web_responsive elements
[web_save_discard_button](web_save_discard_button/) | 18.0.1.0.1 | <a href='https://github.com/synconics'><img src='https://github.com/synconics.png' width='32' height='32' style='border-radius:50%;' alt='synconics'/></a> | Save & Discard Buttons
[web_search_with_and](web_search_with_and/) | 18.0.1.0.1 | | Use AND conditions on omnibar search
Expand Down
2 changes: 1 addition & 1 deletion web_portal_properties/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Web Portal Properties
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:1abe829ac987aff4cc3bf098d3052d4078c88db2d4448329fbc17515d88c49f1
!! source digest: sha256:3d6a4d093dcf651d53a08d6c954fe6ef27e15396686ce6bdcd9722ad6fbde297
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion web_portal_properties/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Web Portal Properties",
"summary": """Add a new field on properties to show them on portal""",
"version": "18.0.1.0.0",
"version": "18.0.1.0.1",
"license": "AGPL-3",
"author": "Dixmit,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
Expand Down
4 changes: 2 additions & 2 deletions web_portal_properties/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>README.rst</title>
<title>Web Portal Properties</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -372,7 +372,7 @@ <h1>Web Portal Properties</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:1abe829ac987aff4cc3bf098d3052d4078c88db2d4448329fbc17515d88c49f1
!! source digest: sha256:3d6a4d093dcf651d53a08d6c954fe6ef27e15396686ce6bdcd9722ad6fbde297
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/18.0/web_portal_properties"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_portal_properties"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module creates a new field that can be used to add a new parameter
Expand Down
18 changes: 3 additions & 15 deletions web_portal_properties/views/portal_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,14 @@
t-if="property['type'] == 'many2one'"
/>
<t t-elif="property['type'] == 'selection'">
<t
t-foreach="property['selection']"
t-as="option"
t-key="option[0]"
>
<t t-foreach="property['selection']" t-as="option">
<t t-if="option[0] == property['value']">
<span t-esc="option[1]" />
</t>
</t>
</t>
<t t-elif="property['type'] == 'tags'">
<t
t-foreach="property['tags']"
t-as="option"
t-key="option[0]"
>
<t t-foreach="property['tags']" t-as="option">
<t t-if="option[0] in property['value']">
<span
t-esc="option[1]"
Expand All @@ -41,11 +33,7 @@
</t>
</t>
<span t-elif="property['type'] == 'many2many'">
<t
t-foreach="property['value']"
t-as="value"
t-key="value[0]"
>
<t t-foreach="property['value']" t-as="value">
<span
t-esc="value[1]"
class="o_tag o_tag_color_0 badge rounded-pill"
Expand Down
5 changes: 4 additions & 1 deletion web_responsive/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Web Responsive
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e119f248ecb98473e7141eb27ac6c6eba437e5139e0e87a726fa5c0a4a4c6392
!! source digest: sha256:10bcf47e7b1897a876abbafc4868af853d9a8a42b5779d146e917a87056a09ea
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
Expand Down Expand Up @@ -75,6 +75,9 @@ comfortably

- Big inputs on form in edit mode

- Sticky search panel bar (the one replacing the sidebar) at the top of
the views, placed right below the control panel when it is visible.

**Features for desktop computers**:

- Keyboard shortcuts for easier navigation, **using \`Alt + Shift +
Expand Down
7 changes: 4 additions & 3 deletions web_responsive/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "Web Responsive",
"summary": "Responsive web client, community-supported",
"version": "18.0.1.0.8",
"version": "18.0.1.0.10",
"category": "Website",
"website": "https://github.com/OCA/web",
"author": "LasLabs, Tecnativa, ITerra, Onestein, "
Expand All @@ -24,10 +24,10 @@
"views/res_users_views.xml",
],
"assets": {
"web._assets_primary_variables": {
"web._assets_primary_variables": [
"/web_responsive/static/src/legacy/scss/form_variable.scss",
"/web_responsive/static/src/legacy/scss/primary_variable.scss",
},
],
"web.assets_backend": [
"web_responsive/static/src/lib/fuse/fuse.basic.min.js",
"/web_responsive/static/src/legacy/scss/web_responsive.scss",
Expand All @@ -47,6 +47,7 @@
"/web_responsive/static/src/components/file_viewer/*",
"/web_responsive/static/src/components/chatter/*",
"/web_responsive/static/src/components/control_panel/*",
"/web_responsive/static/src/components/search_panel/*",
"/web_responsive/static/src/components/command_palette/*",
"/web_responsive/static/src/views/form/*",
],
Expand Down
12 changes: 6 additions & 6 deletions web_responsive/i18n/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-22 08:27+0000\n"
"PO-Revision-Date: 2023-10-28 16:10+0000\n"
"Last-Translator: Adriano Prado <adrianojprado@gmail.com>\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/"
"teams/23907/pt_BR/)\n"
"PO-Revision-Date: 2026-10-20 20:15+0000\n"
"Last-Translator: Luis Felipe Miléo <mileo@kmee.com.br>\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/"
"23907/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"
"X-Generator: Weblate 5.15.2\n"

#. module: web_responsive
#. odoo-javascript
Expand Down Expand Up @@ -180,7 +180,7 @@ msgstr "Pesquisar menus..."
#: code:addons/web_responsive/static/src/components/chatter/chatter.xml:0
#, python-format
msgid "Send message"
msgstr "Enviar menssagem"
msgstr "Enviar mensagem"

#. module: web_responsive
#: model_terms:ir.ui.view,arch_db:web_responsive.res_users_view_form_apps_menu_preferences
Expand Down
3 changes: 3 additions & 0 deletions web_responsive/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ comfortably

- Big inputs on form in edit mode

- Sticky search panel bar (the one replacing the sidebar) at the top of
the views, placed right below the control panel when it is visible.

**Features for desktop computers**:

- Keyboard shortcuts for easier navigation, **using \`Alt + Shift +
Expand Down
7 changes: 5 additions & 2 deletions web_responsive/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>README.rst</title>
<title>Web Responsive</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -372,7 +372,7 @@ <h1>Web Responsive</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e119f248ecb98473e7141eb27ac6c6eba437e5139e0e87a726fa5c0a4a4c6392
!! source digest: sha256:10bcf47e7b1897a876abbafc4868af853d9a8a42b5779d146e917a87056a09ea
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/18.0/web_responsive"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_responsive"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds responsiveness to web backend.</p>
Expand Down Expand Up @@ -410,6 +410,9 @@ <h1>Web Responsive</h1>
</li>
<li><p class="first">Big inputs on form in edit mode</p>
</li>
<li><p class="first">Sticky search panel bar (the one replacing the sidebar) at the top of
the views, placed right below the control panel when it is visible.</p>
</li>
</ul>
<p><strong>Features for desktop computers</strong>:</p>
<ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,31 @@ export const unpatchControlPanel = patch(ControlPanel.prototype, {
const activeAnimation = scrollTop > this.initialScrollTop;

rootEl.classList.toggle(STICKY_CLASS, activeAnimation);
this.updateStickyOffset();
this.scrollValueCollector.collect(scrollTop - this.oldScrollTop, (min, max) => {
const delta = min + max;
if (delta < -this.scrollHeaderGap || delta > this.scrollHeaderGap) {
rootEl.style.top = `${delta < 0 ? -rootEl.clientHeight : 0}px`;
this.updateStickyOffset();
}
});

this.oldScrollTop = scrollTop;
},
/**
* Expose the visible height of the sticky control panel, so other sticky
* elements (e.g. the search panel bar on mobile) can be placed below it.
*/
updateStickyOffset() {
const rootEl = this.root.el;
if (!rootEl) {
return;
}
const top = parseInt(rootEl.style.top, 10) || 0;
const offset = Math.max(0, rootEl.clientHeight + top);
this.getScrollingElement().style.setProperty(
"--ControlPanel-sticky-offset",
`${offset}px`
);
},
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* Copyright 2026 Tecnativa - Carlos Roca
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */

// Sticky search panel bar (the one replacing the sidebar) on small screens.
// It stays right below the control panel when this one is visible.
@include media-breakpoint-down(md) {
// The action scrolls instead of its content, so let the content grow with
// the view. Otherwise the sticky bar is released once the scroll goes
// beyond the screen height, as it can't leave its parent.
html
.o_web_client
> .o_action_manager
> .o_action:not(.o_action_delegate_scroll)
> .o_content.o_component_with_search_panel {
flex-shrink: 0;
height: auto;

.o_renderer,
.o_renderer_with_searchpanel {
flex-shrink: 0;
height: auto;
max-height: none;
}
}

.o_component_with_search_panel,
.o_controller_with_searchpanel {
> .o_search_panel {
@include o-position-sticky($top: var(--ControlPanel-sticky-offset, 0px));
z-index: 9;
background-color: $o-view-background-color;
border-bottom: $border-width solid $border-color;
transition: top 0.5s;
}
}
}
Loading