OdooWiki OCA HUB

Purchase Request Exception

purchase_request_exception folder_open OCA/purchase-workflow open_in_new
Generic Modules/Purchase License: AGPL-3

This module allows you attach several customizable exceptions to your purchase request in a way that you can filter requests by exceptions type and fix them.

This is especially useful in an scenario for mass purchases requests import, because it's likely some orders have errors when you import them (like product not found in Odoo, wrong line format etc.)

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds customizable exception rules to purchase requests so blocked requests are flagged, filtered and can be reviewed or ignored before approval.

This module lets you define your own exception rules for purchase requests and their lines, and it automatically checks requests against them.

  • Rules are managed from a new menu under Purchase configuration, where you can create rules that apply to purchase.request or purchase.request.line. Two example rules are provided but switched off: "No approver" (request has no approver) and "Quantity not positive" (line quantity below zero).
  • When a request is sent for approval, exceptions are detected. If any are found, a popup wizard lists the outstanding exceptions so you can review them.
  • On the request form a red warning banner shows the exception summary, and a button lets authorised users ignore the exceptions. The request list shows the main exception, and the search view has a "Blocked in Draft" filter to find requests with exceptions.
  • A scheduled job (inactive by default) can periodically test all draft requests for exceptions.
  • When a request is reset to draft, its exceptions and the ignore flag are cleared.

It touches purchase.request, purchase.request.line, exception.rule and adds the purchase.request.exception.confirm wizard.

Required by other modules

Menus it adds

menu_purchase_request_test
Models and fields (4)
  • exception.rule · extends an existing modelmodel, purchase_request_ids (Purchase Requests)
  • purchase.request · new model
  • purchase.request.line · new modelignore_exception (Ignore Exceptions)
  • purchase.request.exception.confirm · new modelrelated_model_id

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: 4 confirmed, 5 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/purchase-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.