[FIX] _defaults instead of defaults (psi)
bzr revid: jco@openerp.com-20130902073012-p9s5tws5kvisgodi
This commit is contained in:
parent
20e762dd24
commit
4e805a6a5a
|
@ -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:
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue