[FIX] Check for track_all

This commit is contained in:
Stefan Rijnhart
2015-02-11 10:34:07 +01:00
committed by Pedro M. Baeza
parent 129878e4c5
commit fa92a220ff

View File

@@ -43,7 +43,7 @@ class MrpWorkOrderProduce(models.TransientModel):
def _get_track(self):
prod = self._get_product_id()
return prod and prod.track_production or False
return prod and (prod.track_all or prod.track_production) or False
def do_produce(self, cr, uid, ids, context=None):
work_line = self.pool['mrp.production.workcenter.line'].browse(