purchase_operating_unit
Adds operating unit handling to purchase orders so purchasing documents and invoices stay aligned with organizational units and related security.
Key Features
- purchase.order: Adds operating unit and requesting operating unit fields defaulting to the user's operating unit with company consistency validation.
- purchase.order: Propagates the purchase order's operating unit to generated vendor bills.
- purchase.order.line: Exposes the operating unit from the parent purchase order on lines for visibility and grouping.
- account.move: Automatically applies the purchase order's operating unit when populating a vendor bill and limits selectable purchase orders to those in the same operating unit.
- account.move.line: Blocks invoice lines from using an operating unit different from their linked purchase line.
- security: Limits read access to purchase orders and lines to the user's allowed operating units.
- purchase.order views: Shows operating unit fields on purchase orders with defaulted context for new lines and adds search and grouping by operating unit.
- purchase.order.line views: Adds operating unit columns and search grouping on purchase order lines.
- purchase.report: Enables filtering and grouping purchase analysis by operating unit.