From 6ec6d3e8a1a02cb076bfbeb538a0615700d7043f Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Wed, 21 Feb 2018 16:18:39 +0100 Subject: [PATCH] [FIX] stock: remove action_traceability method on lot fixes #22299 --- addons/stock/models/stock_production_lot.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/addons/stock/models/stock_production_lot.py b/addons/stock/models/stock_production_lot.py index 06cc2917502..4fc1092839d 100644 --- a/addons/stock/models/stock_production_lot.py +++ b/addons/stock/models/stock_production_lot.py @@ -42,17 +42,3 @@ class ProductionLot(models.Model): # We only care for the quants in internal or transit locations. quants = self.quant_ids.filtered(lambda q: q.location_id.usage in ['internal', 'transit']) self.product_qty = sum(quants.mapped('quantity')) - - @api.multi - def action_traceability(self): - move_ids = self.mapped('quant_ids').mapped('history_ids').ids - if not move_ids: - return False - return { - 'domain': [('id', 'in', move_ids)], - 'name': _('Traceability'), - 'view_mode': 'tree,form', - 'view_type': 'form', - 'context': {'tree_view_ref': 'stock.view_move_tree'}, - 'res_model': 'stock.move', - 'type': 'ir.actions.act_window'}