From 0e0b238d0b6f959ac07feaa5e78b8c2da050eb8f Mon Sep 17 00:00:00 2001 From: ?ngel ?lvarez Date: Thu, 12 Feb 2015 12:45:22 +0100 Subject: [PATCH] add inventory patch to avoid inventory with quantity <=0 --- inventory.diff | 12 ++++++++++++ series | 1 + 2 files changed, 13 insertions(+) create mode 100644 inventory.diff diff --git a/inventory.diff b/inventory.diff new file mode 100644 index 0000000..1312858 --- /dev/null +++ b/inventory.diff @@ -0,0 +1,12 @@ +diff -r 077108f6fcb6 inventory.py +--- a/modules/stock/inventory.py Mon Jan 26 17:16:34 2015 +0100 ++++ b/modules/stock/inventory.py Thu Feb 12 12:30:00 2015 +0100 +@@ -216,6 +216,8 @@ + or product2consumable[product_id]): + continue + quantity, uom_id = product_qty[product_id] ++ if not quantity: ++ continue + values = Line.create_values4complete(product_id, inventory, + quantity, uom_id) + to_create.append(values) diff --git a/series b/series index b86ebe7..bab040f 100644 --- a/series +++ b/series @@ -35,3 +35,4 @@ issue3991003_40001.diff issue4011003_200001.diff issue9801002_40001.diff issue5881002_1.diff +inventory.diff