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

Proposed by jftempo
Status: Merged
Merged at revision: 3909
Proposed branch: lp:~unifield-team/unifield-server/us-1563
Merge into: lp:unifield-server
Diff against target: 40 lines (+7/-6)
2 files modified
bin/addons/sale_override/sale.py (+1/-1)
bin/addons/sourcing/sale_order_line.py (+6/-5)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-1563
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+302428@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
=== modified file 'bin/addons/sale_override/sale.py'
--- bin/addons/sale_override/sale.py 2016-07-13 13:27:48 +0000
+++ bin/addons/sale_override/sale.py 2016-08-09 15:06:08 +0000
@@ -2910,7 +2910,7 @@
2910 self.infolog(cr, uid, "The line id:%s (line number: %s) of the %s id:%s (%s) has been deleted." % ltl)2910 self.infolog(cr, uid, "The line id:%s (line number: %s) of the %s id:%s (%s) has been deleted." % ltl)
29112911
2912 if lines_to_check:2912 if lines_to_check:
2913 self.check_confirm_order(cr, uid, lines_to_check, run_scheduler=False, context=context)2913 self.check_confirm_order(cr, uid, lines_to_check, run_scheduler=False, context=context, update_lines=False)
29142914
2915 return res2915 return res
29162916
29172917
=== modified file 'bin/addons/sourcing/sale_order_line.py'
--- bin/addons/sourcing/sale_order_line.py 2016-06-09 13:56:58 +0000
+++ bin/addons/sourcing/sale_order_line.py 2016-08-09 15:06:08 +0000
@@ -1263,7 +1263,7 @@
12631263
1264 return True1264 return True
12651265
1266 def check_confirm_order(self, cr, uid, ids, run_scheduler=False, context=None):1266 def check_confirm_order(self, cr, uid, ids, run_scheduler=False, context=None, update_lines=True):
1267 """1267 """
1268 Run the confirmation of the FO/IR if all lines are confirmed1268 Run the confirmation of the FO/IR if all lines are confirmed
1269 :param cr: Cursor to the database1269 :param cr: Cursor to the database
@@ -1290,10 +1290,11 @@
1290 if order_data['state'] != 'validated':1290 if order_data['state'] != 'validated':
1291 continue1291 continue
1292 state_to_use = order_proc and 'confirmed' or 'sourced'1292 state_to_use = order_proc and 'confirmed' or 'sourced'
1293 self.write(cr, uid, [line['id']], {1293 if update_lines:
1294 'state': state_to_use,1294 self.write(cr, uid, [line['id']], {
1295 'cf_estimated_delivery_date': line['estimated_delivery_date'],1295 'state': state_to_use,
1296 }, context=context)1296 'cf_estimated_delivery_date': line['estimated_delivery_date'],
1297 }, context=context)
1297 if line['order_id'][0] not in order_to_check:1298 if line['order_id'][0] not in order_to_check:
1298 order_to_check.update({line['order_id'][0]: state_to_use})1299 order_to_check.update({line['order_id'][0]: state_to_use})
12991300

Subscribers

People subscribed via source and target branches

to all changes: