[MERGE] fix invoice state for refunds

bzr revid: fp@tinyerp.com-20121215173711-hw4expisg9i0su8f
This commit is contained in:
Fabien Pinckaers 2012-12-15 18:37:11 +01:00
commit 3799863eda
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ class stock_picking(osv.osv):
default['name'] = self.pool.get('ir.sequence').get(cr, uid, seq_obj_name)
default['origin'] = ''
default['backorder_id'] = False
if picking_obj.invoice_state == 'invoiced':
if 'invoice_state' not in default and picking_obj.invoice_state == 'invoiced':
default['invoice_state'] = '2binvoiced'
res=super(stock_picking, self).copy(cr, uid, id, default, context)
if res: