Merge lp:~dorian-kemps/unifield-server/US-4620 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4983
Proposed branch: lp:~dorian-kemps/unifield-server/US-4620
Merge into: lp:unifield-server
Diff against target: 16 lines (+6/-0)
1 file modified
bin/addons/sale/sale_order.py (+6/-0)
To merge this branch: bzr merge lp:~dorian-kemps/unifield-server/US-4620
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+349133@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/sale_order.py'
2--- bin/addons/sale/sale_order.py 2018-04-17 08:54:07 +0000
3+++ bin/addons/sale/sale_order.py 2018-07-09 08:36:02 +0000
4@@ -2778,6 +2778,12 @@
5 if vals.get('set_as_sourced_n', False):
6 vals['state'] = 'sourced_n'
7
8+ # US-4620 : Set price_unit to the product's standard price in case of synchro
9+ if vals.get('sync_linked_pol') and product_id:
10+ vals.update({
11+ 'price_unit': product_obj.read(cr, uid, product_id, ['standard_price'], context=context)['standard_price']
12+ })
13+
14 '''
15 Add the database ID of the SO line to the value sync_order_line_db_id
16 '''

Subscribers

People subscribed via source and target branches