Kirti Savalia(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-575055-ksa into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)
Related bugs:
  Bug #1002666 in OpenERP Addons: "[6.1]Partner field in Stock Move 
Analysis/Reception Analysis"
  https://bugs.launchpad.net/openobject-addons/+bug/1002666

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575055-ksa/+merge/106945

Hello,

Fixed the issue and use partner instead of address.

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575055-ksa/+merge/106945
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-575055-ksa.
=== modified file 'stock/report/report_stock_move.py'
--- stock/report/report_stock_move.py	2011-12-19 16:54:40 +0000
+++ stock/report/report_stock_move.py	2012-05-23 07:03:18 +0000
@@ -35,7 +35,7 @@
         'month':fields.selection([('01','January'), ('02','February'), ('03','March'), ('04','April'),
             ('05','May'), ('06','June'), ('07','July'), ('08','August'), ('09','September'),
             ('10','October'), ('11','November'), ('12','December')], 'Month',readonly=True),
-        'partner_id':fields.many2one('res.partner.address', 'Partner', readonly=True),
+        'partner_id':fields.many2one('res.partner', 'Partner', readonly=True),
         'product_id':fields.many2one('product.product', 'Product', readonly=True),
         'company_id':fields.many2one('res.company', 'Company', readonly=True),
         'picking_id':fields.many2one('stock.picking', 'Packing', readonly=True),
@@ -76,7 +76,7 @@
                         al.product_qty,
                         al.out_qty as product_qty_out,
                         al.in_qty as product_qty_in,
-                        al.address_id as partner_id,
+                        al.partner_id as partner_id,
                         al.product_id as product_id,
                         al.state as state ,
                         al.product_uom as product_uom,
@@ -114,6 +114,7 @@
                         sum(sm.product_qty) as product_qty,
                         pt.categ_id as categ_id ,
                         sm.address_id as address_id,
+                        sm.partner_id as partner_id,
                         sm.product_id as product_id,
                         sm.picking_id as picking_id,
                             sm.company_id as company_id,
@@ -129,7 +130,7 @@
                           LEFT JOIN product_uom pu2 ON (sm.product_uom=pu2.id)
                         LEFT JOIN product_template pt ON (pp.product_tmpl_id=pt.id)
                     GROUP BY
-                        sm.id,sp.type, sm.date,sm.address_id,
+                        sm.id,sp.type, sm.date,sm.address_id,sm.partner_id,
                         sm.product_id,sm.state,sm.product_uom,sm.date_expected,
                         sm.product_id,pt.standard_price, sm.picking_id, sm.product_qty,
                         sm.company_id,sm.product_qty, sm.location_id,sm.location_dest_id,pu.factor,pt.categ_id, sp.stock_journal_id)
@@ -138,7 +139,7 @@
                         al.out_qty,al.in_qty,al.curr_year,al.curr_month,
                         al.curr_day,al.curr_day_diff,al.curr_day_diff1,al.curr_day_diff2,al.dp,al.location_id,al.location_dest_id,
                         al.address_id,al.product_id,al.state,al.product_uom,
-                        al.picking_id,al.company_id,al.type,al.product_qty, al.categ_id, al.stock_journal
+                        al.picking_id,al.company_id,al.type,al.product_qty, al.categ_id, al.stock_journal, al.partner_id
                )
         """)
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to