[FIX] stock: typo when selecting inventory on single product
authorFekete Mihai <feketemihai@gmail.com>
Wed, 6 Aug 2014 09:36:13 +0000 (11:36 +0200)
committerSimon Lejeune <sle@openerp.com>
Wed, 6 Aug 2014 09:37:22 +0000 (11:37 +0200)
addons/stock/stock.py

index 42dad7d..818b3eb 100644 (file)
@@ -2598,7 +2598,7 @@ class stock_inventory(osv.osv):
             domain += ' and lot_id = %s'
             args += (inventory.lot_id.id,)
         if inventory.product_id:
-            domain += 'and product_id = %s'
+            domain += ' and product_id = %s'
             args += (inventory.product_id.id,)
         if inventory.package_id:
             domain += ' and package_id = %s'