OdooWiki OCA HUB

Operating Unit in Sales

sale_operating_unit folder_open OCA/operating-unit open_in_new
Sales Management License: LGPL-3

This module extends the Sales capabilities of Odoo and introduces the operating unit to the Sales Order. Security rules are defined to ensure that users can only display the Sales Orders in which they are allowed access to.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds an Operating Unit to quotations, sales orders and sales analysis, so each sale belongs to a specific organizational unit. Users only see sales orders, order lines and sales reports for the operating units they are allowed to access.

This module brings the Operating Unit concept into the Sales app. On a quotation or sales order you get a new Operating Unit field, shown next to the salesperson in the form and in the quotation/order lists (only for users with the multi operating unit group). It is editable while the order is still a draft or sent, and becomes read-only afterwards.

The operating unit is normally taken automatically from the sales team: choosing a team fills in its operating unit. If you later change the team or the unit so they no longer match, Odoo blocks the change with a configuration error. The same check exists on sales teams themselves: you cannot change a team's operating unit if existing sales orders still point to a different one.

The sales journal is also filtered by operating unit: Odoo automatically picks a sales journal belonging to the same unit (or a shared one), and the journal field only offers journals matching the order's unit. When you invoice the order, the operating unit is carried over to the created invoice.

Sales order lines inherit the operating unit from their order, and the Sales Analysis report can be filtered and grouped by operating unit. Security rules restrict reading of sales orders, order lines and the sales report to the operating units the user is allowed to see.

Models and fields (4)
  • crm.team · extends an existing model
  • sale.order · extends an existing modeloperating_unit_id (Operating Unit)
  • sale.report · extends an existing modeloperating_unit_id
  • sale.order.line · extends an existing modeloperating_unit_id (Operating Unit)

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/operating-unit.

terminal Installation and usage

OCA documentation · Odoo 19.0

Follow these steps:

  • Create a Sale Order.
  • The Operating Unit of the Sale Team is assigned to the Sale Order.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.