[18.0][ADD] barcode_stock_cycle_count #21
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.48) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 505 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.373
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #21"
general
weight: 0.35
edescalona
Summary
barcode_stock_cycle_countexposes OCAstock_cycle_countcycle counts in the Odoo Barcode app, so an operator can execute a planned or open count from a scanner instead of the Inventory adjustment form.It does not reimplement cycle-count or inventory-adjustment logic. It reuses the count's linked
stock.inventoryadjustment and the existing OCA actions that start, apply and close it, and adds barcode screens and guarded RPC methods around them.Why it is needed
stock_cycle_countcan schedule counts and create their inventory adjustments, but executing a count still requires the back-office Inventory UI. Warehouse operators need to walk to the location, scan products and lots/serials, see theoretical, counted and difference quantities, and apply or close the count on the spot.What it does
write_datecheck, so a concurrent change is detected instead of overwritten.action_apply_inventory, or closes a zero-difference count only after an explicit confirmation.stock.cycle.countandstock.inventory.The PR also fixes
barcode_scannerfeedback notifications so anerrorlevel is sent to Odoo asdangerinstead of an invaliderrornotification type, with a HOOT regression test.How to use
1. Install
barcode_stock_cycle_count; it auto-installs whenbarcode_scannerandstock_cycle_countare installed.2. In Inventory, configure a Cycle Count Rule and let it generate a count, or create a planned count manually for a location that holds stock quants.
3. Open the Barcode app and tap Cycle Count.
4. Select the count, confirm/scan the expected location, then scan products and lots/serials (or enter quantities manually).
5. Save the lines, then apply the differences. If every line matches, confirm the zero-difference close.
Cycle counts operate on existing stock quants. Scanning a product does not create a quant. If no quant matches, or more than one matches the product and its lot/serial identity, regularize the stock through the normal Inventory flow and retry.
How to test
Manual:
1. Install the module and create a planned cycle count with at least one stock quant in its location.
2. Run through Cycle Count → select count → location → count → done, and check the linked adjustment and the cycle count state after applying.
3. Check the guards: a wrong location scan, a count assigned to another user (hidden by default), a missing or ambiguous lot/serial, a zero-difference close without confirmation, and a line changed in another session before saving.
Reference: @BinhexTeam T26644