Merge lp:~openerp-dev/openobject-addons/trunk-bug-1012382-nco into lp:openobject-addons

Proposed by Nimesh Contractor(Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1012382-nco
Merge into: lp:openobject-addons
Diff against target: 19 lines (+2/-0)
1 file modified
stock/report/report_stock_move.py (+2/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1012382-nco
Reviewer Review Type Date Requested Status
Amit Parik (community) Approve
OpenERP Core Team Pending
Review via email: mp+164358@code.launchpad.net

Description of the change

Hello,

Problem on Moves Analysis report when stock move has same product and same product qty on picking and when we are going to group by "Shipment" then its shows the wrong no lines and quantity.

i.e: create one picking for 3 same lines of product USB Adaptor with 10 qty each.
Group by : shipment shows the IN/0001(1) 10 instead of IN/0001(3) 30

Thank You!

To post a comment you must log in.
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

Tested works fine!

Thanks!

review: Approve

Unmerged revisions

8708. By Egor Tsinko

[FIX] group by shipment with same product and same quantiy lines.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/report/report_stock_move.py'
2--- stock/report/report_stock_move.py 2013-04-15 10:23:49 +0000
3+++ stock/report/report_stock_move.py 2013-05-17 12:34:45 +0000
4@@ -85,6 +85,7 @@
5 al.stock_journal as stock_journal,
6 sum(al.in_value - al.out_value) as value
7 FROM (SELECT
8+ sm.id as id,
9 CASE WHEN sp.type in ('out') THEN
10 sum(sm.product_qty * pu.factor / pu2.factor)
11 ELSE 0.0
12@@ -135,6 +136,7 @@
13 sm.company_id,sm.product_qty, sm.location_id,sm.location_dest_id,pu.factor,pt.categ_id, sp.stock_journal_id)
14 AS al
15 GROUP BY
16+ al.id,
17 al.out_qty,al.in_qty,al.curr_year,al.curr_month,
18 al.curr_day,al.curr_day_diff,al.curr_day_diff1,al.curr_day_diff2,al.dp,al.location_id,al.location_dest_id,
19 al.partner_id,al.product_id,al.state,al.product_uom,

Subscribers

People subscribed via source and target branches

to all changes: