Kirti Savalia(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-805503-ksa into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #805503 in OpenERP Addons: "mrp - moving an MO to another day does not
change the workorders date and time"
https://bugs.launchpad.net/openobject-addons/+bug/805503
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-805503-ksa/+merge/69602
change schedule date in MO according to change the schedule date in work orders.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-805503-ksa/+merge/69602
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-805503-ksa.
=== modified file 'mrp_operations/mrp_operations.py'
--- mrp_operations/mrp_operations.py 2011-07-01 23:41:24 +0000
+++ mrp_operations/mrp_operations.py 2011-07-28 09:03:35 +0000
@@ -296,7 +296,8 @@
old = wc.sequence or 0
super(mrp_production, self).write(cr, uid, [po.id], {
- 'date_finished': dt_end
+ 'date_finished': dt_end,
+ 'date_start': po.date_planned
})
return dt_end
@@ -354,7 +355,7 @@
for po in self.browse(cr, uid, ids, context=context):
direction[po.id] = cmp(po.date_start, vals.get('date_start', False))
result = super(mrp_production, self).write(cr, uid, ids, vals, context=context)
- if (vals.get('workcenter_lines', False) or vals.get('date_start', False)) and update:
+ if (vals.get('workcenter_lines', False) or vals.get('date_start', False)) or vals.get('date_planned', False) and update:
self._compute_planned_workcenter(cr, uid, ids, context=context, mini=mini)
for d in direction:
if direction[d] == 1:
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp