From: Alexis de Lattre <> Date: Mon, 21 May 2012 06:27:36 +0000 (+0530) Subject: [FIX] the problem of Empty list of journals when trying to create invoice from picking X-Git-Tag: 7.0-server~2999^2 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=4afcce3a4722cddef89a1548cfd406960f8e9c23;p=odoo%2Fodoo.git [FIX] the problem of Empty list of journals when trying to create invoice from picking lp bug: https://launchpad.net/bugs/1001806 fixed bzr revid: rmu@tinyerp.com-20120521062736-qkd3d20k0pxzn2l8 --- diff --git a/addons/stock/wizard/stock_invoice_onshipping.py b/addons/stock/wizard/stock_invoice_onshipping.py index 46c5531..ca294f8 100644 --- a/addons/stock/wizard/stock_invoice_onshipping.py +++ b/addons/stock/wizard/stock_invoice_onshipping.py @@ -36,7 +36,7 @@ class stock_invoice_onshipping(osv.osv_memory): context = {} model = context.get('active_model') - if not model or model != 'stock.picking': + if not model or 'stock.picking' not in model: return [] model_pool = self.pool.get(model)