[IMP]:check start date for stock move in mrp operation and remove unuse line in mrp repair
bzr revid: ksa@tinyerp.com-20110920071905-7a9cr3l5cvwkwjh9
This commit is contained in:
parent
53b4bdc2a3
commit
ed2f99fe34
|
@ -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)
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue