← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~alhashash/ocb-addons/7.0-alhashash-bug1179705 into lp:ocb-addons

 

Mohammad Alhashash has proposed merging lp:~alhashash/ocb-addons/7.0-alhashash-bug1179705 into lp:ocb-addons.

Requested reviews:
  OpenERP Community Backports Team (ocb)
Related bugs:
  Bug #1179705 in OpenERP Community Backports (Addons): "[trunk/7.0][stock] Valuation move lines do not include UoM"
  https://bugs.launchpad.net/ocb-addons/+bug/1179705

For more details, see:
https://code.launchpad.net/~alhashash/ocb-addons/7.0-alhashash-bug1179705/+merge/217681
-- 
https://code.launchpad.net/~alhashash/ocb-addons/7.0-alhashash-bug1179705/+merge/217681
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~alhashash/ocb-addons/7.0-alhashash-bug1179705 into lp:ocb-addons.
=== modified file 'stock/stock.py'
--- stock/stock.py	2014-04-25 12:47:14 +0000
+++ stock/stock.py	2014-04-29 20:27:18 +0000
@@ -2475,6 +2475,7 @@
         debit_line_vals = {
                     'name': move.name,
                     'product_id': move.product_id and move.product_id.id or False,
+                    'product_uom_id': move.product_uom and move.product_uom.id or False,
                     'quantity': move.product_qty,
                     'ref': move.picking_id and move.picking_id.name or False,
                     'date': time.strftime('%Y-%m-%d'),
@@ -2485,6 +2486,7 @@
         credit_line_vals = {
                     'name': move.name,
                     'product_id': move.product_id and move.product_id.id or False,
+                    'product_uom_id': move.product_uom and move.product_uom.id or False,
                     'quantity': move.product_qty,
                     'ref': move.picking_id and move.picking_id.name or False,
                     'date': time.strftime('%Y-%m-%d'),


Follow ups