# How to Add Quick Actions to the Odoo 19 Sidebar | Octura Solutions

BlogMarch 11, 2026 · Updated March 13, 2026By [Olivia](/about/team/olivia), Senior Odoo Architect

# Customizing the Odoo 19 Sidebar:  
How to Inject Quick Actions the Right Way

![How to Add Quick Actions to the Odoo 19 Sidebar](/_ipx/f_webp&q_80&s_1920x1008/images/blog/odoo-owl-component-development-lifecycle.webp)

INTRODUCTION

## Your Top-Bar Customizations Just Broke. Now What?

If you've migrated a heavily customized Odoo instance to version 19, or even just opened the release notes, you've already noticed: **the top navigation bar is gone.** Odoo 19 replaces it with a collapsible sidebar that fundamentally changes the `ir.ui.menu` hierarchy, the rendering pipeline, and every custom menu hack you've built over the years.

This isn't a cosmetic refresh. The shift to a sidebar-first layout is Odoo SA's answer to modern UX expectations: faster contextual navigation, reduced cognitive load, and a mobile-friendly shell that works across devices. But for partners and in-house teams, it means **every custom menu injection, CSS override, and JavaScript monkey-patch targeting the old `NavBar` component is now dead code.**

Worse, the new sidebar introduces a feature called **"Quick Actions"** (contextual shortcut buttons scoped to user groups) that most teams don't yet know how to use. As a result, companies either ignore the feature entirely, leaving productivity on the table, or try to brute-force it with DOM manipulation, creating a maintenance nightmare.

This post walks you through the architecture, the correct implementation pattern, and the three mistakes we see partners make repeatedly.

## How Odoo 19's Sidebar Replaces the Top-Bar Navigation Model

In Odoo 18 and earlier, the web client rendered a horizontal `NavBar` OWL component at the top of the viewport. App switching, menu items, and user actions all lived in that bar. Custom modules could inject items via `xpath` on the `navbar` template or by patching the `NavBar` component directly.

Odoo 19 replaces this with a **`Sidebar` OWL component** (`@web/core/sidebar/sidebar`) that renders as a vertical, collapsible panel on the left edge. The key architectural changes:

Component

The `NavBar` component is deprecated. The new `Sidebar` component owns app switching, menu tree rendering, user profile, and a new **Quick Actions slot**.

Menu Model

`ir.ui.menu` records now support a `sidebar_section` field (`selection`: `'primary'`, `'secondary'`, `'quick_action'`) that controls where the menu appears in the sidebar hierarchy.

Collapse

The sidebar has three states: **expanded**, **collapsed** (icon-only), and **hidden** (mobile), managed via a reactive `sidebarState` service. Custom UI must respect all three.

XML Attrs

New XML attributes (`sidebar_icon`, `sidebar_section`, `sidebar_priority`) replace the old `web_icon` and `sequence` patterns for positioning items.

Architecture Note

The sidebar isn't just a visual reshuffling. Internally, it uses a **slot-based rendering model**. The `Sidebar` component exposes named slots (`app-switcher`, `menu-tree`, `quick-actions`, `user-panel`) that sub-components fill. This is the hook you'll use for custom Quick Actions.

## Injecting Custom Quick Actions Into the Odoo 19 Sidebar for Specific User Groups

Quick Actions are contextual shortcut buttons that appear in the sidebar's dedicated slot. Out of the box, Odoo 19 ships a few: "New Sale Order," "New Invoice," "Log a Note." But the real power is in **defining your own, scoped to specific user groups,** without touching JavaScript.

### Step 1: Define the Menu Record

The cleanest approach uses `ir.ui.menu` with the new `sidebar_section` field. Here's the XML for a custom "Create RFQ" Quick Action visible only to the Purchase group:

XMLmy\_module/views/sidebar\_quick\_actions.xml

```
<odoo>
  <record id="quick_action_create_rfq" model="ir.ui.menu">
    <field name="name">Create RFQ</field>
    <field name="sidebar_section">quick_action</field>
    <field name="sidebar_icon">fa-file-text-o</field>
    <field name="sidebar_priority">20</field>
    <field name="action"
           ref="purchase.action_rfq_form"/>
    <field name="groups_id"
           eval="[(4, ref('purchase.group_purchase_user'))]"/>
  </record>
</odoo>
```

The key fields:

-   **`sidebar_section = 'quick_action'`** tells the Sidebar component to render this in the Quick Actions slot, not the menu tree.
-   **`sidebar_icon`** is the Font Awesome icon class. It renders in both expanded and collapsed states.
-   **`sidebar_priority`** is the integer that controls sort order within the Quick Actions slot (lower means higher).
-   **`groups_id`** is the standard Odoo access group scoping. Only users in `purchase.group_purchase_user` see this action.

### Step 2: For Complex Actions, Use an OWL Component

If your Quick Action needs more than a simple menu redirect (say, opening a wizard with pre-filled context or triggering an RPC call), you can register a custom OWL component into the `quick-actions` slot:

JavaScriptmy\_module/static/src/sidebar/quick\_stock\_check.js

```
/** @odoo-module **/
import { registry } from "@web/core/registry";
import { Component, xml } from "@odoo/owl";
import { useService } from "@web/core/utils/hooks";

class QuickStockCheck extends Component {
    static template = xml`
        <button class="btn btn-sidebar-quick-action"
                t-on-click="onCheck"
                t-att-title="props.collapsed ? 'Stock Check' : ''">
            <i class="fa fa-cubes"/>
            <span t-if="!props.collapsed"
                  class="ms-2">Stock Check</span>
        </button>
    `;
    static props = {
        collapsed: { type: Boolean },
    };

    setup() {
        this.action = useService("action");
        this.user = useService("user");
    }

    async onCheck() {
        // Only meaningful for warehouse users; extra
        // guard beyond group_id XML scoping
        if (!this.user.hasGroup(
            "stock.group_stock_user"
        )) return;

        await this.action.doAction({
            type: "ir.actions.act_window",
            res_model: "stock.quant",
            views: [[false, "list"], [false, "form"]],
            target: "current",
            context: {
                search_default_internal_loc: 1,
            },
        });
    }
}

// Register in the sidebar quick-actions registry
// Priority 30 = appears after default actions
registry
    .category("sidebar_quick_actions")
    .add("quick_stock_check", {
        Component: QuickStockCheck,
        groupId: "stock.group_stock_user",
        priority: 30,
    });
```

First, the component receives a `collapsed` prop: you **must** handle this to render correctly in icon-only mode. Second, registration in the `sidebar_quick_actions` registry category accepts a `groupId` key that the Sidebar reads at mount time to filter visible actions.

Pro-Tip

Never hard-code group checks in JavaScript alone. Always pair them with the XML `groups_id` or registry `groupId` so that the server-side menu filtering also excludes the action. The JS check is a UX safeguard, not a security boundary.

## Odoo 18 Top-Bar vs. Odoo 19 Sidebar: A Technical Comparison

The table below summarizes the practical migration deltas. If you're planning an upgrade, this is your checklist.

| Aspect | Odoo 18 (Top-Bar) | Odoo 19 (Sidebar) |
| --- | --- | --- |
| **Shell component** | `NavBar` (horizontal) | `Sidebar` (vertical, collapsible) |
| **Menu injection** | `xpath` on `navbar` template | `sidebar_section` field + registry slot |
| **Icon field** | `web_icon` (base64 PNG) | `sidebar_icon` (FA class string) |
| **Ordering** | `sequence` on `ir.ui.menu` | `sidebar_priority` (integer, lower = higher) |
| **Quick shortcuts** | Not native; required JS patch | Native `quick_action` section + OWL slot |
| **Responsive states** | Hamburger menu (basic) | Expanded / Collapsed / Hidden (reactive service) |
| **Custom component** | Monkey-patch `NavBar` | Register in `sidebar_quick_actions` registry |
| **Group scoping** | `groups_id` on menu only | `groups_id` on menu + `groupId` in registry |

Migration Note

During migration, run `odoo-bin --update=base,web` to regenerate the menu tree with the new sidebar fields. Menus without a `sidebar_section` default to `'primary'`, so existing menus still render, but Quick Actions must be explicitly created.

EXPERT INSIGHTS

## 3 Gotchas That Catch Every Team (and How We Handle Them)

After migrating multiple enterprise clients to Odoo 19's sidebar, these are the recurring pitfalls we see, even from experienced partners.

1

### Ignoring the Collapsed State

The most common bug: custom Quick Actions look fine when the sidebar is expanded, but render broken text or invisible buttons when collapsed. The sidebar's collapsed mode only shows icons, so your component **must** conditionally hide text labels via the `collapsed` prop. We enforce this in code review with a linting rule that flags any `sidebar_quick_actions` component missing a `t-if="!props.collapsed"` guard on text nodes.

2

### Overloading the Quick Actions Slot

We've seen modules dump 15+ Quick Actions into the sidebar. This defeats the purpose: it's supposed to surface the **2-4 most critical shortcuts** per user role. Odoo's own UX guidelines recommend a maximum of 5. Beyond that, the sidebar scroll becomes the new "mega menu" problem. Our rule of thumb: if you can't justify the action as "used daily by this role," it belongs in the menu tree, not Quick Actions.

3

### CSS Overrides That Break on Theme Updates

The sidebar uses CSS custom properties (`--sidebar-width`, `--sidebar-bg`, `--sidebar-collapsed-width`) controlled by the theme engine. Hard-coding pixel widths or background colors in your module's SCSS will break the next time the client switches themes or Odoo updates its design tokens. **Always extend the custom properties.** Never override them. We maintain a small SCSS mixin library that inherits from Odoo's variables so our customizations survive upgrades.

## Business ROI: Why Sidebar Quick Actions Save Real Money

This might sound like a purely technical concern, but the business impact is measurable.

**Reduced click-to-action time.** In the top-bar model, creating a purchase RFQ from the home screen took 3-4 clicks (Home → Purchase → RFQ → Create). A properly configured Quick Action reduces this to 1 click from anywhere in the system. For a procurement team processing 50+ RFQs per day, that's roughly **15-20 minutes saved daily per user**.

**Role-specific UX.** By scoping Quick Actions to user groups, warehouse staff see "Stock Check" and "Receive Goods," while accountants see "New Invoice" and "Bank Reconciliation." This reduces interface noise and shortens onboarding time for new hires. One client reported a **30% reduction in first-week support tickets** after deploying role-scoped Quick Actions.

**Lower maintenance cost.** The registry-based approach replaces fragile JavaScript monkey-patches. When Odoo 19.1 or 19.2 ships incremental updates, your Quick Actions survive without re-engineering. One partner estimated they saved **40+ hours per upgrade cycle** by moving from patched NavBar extensions to the native sidebar registry.

ROI Snapshot

For a 25-user company, well-implemented Quick Actions can recover 6-8 hours of cumulative productivity per week. At a blended cost of €45/hour, that's roughly **€15,000/year** in operational efficiency, from a feature that takes less than a day to implement correctly.

[Add Octura Solutions as preferred source](https://www.google.com/preferences/source?q=octurasolutions.com "Add Octura Solutions as a preferred source on Google")

Migrating to Odoo 19's new sidebar UI?

### Let's review your custom modules together

[Book a free consultation](/schedule)

#### Related Resources

-   BlogMarch 3, 2026[The Customization Trap: Why "Standard" Odoo is Your Secret to Scalability](/resources/the-customization-trap-why-standard-odoo-is-your-secret-to-long-term-scalability)
-   BlogMarch 3, 2026[The Truth About Odoo Failures: 5 Reasons Implementations Stall](/resources/the-truth-about-odoo-failures-5-reasons-implementations-stall)