We use re-ordering rules in order to automate generating purchase orders for products.
However, we need to delay the generation of the purchase order until the user confirms the sales order by setting a custom flag on the sale order itself.
I am thinking of overriding the "procurement_order._procure_orderpoint_confirm" method in ordet to check the value of the custom flag before creating a new procurement order record. However, there is no "ids" parameter in the method "procurement_order._procure_orderpoint_confirm" signature. I need the "ids" parameter in order to be able to access the procurement order object.
How can I delay generating purchase orders based on reordering rules, until the users sets my custom flag on the sale order?
Thanks