How do I stop a reverse transfer from being done for more than the delivered quantity on the Sales Order? At the moment my team can change the quantity on the Reverse Transfer to more than was delivered, this then leave the sales order with a negative delivered quantity.
I have a simple Automated action that stops delivering more product than is ordered. This is run on the Stock Move model, matching all records, and executes the python code.
if record.product_uom_qty
raise UserError("You can't transfer more than the Initial Demand!")
I can't work out how to write this for a Reverse Transfer (Return Picking model) where the quantity gets compared to the delivered quantity on the sales order.
Any help would be appreciated.
We are in the same page mate, can you share the server action for avoid delivering more product than is ordered?
Thanks.