Merge lp:~unifield-team/unifield-wm/us-213-215 into lp:unifield-wm

Proposed by jftempo
Status: Needs review
Proposed branch: lp:~unifield-team/unifield-wm/us-213-215
Merge into: lp:unifield-wm
Diff against target: 37 lines (+4/-12)
2 files modified
consumption_calculation/consumption_calculation.py (+3/-11)
msf_outgoing/wizard/return_pack_shipment_processor.py (+1/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-wm/us-213-215
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+258156@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

2480. By Quentin THEURET @Amaris

US-215 [FIX] Real consumption report: Don't take care of stock moves not done in the real consumption report copy all feature

2479. By Quentin THEURET @Amaris

US-213 [FIX] Shipment: When return Pack from Shipment, if the From/To packs overrides the From/To packs from other lines, ...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'consumption_calculation/consumption_calculation.py'
2--- consumption_calculation/consumption_calculation.py 2015-04-14 12:31:45 +0000
3+++ consumption_calculation/consumption_calculation.py 2015-05-04 08:00:00 +0000
4@@ -396,17 +396,9 @@
5 pp.batch_management, pp.perishable, pp.product_tmpl_id,
6 pt.uom_id
7 from stock_move sm, product_product pp, product_template pt
8- where sm.location_id = %s and pp.id = sm.product_id and pt.id = pp.product_tmpl_id
9- ''', (report.cons_location_id.id, ))
10- dict1 = cr.dictfetchall()
11- cr.execute('''select distinct sm.product_id, sm.prodlot_id, sm.expired_date,
12- pp.batch_management, pp.perishable, pp.product_tmpl_id,
13- pt.uom_id
14- from stock_move sm, product_product pp, product_template pt
15- where sm.location_dest_id = %s and pp.id = sm.product_id and pt.id = pp.product_tmpl_id
16- ''', (report.cons_location_id.id, ))
17- dict2 = cr.dictfetchall()
18- products_by_location = dict1 + dict2
19+ where (sm.location_id = %s or sm.location_dest_id = %s) and pp.id = sm.product_id and pt.id = pp.product_tmpl_id and sm.state = 'done'
20+ ''', (report.cons_location_id.id, report.cons_location_id.id ))
21+ products_by_location = cr.dictfetchall()
22
23 context['location_id'] = report.cons_location_id.id
24 for product in products_by_location:
25
26=== modified file 'msf_outgoing/wizard/return_pack_shipment_processor.py'
27--- msf_outgoing/wizard/return_pack_shipment_processor.py 2014-12-02 16:38:34 +0000
28+++ msf_outgoing/wizard/return_pack_shipment_processor.py 2015-05-04 08:00:00 +0000
29@@ -158,7 +158,7 @@
30 # previous sequence
31 seqb = sequences[i - 1]
32 # Rule #3: sfrom[i] > sto[i-1] for i>0 // no overlapping, unique sequence
33- if not (seq[0] > seqb[1]):
34+ if seq[2] == seqb[2] and not (seq[0] > seqb[1]):
35 overlap_ids.append(seq[2])
36
37 if overlap_ids:

Subscribers

People subscribed via source and target branches