[MERGE] lp:1001806. Courtesy of Alexis de Lattre, Akretion

bzr revid: qdp-launchpad@openerp.com-20120711105840-8sf7cm58k65ih3u0
This commit is contained in:
Quentin (OpenERP) 2012-07-11 12:58:40 +02:00
commit 6a09f23839
1 changed files with 1 additions and 1 deletions

View File

@ -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)