[ADD] website_sale_aplicoop: create picking batches after cutoff
- Add stock_picking_batch dependency to manifest - Add cutoff date validation in _confirm_linked_sale_orders() - Create _create_picking_batches_for_sale_orders() method - Group pickings by consumer_group_id into separate batches - Set batch scheduled_date from group order pickup_date - Add test_cron_picking_batch.py with 7 tests covering: - Skip orders before cutoff - Confirm orders after cutoff - Separate batches per consumer group - Same group orders in same batch - Batch has scheduled_date - No duplicate batches on re-run - Closed group orders not processed
This commit is contained in:
parent
c3173a32c9
commit
e2ced75ecd
4 changed files with 455 additions and 11 deletions
|
|
@ -16,6 +16,7 @@
|
|||
"product",
|
||||
"sale",
|
||||
"stock",
|
||||
"stock_picking_batch",
|
||||
"account",
|
||||
"product_get_price_helper",
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue