[FIX] stock_invoice_directly: automatic creation of invoice when validating delivery order does not
invoice correct partial delivery. It does invoice remain delivery instead of processed delivery bzr revid: rha@tinyerp.com-20130729062158-zyh6uy659jvv3s03
This commit is contained in:
parent
20a0428e6f
commit
2401d7f18e
|
@ -32,8 +32,8 @@ class invoice_directly(osv.osv_memory):
|
|||
result = super(invoice_directly, self).do_partial(cr, uid, ids, context)
|
||||
partial = self.browse(cr, uid, ids[0], context)
|
||||
context.update(active_model='stock.picking',
|
||||
active_ids=[partial.picking_id.id])
|
||||
if partial.picking_id.invoice_state == '2binvoiced':
|
||||
active_ids=[partial.picking_id.backorder_id.id])
|
||||
if partial.picking_id.backorder_id.invoice_state == '2binvoiced':
|
||||
return {
|
||||
'name': 'Create Invoice',
|
||||
'view_type': 'form',
|
||||
|
|
Loading…
Reference in New Issue