Merge lp:~unifield-team/unifield-server/us-1713 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 3976
Proposed branch: lp:~unifield-team/unifield-server/us-1713
Merge into: lp:unifield-server
Diff against target: 24 lines (+4/-3)
1 file modified
bin/addons/purchase_override/purchase.py (+4/-3)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-1713
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+307170@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/purchase_override/purchase.py'
2--- bin/addons/purchase_override/purchase.py 2016-09-08 12:01:45 +0000
3+++ bin/addons/purchase_override/purchase.py 2016-09-29 12:10:17 +0000
4@@ -1361,9 +1361,6 @@
5 list_po_name = ', '.join([linked_po['name'] for linked_po in self.read(cr, uid, ids_to_read, ['name'], context)])
6 self.log(cr, uid, ids[0], _("The order %s is in confirmed (waiting) state and will be confirmed once the related orders [%s] would have been confirmed"
7 ) % (self.read(cr, uid, ids[0], ['name'])['name'], list_po_name))
8- # sale order lines with modified state
9- if sol_ids:
10- sol_obj.write(cr, uid, sol_ids, {'state': 'confirmed'}, context=context)
11
12 # !!BEWARE!! we must update the So lines before any writing to So objects
13 for po in self.browse(cr, uid, ids, context=context):
14@@ -1373,6 +1370,10 @@
15 del context['wait_order']
16 self.infolog(cr, uid, "The PO id:%s (%s) has been confirmed" % (po.id, po.name))
17
18+ # sale order lines with modified state
19+ if sol_ids:
20+ sol_obj.write(cr, uid, sol_ids, {'state': 'confirmed'}, context=context)
21+
22 return True
23
24 def compute_confirmed_delivery_date(self, cr, uid, ids, confirmed, prep_lt, ship_lt, est_transport_lead_time, db_date_format, context=None):

Subscribers

People subscribed via source and target branches

to all changes: