diff --git a/move.py b/move.py index f2019cbee8..a86ae91da5 100644 --- a/move.py +++ b/move.py @@ -632,22 +632,7 @@ class Move(Workflow, ModelSQL, ModelView): @ModelView.button @Workflow.transition('cancel') def cancel(cls, moves): - pool = Pool() - Date = pool.get('ir.date') - - today = Date.today() - for move in moves: - move.effective_date = today - if (move.from_location.type in ('supplier', 'production') - and move.to_location.type == 'storage' - and move.product.cost_price_method == 'average'): - move._update_product_cost_price('out') - elif (move.to_location.type == 'supplier' - and move.from_location.type == 'storage' - and move.product.cost_price_method == 'average'): - move._update_product_cost_price('in') - move.effective_date = None - move.save() + pass @classmethod def create(cls, vlist):