[FIX] stock_picking_batch_custom: prevent product_id null error on summary lines

- Use regular dict instead of defaultdict to avoid empty entries
- Make summary_line_ids readonly=True to prevent UI from inserting empty lines
- Add SQL constraint CHECK(product_id IS NOT NULL) as safeguard
- Use boolean_toggle widget for is_collected field
- Fix tests to use TransactionCase and invalidate_recordset
- Add test for empty batch + add pickings + confirm flow
This commit is contained in:
snt 2026-03-05 21:47:18 +01:00
parent ad8b759643
commit 3eeca66551
5 changed files with 304 additions and 45 deletions

View file

@ -0,0 +1 @@
from . import test_batch_summary # noqa: F401