from odoo import models class StockMove(models.Model): _inherit = 'stock.move' def _should_bypass_set_qty_producing(self): """ Prevent auto-update of consumed quantity if: - The move already has a quantity set (partial consumption). - The move is already picked. """ if self.quantity > 0: return True return super()._should_bypass_set_qty_producing()