diff --git a/addons/mrp_operations/test/mrp_operations.yml b/addons/mrp_operations/test/mrp_operations.yml index 4faf9b0e6d8..0b97486c2aa 100644 --- a/addons/mrp_operations/test/mrp_operations.yml +++ b/addons/mrp_operations/test/mrp_operations.yml @@ -14,6 +14,7 @@ product_qty: 5.0 product_uom: product.product_uom_unit product_uos_qty: 5.0 + allow_reorder: True - I am computing the data. - @@ -123,13 +124,6 @@ !workflow {model: mrp.production, action: button_produce, ref: mrp_production_mo0} - I check that the related work order is in progress state. -- - !python {model: mrp.production.workcenter.line}: | - from tools.translate import _ - order_id = self.search(cr, uid, [('production_id','=', ref('mrp_production_mo0')),('state','=','startworking')]) - assert order_id, _('Work order not started yet!') -- - I check that the related work order is in progress state. - !python {model: mrp.production.workcenter.line}: | from tools.translate import _ @@ -163,3 +157,8 @@ from tools.translate import _ order_id = self.search(cr, uid, [('production_id','=', ref('mrp_production_mo0')),('state','=','done')]) assert order_id, _('Work order not done yet!') +- + Calculates start date for stock moves finding interval from resource calendar. +- + !python {model: mrp.production}: | + self._move_pass(cr, uid, [ref('mrp_production_mo0')], context=None) \ No newline at end of file diff --git a/addons/mrp_repair/mrp_repair.py b/addons/mrp_repair/mrp_repair.py index 3a538590d10..6ea2a7d01c8 100644 --- a/addons/mrp_repair/mrp_repair.py +++ b/addons/mrp_repair/mrp_repair.py @@ -105,8 +105,6 @@ class mrp_repair(osv.osv): return res def _get_lines(self, cr, uid, ids, context=None): - if context is None: - context = {} result = {} for line in self.pool.get('mrp.repair.line').browse(cr, uid, ids, context=context): result[line.repair_id.id] = True