[IMP] stock_move_auto_assign_auto_release: Release release_ready pickings instead of moves

Instead of just releasing the release ready moves of a give product
it now releases the whole transfer
This ensures that a transfer with a release_policy=one gets not split
This commit is contained in:
Michael Tietz
2024-07-30 14:31:13 +02:00
parent 18c4152e18
commit 6eb9c8f95a
6 changed files with 97 additions and 15 deletions

View File

@@ -1,12 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record
id="job_function_product_product_moves_auto_release"
id="job_function_product_product_pickings_auto_release"
model="queue.job.function"
>
<field name="model_id" ref="product.model_product_product" />
<field name="method">moves_auto_release</field>
<field name="method">pickings_auto_release</field>
<field name="channel_id" ref="channel_stock_auto_release" />
</record>
<record id="job_function_stock_picking_auto_release" model="queue.job.function">
<field name="model_id" ref="stock.model_stock_picking" />
<field name="method">auto_release_available_to_promise</field>
<field name="channel_id" ref="channel_stock_auto_release" />
<field name="retry_pattern" eval="{1: 1, 5: 5, 10: 10, 15: 30}" />
</record>
</odoo>