[IMP]:check planned end date for production order in mrp operation

bzr revid: ksa@tinyerp.com-20110920072144-v5irvw226evkt8uv
This commit is contained in:
Kirti Savalia (OpenERP) 2011-09-20 12:51:44 +05:30
parent ed2f99fe34
commit 277af72747
1 changed files with 9 additions and 1 deletions

View File

@ -161,4 +161,12 @@
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)
self._move_pass(cr, uid, [ref('mrp_production_mo0')], context=None)
-
Calculates planned end date of production order.
-
!python {model: mrp.production}: |
mo = self.browse(cr, uid, ref("mrp_production_mo0"))
prop=mo.date_planned
unknow_none=False
self._production_date_end(cr, uid, [ref("mrp_production_mo0")], prop, unknow_none, context=None)