diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 5439d10d225..0f7f7e2b176 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -727,6 +727,10 @@ class stock_picking(osv.osv): for move in picking.move_lines: quant_obj.quants_unreserve(cr, uid, move, context=context) res2[move.id] = move.product_qty + # Resort pack_operation_ids + + + # for ops in picking.pack_operation_ids: #Find moves that correspond if ops.product_id: diff --git a/addons/stock_account/stock.py b/addons/stock_account/stock.py index ed7d9568340..ff48e865737 100644 --- a/addons/stock_account/stock.py +++ b/addons/stock_account/stock.py @@ -55,7 +55,7 @@ class procurement_order(osv.osv): res.update({'invoice_state': (procurement.rule_id.invoice_state in ('none', False) and procurement.invoice_state or procurement.rule_id.invoice_state) or 'none'}) return res - defaults = { + _defaults = { 'invoice_state': 'none' }