Merge lp:~openerp-dev/openobject-addons/trunk-bug-805503-ksa into lp:openobject-addons

Proposed by Kirti Savalia(OpenERP)
Status: Rejected
Rejected by: Fabien (Open ERP)
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-805503-ksa
Merge into: lp:openobject-addons
Diff against target: 22 lines (+3/-2)
1 file modified
mrp_operations/mrp_operations.py (+3/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-805503-ksa
Reviewer Review Type Date Requested Status
Rucha (Open ERP) (community) Approve
qdp (OpenERP) Pending
Review via email: mp+69602@code.launchpad.net

Description of the change

change schedule date in MO according to change the schedule date in work orders.

To post a comment you must log in.
Revision history for this message
Rucha (Open ERP) (rpa-openerp) :
review: Approve
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

I don't think we want this effect to apply automatically.

Unmerged revisions

4898. By Kirti Savalia(OpenERP)

[FIX]:change schedule date in MO according to change the schedule date in work orders

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mrp_operations/mrp_operations.py'
2--- mrp_operations/mrp_operations.py 2011-07-01 23:41:24 +0000
3+++ mrp_operations/mrp_operations.py 2011-07-28 09:03:35 +0000
4@@ -296,7 +296,8 @@
5
6 old = wc.sequence or 0
7 super(mrp_production, self).write(cr, uid, [po.id], {
8- 'date_finished': dt_end
9+ 'date_finished': dt_end,
10+ 'date_start': po.date_planned
11 })
12 return dt_end
13
14@@ -354,7 +355,7 @@
15 for po in self.browse(cr, uid, ids, context=context):
16 direction[po.id] = cmp(po.date_start, vals.get('date_start', False))
17 result = super(mrp_production, self).write(cr, uid, ids, vals, context=context)
18- if (vals.get('workcenter_lines', False) or vals.get('date_start', False)) and update:
19+ if (vals.get('workcenter_lines', False) or vals.get('date_start', False)) or vals.get('date_planned', False) and update:
20 self._compute_planned_workcenter(cr, uid, ids, context=context, mini=mini)
21 for d in direction:
22 if direction[d] == 1:

Subscribers

People subscribed via source and target branches

to all changes: