# Checkpoint 251 — BE-152 supplier RFQ draft and independent authorization

**Status: PARTIAL.** The React end-user workflow is implemented and has isolated two-role acceptance evidence. Broader production role/company acceptance, Arabic model evaluation, and full A1–A4/DoD remain open.

## Workflow delivered

- An authorized PM can ask local Qwen for bilingual supplier wording from an approved purchase request, active company supplier, outstanding request lines, and linked confirmed BOQ/project sources.
- The model output has a strict schema and may cite only source IDs returned by the authorized Odoo snapshot. The BFF validates the response before save.
- Odoo checks role, company, source access, source revision and line state; it stores an auditable pending `be.ai.suggestion` with author, time and cited source snapshot.
- A separate Procurement/Owner reviewer must provide a rationale. Authorization uses the native OCA purchase-request wizard to create one linked **draft** purchase order. It never confirms the order or sends supplier email. Reject creates no purchase order.
- Retry of the same source/supplier/revision is idempotent. Stale source edits and cross-company access are denied.

## Verification

- Focused native Odoo lifecycle/security tests: **4 passed, 0 failures/errors** on a disposable database clone.
- Authenticated React → BFF → local Qwen 3.8 27B → Odoo two-role Playwright journey: **1 passed**. PM generated and reopened the cited pending draft; independent Procurement authorized it.
- Persisted checks: suggestion author 185 and reviewer 186; fixture request 1 advanced to `in_progress`; exactly one source-linked PO `P00049` exists in `draft`; company 1, supplier 527 and project 304 match the source; subject/message/uncertainty and citations persisted; **0 emails**.
- Disposable database, BFF container and image were removed. Source database `be_qa_demo_full_20261025` was unchanged.
- A test exposed and fixed a falsey empty-model-recordset check that hid the PM action. The live QA runner now installs the bridge's missing `be_supplier` dependency and restarts Odoo after upgrading the clone, ensuring HTTP QA uses current model code.

Evidence: [native QA](PURCHASE_RFQ_AI_NATIVE_QA.json), [live QA](PURCHASE_RFQ_AI_LIVE_QA.json), [pending draft screenshot](frontend/screenshots/live-purchase-rfq-ai-pending.png), [review screenshot](frontend/screenshots/live-purchase-rfq-ai-review.png), [authorized draft screenshot](frontend/screenshots/live-purchase-rfq-ai-authorized.png), and [traceability](../REQUIREMENTS_TRACEABILITY.md).
