diff --git a/stock_inventory_preparation_filter/models/stock_inventory.py b/stock_inventory_preparation_filter/models/stock_inventory.py index 00e0d147b..8fa5669fd 100644 --- a/stock_inventory_preparation_filter/models/stock_inventory.py +++ b/stock_inventory_preparation_filter/models/stock_inventory.py @@ -109,8 +109,10 @@ class StockInventory(models.Model): tmp_lines[line.product_code] = line.product_qty inventory.empty_line_ids.unlink() for product_code in tmp_lines.keys(): - products = product_obj.search( - [('default_code', '=', product_code)]) + products = product_obj.search([ + '|', ('default_code', '=', product_code), + ('ean13', '=', product_code), + ]) if products: product = products[0] fake_inventory = StockInventoryFake(