Merge lp:~jfb-tempo-consulting/unifield-server/us-3440 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4506
Proposed branch: lp:~jfb-tempo-consulting/unifield-server/us-3440
Merge into: lp:unifield-server
Diff against target: 22 lines (+5/-0)
1 file modified
bin/addons/sale_override/sale.py (+5/-0)
To merge this branch: bzr merge lp:~jfb-tempo-consulting/unifield-server/us-3440
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+331312@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/sale_override/sale.py'
2--- bin/addons/sale_override/sale.py 2017-08-25 15:37:51 +0000
3+++ bin/addons/sale_override/sale.py 2017-09-26 07:31:55 +0000
4@@ -3181,6 +3181,8 @@
5 '''
6 if not default:
7 default = {}
8+ if context is None:
9+ context = {}
10 # if the po link is not in default, we set both to False (both values are closely related)
11 if 'so_back_update_dest_po_id_sale_order_line' not in default:
12 default.update({
13@@ -3188,6 +3190,9 @@
14 'so_back_update_dest_pol_id_sale_order_line': False,
15 })
16
17+ if not context.get('keepDateAndDistrib') and 'source_sync_line_id' not in default:
18+ default['source_sync_line_id'] = False
19+
20 default.update({
21 'sync_order_line_db_id': False,
22 'manually_corrected': False,

Subscribers

People subscribed via source and target branches