diff --git a/location.py b/location.py
index c476621d64..99b71e736f 100644
--- a/location.py
+++ b/location.py
@@ -51,7 +51,7 @@ class Location(OSV):
return 'storage'
def name_search(self, cursor, user, name, args=None, operator='ilike',
- context=None, limit=80):
+ context=None, limit=None):
if not args:
args=[]
ids = self.search(
@@ -65,4 +65,3 @@ class Location(OSV):
return result
Location()
-
diff --git a/location.xml b/location.xml
index 7a52f5a994..e3d2da41ad 100644
--- a/location.xml
+++ b/location.xml
@@ -18,7 +18,7 @@
-
+
@@ -88,7 +88,7 @@
product.product
form
[('quantity', '!=', 0)]
- {'locations':active_ids}
+ {'locations':active_ids}
tree_open
@@ -107,7 +107,7 @@
-
+
Stock administration
@@ -131,8 +131,7 @@
-
-
+
Input Zone
IN
diff --git a/move.xml b/move.xml
index fc8ad9b7a2..9710207c12 100644
--- a/move.xml
+++ b/move.xml
@@ -17,12 +17,12 @@
-
+
-
+
@@ -80,7 +80,7 @@
Moves from suppliers
stock.move
form
- [('from_location.usage', '=', 'supplier')]
+ [('from_location.usage', '=', 'supplier')]
@@ -99,7 +99,7 @@
Moves from suppliers to proceed
stock.move
form
- [('from_location.usage', '=', 'supplier'),('state','in',['draft','waiting']),('incoming_packing_in','=',False),('inventory_packing_in','=',False)]
+ [('from_location.usage', '=', 'supplier'),('state','in',['draft','waiting']),('incoming_packing_in','=',False),('inventory_packing_in','=',False)]
@@ -119,7 +119,7 @@
Moves to customers
stock.move
form
- [('to_location.usage', '=', 'customer')]
+ [('to_location.usage', '=', 'customer')]
@@ -139,7 +139,7 @@
Moves to customers to proceed
stock.move
form
- [('to_location.usage', '=', 'customer'),('state','in',['draft','waiting'])]
+ [('to_location.usage', '=', 'customer'),('state','in',['draft','waiting'])]
diff --git a/packing.xml b/packing.xml
index 677a46dd4b..fa60238d9d 100644
--- a/packing.xml
+++ b/packing.xml
@@ -109,7 +109,7 @@
-
diff --git a/product.py b/product.py
index 97b9256bcd..006ad280dc 100644
--- a/product.py
+++ b/product.py
@@ -13,7 +13,7 @@ class Product(OSV):
if not (context and context.get('locations')):
return dict([(id, False) for id in ids])
location_ids = self.pool.get('stock.location').search(
- cursor, user, [('parent', 'child_of', context['locations'])],
+ cursor, user, [('parent', 'child_of', context['locations'])],
context=context)
pbl = self.products_by_location(
cursor, user, location_ids=location_ids, context=None)
@@ -23,11 +23,11 @@ class Product(OSV):
res = True
for field, operator, operand in domain:
value = line.get(field)
- if not value:
+ if not value:
return False
if operator not in ("=", ">=", "<=", ">", "<", "!="):
return False
- if operator == "=":
+ if operator == "=":
operator= "=="
res = res and (eval(str(value) + operator + str(operand)))
return res
@@ -36,14 +36,14 @@ class Product(OSV):
if not (context and context.get('locations')):
return []
location_ids = self.pool.get('stock.location').search(
- cursor, user, [('parent', 'child_of', context['locations'])],
+ cursor, user, [('parent', 'child_of', context['locations'])],
context=context)
pbl = self.products_by_location(
cursor, user, location_ids=location_ids, context=None)
res= [line['product'] for line in pbl \
if self._eval_domain(line,domain)]
return [('id', 'in', res)]
-
+
def raw_products_by_location(self, cursor, user, location_ids,
product_ids=None, context=None):
diff --git a/product.xml b/product.xml
index 4acc656eb2..7ee008efdc 100644
--- a/product.xml
+++ b/product.xml
@@ -13,7 +13,7 @@
-
+