diff options
| author | Josse Colpaert <jco@odoo.com> | 2018-02-21 16:18:39 +0100 |
|---|---|---|
| committer | Josse Colpaert <jco@odoo.com> | 2018-02-21 17:14:13 +0100 |
| commit | 6ec6d3e8a1a02cb076bfbeb538a0615700d7043f (patch) | |
| tree | d0e36f65023f290ef03b4964dba9f613bdc82394 | |
| parent | cb53485d71771242b67a52c9e30bb35e23b81efa (diff) | |
[FIX] stock: remove action_traceability method on lot fixes #22299
| -rw-r--r-- | addons/stock/models/stock_production_lot.py | 14 |
1 files changed, 0 insertions, 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'} |
