Connectors mailing list archives

connectors@odoo-community.org

Avatar

Automatic Workflows

by
michael
- 12/11/2015 18:16:09
Hi guys,

I have a question regarding the Automatic Workflow. I would like to achieve the following scenario when I import an order with the Magento Connector:

1) Product is on Stock:
 - Order should be picked
 - Invoice should be generated
 - Order should be closed

2) Product is not on Stock:
 - The reordering rule should generate a RFQ for the open quantity
 - The order should stay open until the PO is received
 - After the receipt the Order should be picked, the invoice should be generated and the order should be closed

I experimented a lot with the Automatic Settings but I can’t get it right at this point. My settings at the moment are the following:
 - Shipping Policy: Deliver all products at once
 - Invoice Policy: On Delivery Order
 - Invoice on: Ordered Quantities
 - Validate Order: check
 - Confirm and Close Picking: check
 - Create Invoice: After Delivery
 - Validate Invoice: check
 - Force Invoice Date: not checked

These settings achieve the following:
 - Scenario 1 works
 - Scenario 2 does not work, because the order is closed even if there is not enough stock. The schedule although creates based on the reordering rule a RFQ.

So the question is, how do I achieve that the order stays open as long as there is not enough inventory to fulfill the order?

Thanks,
Michael