Skip to content

Commit

Permalink
[FIX] account_invoice_merge_stock_picking_link: Use new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed Sep 12, 2017
1 parent f13861c commit 82ab6ce
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -37,7 +37,7 @@ def do_merge(self, keep_references=True, date_invoice=False):
picking: picking.invoice_state for
picking in self.mapped('picking_ids')
}
invoices_info = super(AccountInvoice, self).do_merge(
invoices_info, invoice_lines_info = super(AccountInvoice, self).do_merge(
keep_references=keep_references, date_invoice=date_invoice)
# Restore invoice states
for picking in invoice_states:
Expand All @@ -47,4 +47,4 @@ def do_merge(self, keep_references=True, date_invoice=False):
origin_invoices = self.browse(invoices_info[new_invoice_id])
new_invoice.picking_ids = [
(6, 0, origin_invoices.mapped('picking_ids').ids)]
return invoices_info
return invoices_info, invoice_lines_info

0 comments on commit 82ab6ce

Please sign in to comment.