← Back to team overview

openerp-india team mailing list archive

[Bug 1001806] Re: Empty list of journals when trying to create invoice from picking

 

** Patch added: "fix-journal_selection.diff"
   https://bugs.launchpad.net/bugs/1001806/+attachment/3154361/+files/fix-journal_selection.diff

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1001806

Title:
  Empty list of journals when trying to create invoice from picking

Status in OpenERP Addons (modules):
  New

Bug description:
  With current addons-trunk (rev 6809), when you are trying to generate
  an invoice from the picking, in the "Create invoice" wizard, the
  selection field "Destination Journal" is empty.

  After investigation, the problem is located in "addons-
  trunk/stock/wizard/stock_invoice_onshipping.py", in the function
  "_get_journal_id" : the context['active_model'] doesn't contain
  'stock.picking' but 'stock.picking.in' if the picking has been
  generated from a Purchase order,  or 'stock.picking.out' if the
  picking has been generated from a sale order.

  The enclosed patch fixes the problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1001806/+subscriptions


References