diff --git a/README.md b/README.md index 54894fc..64e13eb 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This Odoo module customizes the behavior of Manufacturing Orders (MO) regarding 1. **Lock Consumed Quantity**: - Prevents the automatic update of a component's "Consumed" quantity when the MO's "Quantity to Produce" is changed, **IF**: - The component already has a manually entered "Consumed" quantity (greater than 0). - - OR the component has already been marked as picked. + - If a component has 0 consumed quantity and is not picked, it will continue to scale automatically based on the BOM ratio (standard behavior). 2. **Safety Check for Negative Stock**: diff --git a/models/stock_move.py b/models/stock_move.py index d8c88dc..e597936 100644 --- a/models/stock_move.py +++ b/models/stock_move.py @@ -9,6 +9,6 @@ class StockMove(models.Model): - The move already has a quantity set (partial consumption). - The move is already picked. """ - if self.quantity > 0 or self.picked: + if self.quantity > 0: return True return super()._should_bypass_set_qty_producing()