OdooWiki OCA HUB

Sale Exception Product Manufactured for Customer

sale_exception_product_sale_manufactured_for folder_open OCA/sale-workflow open_in_new
Sales License: AGPL-3

The partner set in the sales order can order only if he/she has a commercial entity that is listed as one of the partners for which the products can be manufactured for.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a blocking sales exception that prevents confirming a sales order when the customer is not allowed to buy the products that are restricted to specific manufacturing partners.

This module adds a new blocking rule to the sales exception system. When a user tries to confirm a sales order, Odoo checks whether the customer is allowed to buy every product on the order.

  • The rule looks at the customer's commercial entity (the company the contact belongs to).
  • For each product on the order that is linked to one or more partners for which it can be manufactured, the customer's commercial entity must be one of those allowed partners.
  • If the customer has no commercial entity and at least one product on the order has such a restriction, the order is blocked.
  • If the customer has a commercial entity but it is not in the allowed list for a restricted product, the order is blocked.
  • If no product on the order has any manufacturing-partner restriction, the order is allowed.

The rule is defined as a sales exception on sale.order and is marked as blocking, so the user cannot confirm the order until the issue is resolved. The rule appears in the sales exception configuration area, where it can be reviewed or disabled if needed. The module depends on the sales exception framework and on the product manufacturing-partner feature, and it only adds this check; it does not change any other sales behaviour.

Models and fields (1)
  • sale.order · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 18.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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/sale-workflow.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.