[IMP] After invoice onshipping it should show all the created invoices
This commit is contained in:
parent
41d36b038c
commit
aa8dc9c2e9
|
@ -207,7 +207,6 @@ class stock_picking(osv.osv):
|
||||||
"""
|
"""
|
||||||
context = context or {}
|
context = context or {}
|
||||||
todo = {}
|
todo = {}
|
||||||
|
|
||||||
for picking in self.browse(cr, uid, ids, context=context):
|
for picking in self.browse(cr, uid, ids, context=context):
|
||||||
partner = self._get_partner_to_invoice(cr, uid, picking, context)
|
partner = self._get_partner_to_invoice(cr, uid, picking, context)
|
||||||
#grouping is based on the invoiced partner
|
#grouping is based on the invoiced partner
|
||||||
|
@ -222,7 +221,7 @@ class stock_picking(osv.osv):
|
||||||
todo[key].append(move)
|
todo[key].append(move)
|
||||||
invoices = []
|
invoices = []
|
||||||
for moves in todo.values():
|
for moves in todo.values():
|
||||||
invoices = self._invoice_create_line(cr, uid, moves, journal_id, type, context=context)
|
invoices += self._invoice_create_line(cr, uid, moves, journal_id, type, context=context)
|
||||||
return invoices
|
return invoices
|
||||||
|
|
||||||
def _get_invoice_vals(self, cr, uid, key, inv_type, journal_id, origin, context=None):
|
def _get_invoice_vals(self, cr, uid, key, inv_type, journal_id, origin, context=None):
|
||||||
|
|
Loading…
Reference in New Issue