[FIX] the problem of Empty list of journals when trying to create invoice from picking
authorAlexis de Lattre <>
Mon, 21 May 2012 06:27:36 +0000 (11:57 +0530)
committerRavish Murari (OpenERP) <rmu@tinyerp.com>
Mon, 21 May 2012 06:27:36 +0000 (11:57 +0530)
lp bug: https://launchpad.net/bugs/1001806 fixed

bzr revid: rmu@tinyerp.com-20120521062736-qkd3d20k0pxzn2l8

addons/stock/wizard/stock_invoice_onshipping.py

index 46c5531..ca294f8 100644 (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)